Instance Method

setFragmentSamplerStates:lodMinClamps:lodMaxClamps:withRange:

Sets sampler states for the fragment function in a range of indices in the sampler state argument table, specifying clamp values for levels of detail.

Required.

Declaration

- (void)setFragmentSamplerStates:(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 Fragment Function

- setFragmentBuffer:offset:atIndex:

Sets a buffer for the fragment function.

Required.

- setFragmentBuffers:offsets:withRange:

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

Required.

- setFragmentBufferOffset:atIndex:

Sets where the data begins in a buffer already bound to the fragment shader.

Required.

- setFragmentBytes:length:atIndex:

Sets a block of data for the fragment shader.

Required.

- setFragmentSamplerState:atIndex:

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

Required.

- setFragmentSamplerStates:withRange:

Sets an array of sampler states for the fragment function in a range of indices in the sampler state argument table.

Required.

- setFragmentSamplerState:lodMinClamp:lodMaxClamp:atIndex:

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

Required.

- setFragmentTexture:atIndex:

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

Required.

- setFragmentTextures:withRange:

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

Required.