Instance Method

makeTexture(descriptor:)

Creates a texture.

Required.

Declaration

func makeTexture(descriptor: MTLTextureDescriptor) -> MTLTexture?

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

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.