---
title: "CVMetalTextureGetTexture(_:)"
framework: corevideo
role: symbol
role_heading: Function
path: "corevideo/cvmetaltexturegettexture(_:)"
---

# CVMetalTextureGetTexture(_:)

Returns the Metal texture object for the image buffer.

## Declaration

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

## Parameters

- `image`: A CoreVideo Metal texture-based image buffer.

## Return Value

Return Value The MTLTexture object corresponding to the image buffer.

## See Also

### Inspecting Textures

- [CVMetalTextureGetCleanTexCoords(_:_:_:_:_:)](corevideo/cvmetaltexturegetcleantexcoords(_:_:_:_:_:).md)
- [CVMetalTextureIsFlipped(_:)](corevideo/cvmetaltextureisflipped(_:).md)
- [CVMetalTextureGetTypeID()](corevideo/cvmetaltexturegettypeid().md)
