Instance Method

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.

Declaration

- (void)setTileSamplerStates:(id<MTLSamplerState>  _Nullable const *)samplers lodMinClamps:(const float *)lodMinClamps lodMaxClamps:(const float *)lodMaxClamps withRange:(NSRange)range;

Parameters

samplers

An array of sampler states to set in the argument table.

lodMinClamps

An array of minimum levels of detail corresponding to the samplers array, used when sampling textures.

lodMaxClamps

An array of maximum levels of detail corresponding to the samplers array, used when sampling textures.

range

A range of indices in the sampler argument table.

Discussion

When this method is used, the clamp values of the lodMinClamp and lodMaxClamp properties of the sampler state are ignored.

The default sampler state at each index is nil.

See Also

Specifying Resources for a Tile Function

- setThreadgroupMemoryLength:offset:atIndex:

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

Required.

- 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.

- 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.