We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 15ff86b commit 319461bCopy full SHA for 319461b
src/renderers/webgpu/WebGPUBackend.js
@@ -2092,7 +2092,15 @@ class WebGPUBackend extends Backend {
2092
*/
2093
createIndexAttribute( attribute ) {
2094
2095
- this.attributeUtils.createAttribute( attribute, GPUBufferUsage.INDEX | GPUBufferUsage.COPY_SRC | GPUBufferUsage.COPY_DST );
+ let usage = GPUBufferUsage.INDEX | GPUBufferUsage.COPY_SRC | GPUBufferUsage.COPY_DST;
2096
+
2097
+ if ( attribute.isStorageBufferAttribute || attribute.isStorageInstancedBufferAttribute ) {
2098
2099
+ usage |= GPUBufferUsage.STORAGE;
2100
2101
+ }
2102
2103
+ this.attributeUtils.createAttribute( attribute, usage );
2104
2105
}
2106
0 commit comments