https://developer.apple.com/documentation/metal/mtlsamplerdescriptor
An object that you use to configure a texture sampler.
텍스처 샘플러를 설정하기 위해 사용하는 객체입니다.
class MTLSamplerDescriptor : NSObject
샘플러를 생성하려면 우선 MTLSamplerDescriptor
객체를 생성하고 설명자의 속성들을 설정해야 합니다. 이후 이 샘플러를 사용할 MTLDevice
객체에 makeSamplerState(descriptor:)
메소드를 호출해야 합니다. 샘플러를 생성한 후 설명자를 해제할 수 있으며, 혹은 다른 샘플러 생성을 위해 설명자의 속성들을 다시 설정할 수 있습니다.