SamplerStatePreset
Description
Enumeration of commonly used sampler state blocks.
An implementation of IRenderEffect should provide helper methods for applying sampler state values based on the items of this enumeration. Those should be named as SamplerStateApply
. The following presets represent the most common sampler states:
By using the preset flags separately, more specific sample state may be established:
To establish sampler state that is not covered by a state preset, please use the specific implementation of IRenderEffect, which provides access to the underlying graphics API.
Public / Constants
None
No sampler state preset.
If this preset is applied, only the texture border color will be set to zero. All other state values remain unchanged.
AnisotropicClamp
Shortcut for Anisotropic and Clamp flags.
AnisotropicWrap
Shortcut for Anisotropic and Wrap flags.
Anisotropic
Anisotropic filtering for minification, linear filtering for magnification and mip-mapping.
- See also
BorderU
Border address mode for texture U-axis.
The texture border color is specified via Color.
- See also
BorderV
Border address mode for texture V-axis.
The texture border color is specified via Color.
- See also
Red
If present, the red channel of the border color has full intensity. Otherwise it is zero.
- See also
Green
If present, the green channel of the border color has full intensity. Otherwise it is zero.
- See also
Blue
If present, the blue channel of the border color has full intensity. Otherwise it is zero.
- See also