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

# parent

The parent texture used to create this texture, if any.

## Declaration

```swift
var parent: (any MTLTexture)? { get }
```

## Discussion

Discussion When this value is nil, an MTLBuffer instance provides texture data.

## See Also

### Getting information about ancestor resources

- [parentRelativeLevel](metal/mtltexture/parentrelativelevel.md)
- [parentRelativeSlice](metal/mtltexture/parentrelativeslice.md)
- [buffer](metal/mtltexture/buffer.md)
- [bufferOffset](metal/mtltexture/bufferoffset.md)
- [bufferBytesPerRow](metal/mtltexture/bufferbytesperrow.md)
- [rootResource](metal/mtltexture/rootresource.md)
