Function

CVMetalTextureGetTexture(_:)

Returns the Metal texture object for the image buffer.

Declaration

func CVMetalTextureGetTexture(_ image: CVMetalTexture) -> MTLTexture?

Parameters

image

A CoreVideo Metal texture-based image buffer.

Return Value

The MTLTexture object corresponding to the image buffer.

See Also

Inspecting Textures

func CVMetalTextureIsFlipped(CVMetalTexture) -> Bool

Returns a Boolean value indicating whether the texture image is vertically flipped.

func CVMetalTextureGetTypeID() -> CFTypeID

Returns the Core Foundation type identifier for a CoreVideo Metal texture-based image buffer.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software