Contents

makeTexture(descriptor:iosurface:plane:)

Creates a texture instance that uses I/O surface to store its underlying data.

Declaration

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

Parameters

  • descriptor:

    An Mtltexturedescriptor instance.

  • iosurface:

    An IOSurfaceRef instance.

  • plane:

    A plane within iosurface the method sets as the texture’s underlying data.

Return Value

A new MTLTexture instance if the method completed successfully; otherwise nil.

See Also

Creating textures