Contents

imageblockMemoryLength(forDimensions:)

Returns the length of an imageblock’s memory for the specified imageblock dimensions.

Declaration

func imageblockMemoryLength(forDimensions imageblockDimensions: MTLSize) -> Int

Parameters

  • imageblockDimensions:

    An Mtlsize instance that represent the dimensions of an imageblock.

Discussion

The imageblock dimensions need to match a valid tile size, such as one of the following:

  • 32 x 32

  • 32 x 16

  • 16 x 16

The GPU partitions tile memory between imageblocks and threadgroup memory,

For information about identifying tile memory limits for GPU devices, see either of the following:

See Also

Checking tile shader memory requirements