Skip to main content
Describes a sampler state.

Syntax

Members

Filter
Type: D3D12_FILTER
A D3D12_FILTER-typed value that specifies the filtering method to use when sampling a texture. AddressU
Type: D3D12_TEXTURE_ADDRESS_MODE
A D3D12_TEXTURE_ADDRESS_MODE-typed value that specifies the method to use for resolving a u texture coordinate that is outside the 0 to 1 range. AddressV
Type: D3D12_TEXTURE_ADDRESS_MODE
A D3D12_TEXTURE_ADDRESS_MODE-typed value that specifies the method to use for resolving a v texture coordinate that is outside the 0 to 1 range. AddressW
Type: D3D12_TEXTURE_ADDRESS_MODE
A D3D12_TEXTURE_ADDRESS_MODE-typed value that specifies the method to use for resolving a w texture coordinate that is outside the 0 to 1 range. MipLODBias
Type: FLOAT
Offset from the calculated mipmap level. For example, if the runtime calculates that a texture should be sampled at mipmap level 3 and MipLODBias is 2, the texture will be sampled at mipmap level 5. MaxAnisotropy
Type: UINT
Clamping value used if D3D12_FILTER_ANISOTROPIC or D3D12_FILTER_COMPARISON_ANISOTROPIC is specified in Filter. Valid values are between 1 and 16. ComparisonFunc
Type: D3D12_COMPARISON_FUNC
A D3D12_COMPARISON_FUNC-typed value that specifies a function that compares sampled data against existing sampled data. BorderColor
Type: FLOAT[4]
RGBA border color to use if D3D12_TEXTURE_ADDRESS_MODE_BORDER is specified for AddressU, AddressV, or AddressW. Range must be between 0.0 and 1.0 inclusive. MinLOD
Type: FLOAT
Lower end of the mipmap range to clamp access to, where 0 is the largest and most detailed mipmap level and any level higher than that is less detailed. MaxLOD
Type: FLOAT
Upper end of the mipmap range to clamp access to, where 0 is the largest and most detailed mipmap level and any level higher than that is less detailed. This value must be greater than or equal to MinLOD. To have no upper limit on LOD, set this member to a large value.

Remarks

This structure is used by CreateSampler.

Requirements

Header: d3d12_xs.h or d3d12_x.h
Library: d3d12_xs.lib or d3d12_x.lib
Supported Platforms: XBOX Series consoles and XBOX One family

See Also

Core Structures
Last modified on August 20, 2026