Instance Method

setTileSamplerStates(_:lodMinClamps:lodMaxClamps:range:)

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

Declaration

func setTileSamplerStates(_ samplers: [MTLSamplerState?], lodMinClamps: [Float], lodMaxClamps: [Float], range: Range<Int>)

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.

See Also

Specifying Resources for a Tile Function

func setThreadgroupMemoryLength(Int, offset: Int, index: Int)

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

Required.

func setTileBuffer(MTLBuffer?, offset: Int, index: Int)

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

Required.

func setTileBuffers([MTLBuffer?], offsets: [Int], range: Range<Int>)

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

func setTileBufferOffset(Int, index: Int)

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

Required.

func setTileBytes(UnsafeRawPointer, length: Int, index: Int)

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

Required.

func setTileSamplerState(MTLSamplerState?, index: Int)

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

Required.

func setTileSamplerState(MTLSamplerState?, lodMinClamp: Float, lodMaxClamp: Float, index: Int)

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.

func setTileSamplerStates([MTLSamplerState?], range: Range<Int>)

Sets a sampler state for the tile function in a range of indices in the sampler state argument table.

func setTileTexture(MTLTexture?, index: Int)

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

Required.

func setTileTextures([MTLTexture?], range: Range<Int>)

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