Contents

replace(commandBuffer:)

Returns a MTLBuffer for GPU-side write access to the transform data.

Declaration

final func replace(commandBuffer: (any MTLCommandBuffer)?) -> any MTLBuffer

Parameters

  • commandBuffer:

    The command buffer writing to this buffer, or nil to skip synchronization.

Return Value

An MTLBuffer containing the transform data.

Discussion

The renderer waits for commandBuffer to complete before reading from this buffer.

See Also

Replacing transform data