Instance Method

setTextures(_:range:)

Encodes references to an array of textures into the argument buffer.

Declaration

func setTextures(_ textures: [MTLTexture?], range: Range<Int>)

Parameters

textures

An array of textures to encode.

range

A range of indices for the array of textures within the argument buffer. These values correspond to either the index IDs of a Metal shading language declaration or the index fields of MTLArgumentDescriptor objects.

See Also

Encoding Textures

func setTexture(MTLTexture?, index: Int)

Encodes a reference to a texture into the argument buffer.

Required.