setResource(_:bufferIndex:)
Binds a resource to a buffer binding slot.
Declaration
func setResource(_ resourceID: MTLResourceID, bufferIndex bindingIndex: Int)Parameters
- resourceID:
The Mtlresourceid of the Metal resource to bind.
- bindingIndex:
A valid binding index in the buffer binding range. It is an error for this value to match or exceed the value of property Maxbufferbindcount on the descriptor from which you created this argument table.