CVMetalTextureGetCleanTexCoords(_:_:_:_:_:)
Returns convenient normalized texture coordinates for the part of the image that should be displayed.
Declaration
func CVMetalTextureGetCleanTexCoords(_ image: CVMetalTexture, _ lowerLeft: UnsafeMutablePointer<Float>, _ lowerRight: UnsafeMutablePointer<Float>, _ upperRight: UnsafeMutablePointer<Float>, _ upperLeft: UnsafeMutablePointer<Float>)Parameters
- image:
A CoreVideo Metal texture-based image buffer.
Discussion
This function automatically takes into account whether or not the texture is flipped.