|
@@ -9,12 +9,16 @@ class WebGPUAttributes {
|
|
|
|
|
|
get( attribute ) {
|
|
|
|
|
|
+ if ( attribute.isInterleavedBufferAttribute ) attribute = attribute.data;
|
|
|
+
|
|
|
return this.buffers.get( attribute );
|
|
|
|
|
|
}
|
|
|
|
|
|
remove( attribute ) {
|
|
|
|
|
|
+ if ( attribute.isInterleavedBufferAttribute ) attribute = attribute.data;
|
|
|
+
|
|
|
const data = this.buffers.get( attribute );
|
|
|
|
|
|
if ( data ) {
|
|
@@ -29,6 +33,8 @@ class WebGPUAttributes {
|
|
|
|
|
|
update( attribute, isIndex = false, usage = null ) {
|
|
|
|
|
|
+ if ( attribute.isInterleavedBufferAttribute ) attribute = attribute.data;
|
|
|
+
|
|
|
let data = this.buffers.get( attribute );
|
|
|
|
|
|
if ( data === undefined ) {
|