---
title: "setImageblockSize(width:height:)"
framework: metal
role: symbol
role_heading: Instance Method
path: "metal/mtl4computecommandencoder/setimageblocksize(width:height:)"
---

# setImageblockSize(width:height:)

Specifies the size, in pixels, of imageblock data in tile memory.

## Declaration

```swift
func setImageblockSize(width: Int, height: Int)
```

## Parameters

- `width`: The width of the imageblock, in pixels.
- `height`: The height of the imageblock, in pixels.

## See Also

### Configuring the pass

- [setComputePipelineState(_:)](metal/mtl4computecommandencoder/setcomputepipelinestate(_:).md)
- [setArgumentTable(_:)](metal/mtl4computecommandencoder/setargumenttable(_:).md)
- [setThreadgroupMemoryLength(_:index:)](metal/mtl4computecommandencoder/setthreadgroupmemorylength(_:index:).md)
