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

# parentRelativeSlice

The base slice of the parent texture used to create this texture.

## Declaration

```swift
var parentRelativeSlice: Int { get }
```

## Discussion

Discussion This property is only valid for textures created from a parent texture. The default value is 0.

## See Also

### Getting information about ancestor resources

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