Contents

init(textureDescriptor:iosurface:plane:)

Creates a new Lowleveldeviceresource from the specified IOSurface.

Declaration

init(textureDescriptor: MTLTextureDescriptor, iosurface: IOSurfaceRef, plane: Int) throws

Parameters

  • textureDescriptor:

    A description of the properties for the texture.

  • iosurface:

    The underlying IOSurface for this memory resource.

  • plane:

    The plane within the IOSurface to use.

Discussion

See Also

Creating a device resource