SamplerInfo

Structure holding texture sampler information. It is used to create samplers.

Members

Functions

withCompareOp
SamplerInfo withCompareOp(CompareOp op)

Enables comparison operation for depth/stencil texture look-ups. Use this with shadow samplers.

withWrapMode
SamplerInfo withWrapMode(WrapMode mode)

Set the wrap mode for the 3 axis

Properties

bilinear
SamplerInfo bilinear [@property getter]

Initializes a bilinear filtering SamplerInfo

nearest
SamplerInfo nearest [@property getter]

Initializes a non-filtering SamplerInfo

trilinear
SamplerInfo trilinear [@property getter]

Initializes a trilinear filtering SamplerInfo (that is also linear between mipmap levels)

Variables

anisotropy
Option!float anisotropy;

Enables anisotropy filtering. The value set serves as maximum covering fragments.

borderColor
BorderColor borderColor;
Undocumented in source.
compare
Option!CompareOp compare;

Enables a comparison operation during lookup of depth/stencil based textures. Mostly useful for shadow maps.

lodBias
float lodBias;
Undocumented in source.
lodRange
float[2] lodRange;
Undocumented in source.
magFilter
Filter magFilter;

The magnification filter

minFilter
Filter minFilter;

The minification filter

mipmapFilter
Filter mipmapFilter;

The filter used between mipmap levels

unnormalizeCoords
Flag!"unnormalizeCoords" unnormalizeCoords;

If set, lookup is done in texel space rather than normalized coordinates.

wrapMode
WrapMode[3] wrapMode;

The wrap mode for look-ups outside of [ 0 , 1 ] in the three axis

Meta