Instance Method


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


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



An array of textures to encode.


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.


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