Class MTLSampler Descriptor
An object that you use to configure a texture sampler.
iOS 8.0+ macOS 10.11+ Mac Catalyst 13.0+ tvOS 9.0+ Declaration @interface MTLSamplerDescriptor :
To create a sampler, first create a
object and configure the descriptor’s properties. Then call the
MTLSampler Descriptor method on the new Sampler State With Descriptor: object that will use this sampler. After you create the sampler, you can release the descriptor or reconfigure its properties to create other samplers. MTLDevice Topics Declaring the Coordinate Space normalized Coordinates
A Boolean value that indicates whether texture coordinates are normalized to the range
[0 .0, 1 .0] Declaring Addressing Modes r Address Mode
The address mode for the texture depth (r) coordinate.
s Address Mode
The address mode for the texture width (s) coordinate.
t Address Mode
The address mode for the texture height (t) coordinate.
The border color for clamped texture values.
MTLSampler Address Mode
Modes that determine the texture coordinate at each pixel when a fetch falls outside the bounds of a texture.
Declaring Filter Modes min Filter
The filtering option for combining pixels within one mipmap level when the sample footprint is larger than a pixel (minification).
The filtering operation for combining pixels within one mipmap level when the sample footprint is smaller than a pixel (magnification).
The filtering option for combining pixels between two mipmap levels.
lod Min Clamp
The minimum level of detail (LOD) to use when sampling from a texture.
lod Max Clamp
The maximum level of detail (LOD) to use when sampling from a texture.
A Boolean value that specifies whether the GPU can use an average level of detail (LOD) when sampling from a texture.
The number of samples that can be taken to improve the quality of sample footprints that are anisotropic.
MTLSampler Mip Filter
Filtering options for determining what pixel value is returned with multiple mipmap levels.
Declaring the Depth Comparison Mode compare Function
The sampler comparison function used when performing a sample compare operation on a depth texture.
Options used to specify how a sample compare operation should be performed on a depth texture.
Declaring Whether the Sampler Can Be Used in Argument Buffers support Argument Buffers
A Boolean value that specifies whether the sampler can be encoded into an argument buffer.
Identifying the Sampler label
A string that identifies the sampler.