---
title: "setImageblockWidth(_:height:)"
framework: metal
role: symbol
role_heading: Instance Method
path: "metal/mtlindirectcomputecommand/setimageblockwidth(_:height:)"
---

# setImageblockWidth(_:height:)

Sets the size, in pixels, of the imageblock.

## Declaration

```swift
func setImageblockWidth(_ width: Int, height: Int)
```

## Parameters

- `width`: The width of the imageblock.
- `height`: The height of the imageblock.

## See Also

### Setting a command’s arguments

- [setComputePipelineState(_:)](metal/mtlindirectcomputecommand/setcomputepipelinestate(_:).md)
- [setKernelBuffer(_:offset:at:)](metal/mtlindirectcomputecommand/setkernelbuffer(_:offset:at:).md)
- [setThreadgroupMemoryLength(_:index:)](metal/mtlindirectcomputecommand/setthreadgroupmemorylength(_:index:).md)
- [setThreadgroupMemoryLength(_:at:)](metal/mtlindirectcomputecommand/setthreadgroupmemorylength(_:at:).md)
- [setStageInRegion(_:)](metal/mtlindirectcomputecommand/setstageinregion(_:).md)
- [setStageIn(_:)](metal/mtlindirectcomputecommand/setstagein(_:).md)
