Skip to content

Commit

Permalink
WebGPURenderer: Rename getArrayBuffer() to getArrayBufferAsync() (#26393
Browse files Browse the repository at this point in the history
)
  • Loading branch information
sunag committed Jul 9, 2023
1 parent d7edc95 commit 7558e97
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
12 changes: 10 additions & 2 deletions examples/jsm/renderers/common/Renderer.js
Expand Up @@ -329,9 +329,17 @@ class Renderer {

}

async getArrayBuffer( attribute ) {
getArrayBuffer( attribute ) { // @deprecated, r155

return await this.backend.getArrayBuffer( attribute );
console.warn( 'THREE.Renderer: getArrayBuffer() is deprecated. Use getArrayBufferAsync() instead.' );

return this.getArrayBufferAsync( attribute );

}

async getArrayBufferAsync( attribute ) {

return await this.backend.getArrayBufferAsync( attribute );

}

Expand Down
4 changes: 2 additions & 2 deletions examples/jsm/renderers/webgpu/WebGPUBackend.js
Expand Up @@ -124,9 +124,9 @@ class WebGPUBackend extends Backend {

}

async getArrayBuffer( attribute ) {
async getArrayBufferAsync( attribute ) {

return await this.attributeUtils.getArrayBuffer( attribute );
return await this.attributeUtils.getArrayBufferAsync( attribute );

}

Expand Down
Expand Up @@ -165,7 +165,7 @@ class WebGPUAttributeUtils {

}

async getArrayBuffer( attribute ) {
async getArrayBufferAsync( attribute ) {

const backend = this.backend;
const device = backend.device;
Expand Down

0 comments on commit 7558e97

Please sign in to comment.