---
title: "metalTexture(for:)"
framework: Professional Video Applications
role: symbol
role_heading: Instance Method
platforms: [fxplug 4.0+]
path: "professional_video_applications/fximagetile/metaltexture(for:)"
---

# metalTexture(for:)

Retrieve a Metal texture from the IOSurface for rendering on the passed-in device. The returned texture is autoreleased.

## Declaration

```swift
func metalTexture(for metalDevice: (any MTLDevice)!) -> (any MTLTexture)!
```

## See Also

### Instance Methods

- [openGLTexture(forContext:)](professional_video_applications/fximagetile/opengltexture(forcontext:).md)
