makeSamplerState(descriptor:)
Creates a sampler state instance.
Declaration
func makeSamplerState(descriptor: MTLSamplerDescriptor) -> (any MTLSamplerState)?Parameters
- descriptor:
An Mtlsamplerdescriptor instance.
Return Value
A new MTLSamplerState instance if the method completed successfully; otherwise nil.