---
title: "imageblockMemoryLength(forDimensions:)"
framework: metal
role: symbol
role_heading: Instance Method
path: "metal/mtlcomputepipelinestate/imageblockmemorylength(fordimensions:)"
---

# imageblockMemoryLength(forDimensions:)

Returns the length of reserved memory for an imageblock of a given size.

## Declaration

```swift
func imageblockMemoryLength(forDimensions imageblockDimensions: MTLSize) -> Int
```

## Parameters

- `imageblockDimensions`: An doc://com.apple.metal/documentation/Metal/MTLSize instance that represents the dimensions of an imageblock.

## Return Value

Return Value The length, in bytes, occupied by the image block in memory.
