Contents

setAddress(_:attributeStride:index:)

Binds a GPU address to a buffer binding slot, providing a dynamic vertex stride.

Declaration

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

Parameters

  • gpuAddress:

    The GPU address of a Mtlbuffer to set.

  • stride:

    The stride between attributes in the buffer.

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

Discussion

This method requires that the value of property supportAttributeStrides on the descriptor from which you created this argument table is true.