Luna::RHI::SamplerDesc
Describes one sampler in descriptor set.
struct Luna::RHI::SamplerDesc
Member objects
-
The filter applied when the sample pixel size is greater than texel.
-
The filter applied when the sample pixel size is smaller than texel.
-
The filter applied when sampling between different mipmaps.
-
The address mode used in the first direction (from left to right).
-
The address mode used in the second direction (from top to down in D3D/Vulkan, from down to top in Metal).
-
The address mode used in the third direction (from front to back in 3D textures).
-
Whether to enable anisotropy sampling.
-
Whether to enable pixel comparing.
-
CompareFunction compare_function
The compare function used when
compare_enable
istrue
. -
The border color used when
TextureAddressMode::border
is set. -
The maximum anisotropy ratio.
-
The minimum LOD level that will be sampled.
-
The maximum LOD level that will be sampled. Specify one large enough value (like F32_MAX) to disable this limit.