read(using:)

Retrieve the current contents of the buffer, for GPU reading.

Declaration

final func read(using commandBuffer: any MTLCommandBuffer) -> any MTLBuffer