read(commandBuffer:)
Returns a Metal buffer containing the current transform data for GPU read operations.
Declaration
final func read(commandBuffer: (any MTLCommandBuffer)?) -> any MTLBufferParameters
- commandBuffer:
The command buffer that reads from this buffer, or
nilto skip synchronization.
Return Value
A MTLBuffer ready for GPU read operations.
Discussion
The renderer waits for the provided command buffer to complete before discarding the buffer.