Instance Method

setVertexTextures:withRange:

Sets an array of textures for the vertex function.

Required.

Declaration

- (void)setVertexTextures:(id<MTLTexture>  _Nullable const *)textures withRange:(NSRange)range;

Parameters

textures

The array of textures to set in the texture argument table.

range

A range of indices in the texture argument table.

Discussion

The default texture 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: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.

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

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software