Instance Method

newTextureWithDescriptor:

Creates a texture.

Required.

Declaration

- (id<MTLTexture>)newTextureWithDescriptor:(MTLTextureDescriptor *)descriptor;

Parameters

descriptor

A descriptor object that describes the texture to be created.

Return Value

A new texture object.

Discussion

The returned texture object has allocated storage for texture image data.

See Also

Creating Textures and Samplers

- 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.

- newSamplerStateWithDescriptor:

Creates a sampler state object.

Required.