|
@@ -323,20 +323,9 @@ class WebGPUBindingUtils {
|
|
|
|
|
|
|
|
} else if ( binding.isStorageBuffer ) {
|
|
} else if ( binding.isStorageBuffer ) {
|
|
|
|
|
|
|
|
- const bindingData = backend.get( binding );
|
|
|
|
|
-
|
|
|
|
|
- if ( bindingData.buffer === undefined ) {
|
|
|
|
|
-
|
|
|
|
|
- const attribute = binding.attribute;
|
|
|
|
|
- //const usage = GPUBufferUsage.STORAGE | GPUBufferUsage.VERTEX | /*GPUBufferUsage.COPY_SRC |*/ GPUBufferUsage.COPY_DST;
|
|
|
|
|
-
|
|
|
|
|
- //backend.attributeUtils.createAttribute( attribute, usage ); // @TODO: Move it to universal renderer
|
|
|
|
|
|
|
+ const buffer = backend.get( binding.attribute ).buffer;
|
|
|
|
|
|
|
|
- bindingData.buffer = backend.get( attribute ).buffer;
|
|
|
|
|
-
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- entriesGPU.push( { binding: bindingPoint, resource: { buffer: bindingData.buffer } } );
|
|
|
|
|
|
|
+ entriesGPU.push( { binding: bindingPoint, resource: { buffer: buffer } } );
|
|
|
|
|
|
|
|
} else if ( binding.isSampledTexture ) {
|
|
} else if ( binding.isSampledTexture ) {
|
|
|
|
|
|