Instance Method

setVertexTexture(_:index:)

Sets a texture for the vertex function.

Required.

Declaration

func setVertexTexture(_ texture: MTLTexture?, index: Int)

Parameters

texture

The texture to set in the texture argument table.

index

An index in the texture argument table.

Discussion

The default texture at each index is nil.

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 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 setVertexTextures([MTLTexture?], range: Range<Int>)

Sets an array of textures for the vertex function.