Instance Method

setVertexSamplerState(_:lodMinClamp:lodMaxClamp:index:)

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

Required.

Declaration

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

Parameters

sampler

The sampler state to set in the sampler argument table.

lodMinClamp

The minimum level of detail used when sampling a texture.

lodMaxClamp

The maximum level of detail used when sampling a texture.

index

An index 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 the sampler state object.

See Also

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