<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.11.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreVideo",
  "identifier" : "/documentation/CoreVideo/CVMetalTextureGetCleanTexCoords(_:_:_:_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Core Video"
    ],
    "preciseIdentifier" : "c:@F@CVMetalTextureGetCleanTexCoords"
  },
  "title" : "CVMetalTextureGetCleanTexCoords(_:_:_:_:_:)"
}
-->

# CVMetalTextureGetCleanTexCoords(_:_:_:_:_:)

Returns convenient normalized texture coordinates for the part of the image that should be displayed.

```
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.

`lowerLeft`

An array that holds two `float` values. Upon return, the array contains the `s` and `t` texture coordinates for the lower left corner of the image.

`lowerRight`

An array that holds two `float` values. Upon return, the array contains the `s` and `t` texture coordinates for the lower right corner of the image.

`upperRight`

An array that holds two `float` values. Upon return, the array contains the `s` and `t` texture coordinates for the upper right corner of the image.

`upperLeft`

An array that holds two `float` values. Upon return, the array contains the `s` and `t` texture coordinates for the upper left corner of the image.

## Discussion

This function automatically takes into account whether or not the texture is flipped.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)