Instance Method

makeSamplerState(descriptor:)

Creates a sampler state object.

Required.

Declaration

func makeSamplerState(descriptor: MTLSamplerDescriptor) -> MTLSamplerState?

Parameters

descriptor

A descriptor object that describes the sampler to create.

Return Value

A new object with the sampler state.

See Also

Creating Textures and Samplers

func makeTexture(descriptor: MTLTextureDescriptor, iosurface: IOSurfaceRef, plane: Int) -> MTLTexture?

Creates a texture using an IOSurface to store the texture data.

Required.

func makeSharedTexture(descriptor: MTLTextureDescriptor) -> MTLTexture?

Create a texture that can be shared across process boundaries.

Required.

func makeSharedTexture(handle: MTLSharedTextureHandle) -> MTLTexture?

Creates a texture referencing an existing shared texture.

Required.