Instance Method

setVertexSamplerStates:lodMinClamps:lodMaxClamps:withRange:

Sets multiple samplers for the vertex function, specifying clamp values for the level of detail of each sampler.

Required.

Declaration

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

Parameters

samplers

The array of sampler states to set in the sampler 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 you call this method, the provided minimum and maximum levels of detail replace the values of the lodMinClamp and lodMaxClamp properties of each sampler state object.

The default sampler state at each index is nil.

See Also

Specifying Resources for a Vertex Function

- setVertexBuffer:offset:atIndex:

Sets a buffer for the vertex function.

Required.

- setVertexBuffers:offsets:withRange:

Sets an array of buffers for the vertex function.

Required.

- setVertexBufferOffset:atIndex:

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

Required.

- setVertexBytes:length:atIndex:

Sets a block of data for the vertex shader.

Required.

- setVertexSamplerState:atIndex:

Sets a sampler for the vertex function.

Required.

- setVertexSamplerState:lodMinClamp:lodMaxClamp:atIndex:

Sets a sampler for the vertex function, specifying clamp values for the level of detail.

Required.

- setVertexSamplerStates:withRange:

Sets multiple samplers for the vertex function.

Required.

- setVertexTexture:atIndex:

Sets a texture for the vertex function.

Required.

- setVertexTextures:withRange:

Sets an array of textures for the vertex function.

Required.