GetUbBlockSize

Description

Obtains the block size of the Unified Buffer (UB) on the platform, in bytes.

Prototype

template <typename T>
uint32_t GetUbBlockSize([[maybe_unused]] const T *context)

Parameters

Parameter

Input/Output

Description

context

Input

Tiling context, of TilingContext or TilingParseContext type.

Return Value

uint32_t: block size of the platform UB.

Constraints

None.

Example

The following sample code is for reference only. Do not copy and run it.

1
compileInfo->ubBlockSize = GetUbBlockSize(context_);