Enum TextureFilter
Filtering options during texture sampling.
[DataContract("TextureFilter")]
public enum TextureFilter
Fields
Anisotropic = 85
Use anisotropic interpolation for minification, magnification, and mip-level sampling.
ComparisonAnisotropic = 213
Use anisotropic interpolation for minification, magnification, and mip-level sampling. Compare the result to the comparison value.
ComparisonLinear = 149
Use linear interpolation for minification, magnification, and mip-level sampling. Compare the result to the comparison value.
ComparisonMinLinearMagMipPoint = 144
Use linear interpolation for minification; use point sampling for magnification and mip-level sampling. Compare the result to the comparison value.
ComparisonMinLinearMagPointMipLinear = 145
Use linear interpolation for minification; use point sampling for magnification; use linear interpolation for mip-level sampling. Compare the result to the comparison value.
ComparisonMinMagLinearMipPoint = 148
Use linear interpolation for minification and magnification; use point sampling for mip-level sampling. Compare the result to the comparison value.
ComparisonMinMagPointMipLinear = 129
Use point sampling for minification and magnification; use linear interpolation for mip-level sampling. Compare the result to the comparison value.
ComparisonMinPointMagLinearMipPoint = 132
Use point sampling for minification; use linear interpolation for magnification; use point sampling for mip-level sampling. Compare the result to the comparison value.
ComparisonMinPointMagMipLinear = 133
Use point sampling for minification; use linear interpolation for magnification and mip-level sampling. Compare the result to the comparison value.
ComparisonPoint = 128
Use point sampling for minification, magnification, and mip-level sampling. Compare the result to the comparison value.
Linear = 21
Use linear interpolation for minification, magnification, and mip-level sampling.
MinLinearMagMipPoint = 16
Use linear interpolation for minification; use point sampling for magnification and mip-level sampling.
MinLinearMagPointMipLinear = 17
Use linear interpolation for minification; use point sampling for magnification; use linear interpolation for mip-level sampling.
MinMagLinearMipPoint = 20
Use linear interpolation for minification and magnification; use point sampling for mip-level sampling.
MinMagPointMipLinear = 1
Use point sampling for minification and magnification; use linear interpolation for mip-level sampling.
MinPointMagLinearMipPoint = 4
Use point sampling for minification; use linear interpolation for magnification; use point sampling for mip-level sampling.
MinPointMagMipLinear = 5
Use point sampling for minification; use linear interpolation for magnification and mip-level sampling.
Point = 0
Use point sampling for minification, magnification, and mip-level sampling.
Remarks
During texture sampling, one or more texels are read and combined (this is calling filtering) to produce a single value. Point sampling reads a single texel while linear sampling reads two texels (endpoints) and linearly interpolates a third value between the endpoints. HLSL texture-sampling functions also support comparison filtering during texture sampling. Comparison filtering compares each sampled texel against a comparison value. The boolean result is blended the same way that normal texture filtering is blended. You can use HLSL intrinsic texture-sampling functions that implement texture filtering only or companion functions that use texture filtering with comparison filtering. Texture Sampling FunctionTexture Sampling Function with Comparison Filtering samplesamplecmp or samplecmplevelzero ? Comparison filters only work with textures that have the following DXGI formats: R32_FLOAT_X8X24_TYPELESS, R32_FLOAT, R24_UNORM_X8_TYPELESS, R16_UNORM.