Instance Method

setThreadgroupMemoryLength:offset:atIndex:

Sets the size of a threadgroup memory buffer for the tile function at an index in the argument table.

Required.

Declaration

- (void)setThreadgroupMemoryLength:(NSUInteger)length offset:(NSUInteger)offset atIndex:(NSUInteger)index;

Parameters

length

The threadgroup memory length, in bytes.

offset

The distance, in bytes, between the start of the data and the start of the threadgroup memory.

index

The argument table index.

Discussion

You can only change threadgroup memory configuration between tile dispatches.

Exceeding the threadgroup memory allocation for the render pass causes a debug error.

See Also

Specifying Resources for a Tile Function

- setTileBuffer:offset:atIndex:

Sets a buffer for the tile function at an index in the buffer argument table.

Required.

- setTileBuffers:offsets:withRange:

Sets an array of buffers for the tile function in a range of indices in the buffer argument table.

Required.

- setTileBufferOffset:atIndex:

Sets an offset specifying the start of the data for a buffer already bound to the tile function.

Required.

- setTileBytes:length:atIndex:

Sets a block of data for the tile function at an index in the buffer argument table.

Required.

- setTileSamplerState:atIndex:

Sets a sampler state for the tile function at an index in the sampler state argument table.

Required.

- setTileSamplerState:lodMinClamp:lodMaxClamp:atIndex:

Sets a sampler state for the tile function at an index in the sampler state argument table, specifying clamp values for the level of detail.

Required.

- setTileSamplerStates:withRange:

Sets a sampler state for the tile function in a range of indices in the sampler state argument table, specifying clamp values for the minimum and maximum level of detail.

Required.

- setTileSamplerStates:lodMinClamps:lodMaxClamps:withRange:

Sets an array of sampler states for the tile function in a range of indices in the sampler state argument table, specifying clamp values for the minimum and maximum level of detail.

Required.

- setTileTexture:atIndex:

Sets a texture for the tile function at an index in the texture argument table.

Required.

- setTileTextures:withRange:

Sets an array of textures for the tile function in a range of indices in the texture argument table.

Required.