TextureFilter Enum
Namespace: Stride.GraphicsAssembly: Stride.dll
Filtering options during texture sampling.
[DataContract("TextureFilter")]
public enum TextureFilter
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.
Fields
| Name | Description |
|---|---|
| Anisotropic | Use anisotropic interpolation for minification, magnification, and mip-level sampling. |
| ComparisonAnisotropic | Use anisotropic interpolation for minification, magnification, and mip-level sampling. Compare the result to the comparison value. |
| ComparisonLinear | Use linear interpolation for minification, magnification, and mip-level sampling. Compare the result to the comparison value. |
| ComparisonMinLinearMagMipPoint | Use linear interpolation for minification; use point sampling for magnification and mip-level sampling. Compare the result to the comparison value. |
| ComparisonMinLinearMagPointMipLinear | 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 | Use linear interpolation for minification and magnification; use point sampling for mip-level sampling. Compare the result to the comparison value. |
| ComparisonMinMagPointMipLinear | Use point sampling for minification and magnification; use linear interpolation for mip-level sampling. Compare the result to the comparison value. |
| ComparisonMinPointMagLinearMipPoint | 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 | Use point sampling for minification; use linear interpolation for magnification and mip-level sampling. Compare the result to the comparison value. |
| ComparisonPoint | Use point sampling for minification, magnification, and mip-level sampling. Compare the result to the comparison value. |
| Linear | Use linear interpolation for minification, magnification, and mip-level sampling. |
| MinLinearMagMipPoint | Use linear interpolation for minification; use point sampling for magnification and mip-level sampling. |
| MinLinearMagPointMipLinear | Use linear interpolation for minification; use point sampling for magnification; use linear interpolation for mip-level sampling. |
| MinMagLinearMipPoint | Use linear interpolation for minification and magnification; use point sampling for mip-level sampling. |
| MinMagPointMipLinear | Use point sampling for minification and magnification; use linear interpolation for mip-level sampling. |
| MinPointMagLinearMipPoint | Use point sampling for minification; use linear interpolation for magnification; use point sampling for mip-level sampling. |
| MinPointMagMipLinear | Use point sampling for minification; use linear interpolation for magnification and mip-level sampling. |
| Point | Use point sampling for minification, magnification, and mip-level sampling. |