GpuTextureSource class Assets and loading

Wraps a raw gpu.Texture as a TextureSource, for advanced or interop cases that already own a GPU texture (widget/particle textures, custom pipelines) and do not need Texture2D's image decode and mip generation.

Implemented types

Constructors

GpuTextureSource(Texture texture, {SamplerOptions? sampler})

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sampledSampler → SamplerOptions
The sampler this source is bound with.
no setteroverride
sampledTexture → Texture?
The GPU texture to sample this frame, or null when none is available yet (a live source before its first frame; callers substitute a placeholder).
no setteroverride
sampler → SamplerOptions
final
texture → Texture
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited