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
IOSurfaceRefinstance. - plane:
A plane within i
osurfacethe method sets as the texture’s underlying data.
Return Value
A new MTLTexture instance if the method completed successfully; otherwise nil.