Instance Method

newSamplerStateWithDescriptor:

Creates a sampler state object.

Required.

Declaration

- (id<MTLSamplerState>)newSamplerStateWithDescriptor:(MTLSamplerDescriptor *)descriptor;

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

- newTextureWithDescriptor:

Creates a texture.

Required.

- newTextureWithDescriptor:iosurface:plane:

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

Required.

- newSharedTextureWithDescriptor:

Create a texture that can be shared across process boundaries.

Required.

- newSharedTextureWithHandle:

Creates a texture referencing an existing shared texture.

Required.