Instance Method

setVertexSamplerStates(_:lodMinClamps:lodMaxClamps:range:)

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

Declaration

func setVertexSamplerStates(_ 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 Arguments for a Vertex Function

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

Sets a buffer for the vertex function.

Required.

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

Sets an array of buffers for the vertex function.

func setVertexBufferOffset(Int, index: Int)

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

Required.

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

Sets a block of data for the vertex shader.

Required.

func setVertexSamplerState(MTLSamplerState?, index: Int)

Sets a sampler for the vertex function.

Required.

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

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

Required.

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

Sets multiple samplers for the vertex function.

func setVertexTexture(MTLTexture?, index: Int)

Sets a texture for the vertex function.

Required.

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

Sets an array of textures for the vertex function.