Contents

setAddress(_:index:)

Binds a GPU address to a buffer binding slot.

Declaration

func setAddress(_ gpuAddress: MTLGPUAddress, index bindingIndex: Int)

Parameters

  • gpuAddress:

    The GPU address of a Mtlbuffer to set.

  • 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.