File tree 5 files changed +18
-8
lines changed
5 files changed +18
-8
lines changed Original file line number Diff line number Diff line change @@ -453,6 +453,16 @@ class Backend {
453
453
*/
454
454
async waitForGPU ( ) { }
455
455
456
+ /**
457
+ * This method performs a readback operation by moving buffer data from
458
+ * a storage buffer attribute from the GPU to the CPU.
459
+ *
460
+ * @async
461
+ * @param {StorageBufferAttribute } attribute - The storage buffer attribute.
462
+ * @return {Promise<ArrayBuffer> } A promise that resolves with the buffer data when the data are ready.
463
+ */
464
+ async getArrayBufferAsync ( /* attribute */ ) { }
465
+
456
466
/**
457
467
* Checks if the given feature is supported by the backend.
458
468
*
Original file line number Diff line number Diff line change @@ -258,8 +258,8 @@ class WebGLBackend extends Backend {
258
258
}
259
259
260
260
/**
261
- * Transfers buffer data from a storage buffer attribute
262
- * from the GPU to the CPU in context of compute shaders .
261
+ * This method performs a readback operation by moving buffer data from
262
+ * a storage buffer attribute from the GPU to the CPU.
263
263
*
264
264
* @async
265
265
* @param {StorageBufferAttribute } attribute - The storage buffer attribute.
Original file line number Diff line number Diff line change @@ -249,8 +249,8 @@ class WebGLAttributeUtils {
249
249
}
250
250
251
251
/**
252
- * Transfers buffer data from a storage buffer attribute
253
- * from the GPU to the CPU in context of compute shaders .
252
+ * This method performs a readback operation by moving buffer data from
253
+ * a storage buffer attribute from the GPU to the CPU.
254
254
*
255
255
* @async
256
256
* @param {StorageBufferAttribute } attribute - The storage buffer attribute.
Original file line number Diff line number Diff line change @@ -253,8 +253,8 @@ class WebGPUBackend extends Backend {
253
253
}
254
254
255
255
/**
256
- * Transfers buffer data from a storage buffer attribute
257
- * from the GPU to the CPU in context of compute shaders .
256
+ * This method performs a readback operation by moving buffer data from
257
+ * a storage buffer attribute from the GPU to the CPU.
258
258
*
259
259
* @async
260
260
* @param {StorageBufferAttribute } attribute - The storage buffer attribute.
Original file line number Diff line number Diff line change @@ -260,8 +260,8 @@ class WebGPUAttributeUtils {
260
260
}
261
261
262
262
/**
263
- * Transfers buffer data from a storage buffer attribute
264
- * from the GPU to the CPU in context of compute shaders .
263
+ * This method performs a readback operation by moving buffer data from
264
+ * a storage buffer attribute from the GPU to the CPU.
265
265
*
266
266
* @async
267
267
* @param {StorageBufferAttribute } attribute - The storage buffer attribute.
You can’t perform that action at this time.
0 commit comments