Contents

setTexture(_:index:)

Binds a texture to a texture binding slot.

Declaration

func setTexture(_ resourceID: MTLResourceID, index bindingIndex: Int)

Parameters

  • resourceID:

    The Mtlresourceid of the Mtltexture instance to bind.

  • bindingIndex:

    A valid binding index in the texture binding range. It is an error for this value to match or exceed the value of property Maxtexturebindcount on the descriptor from which you created this argument table.