D3D12_FILTER_TYPE enumeration (d3d12.h)
Specifies the type of magnification or minification sampler filters.
Syntax
typedef enum D3D12_FILTER_TYPE {
D3D12_FILTER_TYPE_POINT = 0,
D3D12_FILTER_TYPE_LINEAR = 1
} ;
Constants
D3D12_FILTER_TYPE_POINT Value: 0 Point filtering is used as a texture magnification or minification filter. The texel with coordinates nearest to the desired pixel value is used. The texture filter to be used between mipmap levels is nearest-point mipmap filtering. The rasterizer uses the color from the texel of the nearest mipmap texture. |
D3D12_FILTER_TYPE_LINEAR Value: 1 Bilinear interpolation filtering is used as a texture magnification or minification filter. A weighted average of a 2 x 2 area of texels surrounding the desired pixel is used. The texture filter to use between mipmap levels is trilinear mipmap interpolation. The rasterizer linearly interpolates pixel color, using the texels of the two nearest mipmap textures. |
Remarks
This enum is used by the D3D12_SAMPLER_DESC structure. Also, refer to the remarks for D3D12_FILTER.
Requirements
Requirement | Value |
---|---|
Header | d3d12.h |
See also
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for