replace(commandBuffer:)
Returns a MTLBuffer for GPU-side write access to the transform data.
Declaration
final func replace(commandBuffer: (any MTLCommandBuffer)?) -> any MTLBufferParameters
- commandBuffer:
The command buffer writing to this buffer, or
nilto skip synchronization.
Return Value
An MTLBuffer containing the transform data.
Discussion
The renderer waits for commandBuffer to complete before reading from this buffer.