Contents

makeSamplerState(descriptor:)

Creates a sampler state instance.

Declaration

func makeSamplerState(descriptor: MTLSamplerDescriptor) -> (any MTLSamplerState)?

Parameters

Return Value

A new MTLSamplerState instance if the method completed successfully; otherwise nil.

See Also

Creating samplers