File tree Expand file tree Collapse file tree 3 files changed +13
-5
lines changed Expand file tree Collapse file tree 3 files changed +13
-5
lines changed Original file line number Diff line number Diff line change @@ -329,9 +329,17 @@ class Renderer {
329329
330330 }
331331
332- async getArrayBuffer ( attribute ) {
332+ getArrayBuffer ( attribute ) { // @deprecated , r155
333333
334- return await this . backend . getArrayBuffer ( attribute ) ;
334+ console . warn ( 'THREE.Renderer: getArrayBuffer() is deprecated. Use getArrayBufferAsync() instead.' ) ;
335+
336+ return this . getArrayBufferAsync ( attribute ) ;
337+
338+ }
339+
340+ async getArrayBufferAsync ( attribute ) {
341+
342+ return await this . backend . getArrayBufferAsync ( attribute ) ;
335343
336344 }
337345
Original file line number Diff line number Diff line change @@ -124,9 +124,9 @@ class WebGPUBackend extends Backend {
124124
125125 }
126126
127- async getArrayBuffer ( attribute ) {
127+ async getArrayBufferAsync ( attribute ) {
128128
129- return await this . attributeUtils . getArrayBuffer ( attribute ) ;
129+ return await this . attributeUtils . getArrayBufferAsync ( attribute ) ;
130130
131131 }
132132
Original file line number Diff line number Diff line change @@ -165,7 +165,7 @@ class WebGPUAttributeUtils {
165165
166166 }
167167
168- async getArrayBuffer ( attribute ) {
168+ async getArrayBufferAsync ( attribute ) {
169169
170170 const backend = this . backend ;
171171 const device = backend . device ;
You can’t perform that action at this time.
0 commit comments