Instance Method

makeTexture(descriptor:iosurface:plane:)

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

Required.

Declaration

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

Parameters

descriptor

A descriptor object that describes the texture to be created.

iosurface

A reference to the IOSurface to be used for the texture storage.

plane

The plane within the IOSurface to be used for the texture storage.

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