Appends a copyBufferToBuffer command to commandEncoder that copies sourceBuffer into a new MAP_READ buffer. Returns that readback buffer; call readBuffer.mapAsync(GPUMapMode.READ) after submitting the encoder.
copyBufferToBuffer
commandEncoder
sourceBuffer
MAP_READ
readBuffer.mapAsync(GPUMapMode.READ)
GPUCommandEncoder.copyBufferToBuffer()
Appends a
copyBufferToBuffercommand tocommandEncoderthat copiessourceBufferinto a newMAP_READbuffer. Returns that readback buffer; callreadBuffer.mapAsync(GPUMapMode.READ)after submitting the encoder.