struct SamplerStateInformation

Information describing a SamplerState.

Public

Constructors

SamplerStateInformation

SamplerStateInformation() = default

Fields

AddressMode

UVWAddressingMode AddressMode

Determines how are texture coordinates outside of [0, 1] range handled.

MinFilter

FilterOptions MinFilter

Filtering used when texture is displayed as smaller than its original size.

MagFilter

FilterOptions MagFilter

Filtering used when texture is displayed as larger than its original size.

MipFilter

FilterOptions MipFilter

Filtering used to blend between the different mip levels.

MaxAniso

u32 MaxAniso

Maximum number of samples if anisotropic filtering is enabled.

Max is 16.

MipmapBias

float MipmapBias

Mipmap bias allows you to adjust the mipmap selection calculation.

Negative values force a larger mipmap to be used, and positive values smaller. Units are in values of mip levels, so -1 means use a mipmap one level higher than default.

MipMin

float MipMin

Minimum mip-map level that is allowed to be displayed.

MipMax

float MipMax

Maximum mip-map level that is allowed to be displayed.

Set to FLT_MAX for no limit.

BorderColor

Color BorderColor

Border color to use when using border addressing mode as specified by .

ComparisonFunc

CompareFunction ComparisonFunc

Function that compares sampled data with existing sampled data.

Operators

operator==

bool operator==(const SamplerStateInformation &rhs) const

operator!=

bool operator!=(const SamplerStateInformation &rhs) const