setArgumentTable(_:stages:)
Associates an argument table with a set of render stages.
Declaration
func setArgumentTable(_ argumentTable: (any MTL4ArgumentTable)?, stages: MTLRenderStages)Parameters
- argumentTable:
Mtl4argumenttable to set.
- stages:
A Mtlrenderstages bitmask that specifies the shader stages with visibility over the table.
Discussion
Metal takes a snapshot of the resources in the argument table when you encode a draw, dispatch, or execute command. This snapshot becomes available to the stages you specify to this method.