---
title: imageblockSampleLength
framework: metal
role: symbol
role_heading: Instance Property
path: metal/mtlrenderpassdescriptor/imageblocksamplelength
---

# imageblockSampleLength

The per-sample size, in bytes, of the largest explicit imageblock layout in the render pass.

## Declaration

```swift
var imageblockSampleLength: Int { get set }
```

## Discussion

Discussion If imageBlockSampleLength isn’t specified, Metal determines the imageblock sample length from the render pass attachment formats.  If any render pipelines bound to the encoder reference imageblocks with explicit layout, you need to set this property.

## See Also

### Specifying tile shading parameters

- [threadgroupMemoryLength](metal/mtlrenderpassdescriptor/threadgroupmemorylength.md)
- [tileWidth](metal/mtlrenderpassdescriptor/tilewidth.md)
- [tileHeight](metal/mtlrenderpassdescriptor/tileheight.md)
