Instance Method

setVertexSamplerState:atIndex:

Sets a sampler for the vertex function.

Required.

Declaration

- (void)setVertexSamplerState:(id<MTLSamplerState>)sampler atIndex:(NSUInteger)index;

Parameters

sampler

The sampler state to set in the sampler argument table.

index

An index in the sampler argument table.

Discussion

The default sampler state at each index is nil.

See Also

Specifying Arguments 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: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.

- setVertexSamplerStates:lodMinClamps:lodMaxClamps:withRange:

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

Required.

- setVertexTexture:atIndex:

Sets a texture for the vertex function.

Required.

- setVertexTextures:withRange:

Sets an array of textures for the vertex function.

Required.