---
title: iosurface
framework: metal
role: symbol
role_heading: Instance Property
path: metal/mtltexture/iosurface
---

# iosurface

A reference to the underlying surface instance for the texture, if applicable.

## Declaration

```swift
var iosurface: IOSurfaceRef? { get }
```

## Discussion

Discussion The property’s value is nil for textures that don’t come from an IOSurface instance.

## See Also

### Getting information about the IOSurface the texture was created from

- [iosurfacePlane](metal/mtltexture/iosurfaceplane.md)
