Instance Property

supportArgumentBuffers

A Boolean value that specifies whether the sampler can be encoded into an argument buffer.

Declaration

var supportArgumentBuffers: Bool { get set }

Discussion

When this value is true, the sampler can be encoded into an argument buffer. When this value is false, the sampler can only be encoded as an individual resource in the sampler state argument table. The default value is false.

Devices that support argument buffers can have up to 96 (iOS and tvOS) or 2048 (macOS) unique samplers per app; these limits are only applicable to samplers that have their supportArgumentBuffers property set to true. A MTLSamplerState object is considered unique if the configuration of its originating MTLSamplerDescriptor properties is unique. For example, two samplers with equal minFilter values but different magFilter values are considered unique.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software