GpuSampler class final

How a texture is sampled.

Constructors

GpuSampler({GpuFilter minFilter = GpuFilter.linear, GpuFilter magFilter = GpuFilter.linear, GpuFilter mipFilter = GpuFilter.linear, GpuAddress addressU = GpuAddress.clamp, GpuAddress addressV = GpuAddress.clamp, int maxAnisotropy = 1})
A sampler; defaults are linear with linear mips, clamped.
const

Properties

addressU → GpuAddress
Addressing along u.
final
addressV → GpuAddress
Addressing along v.
final
hashCode → int
The hash code for this object.
no setterinherited
magFilter → GpuFilter
Filtering when enlarging.
final
maxAnisotropy → int
Anisotropy clamp; 1 turns it off.
final
minFilter → GpuFilter
Filtering when shrinking.
final
mipFilter → GpuFilter
Filtering between mip levels.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

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

Constants

linearClamp → const GpuSampler
Linear, clamped.
linearRepeat → const GpuSampler
Linear, repeating.
nearestClamp → const GpuSampler
Nearest, clamped (data textures, joint palettes).