12345678910111213141516171819202122 |
- import WebGPUBinding from './WebGPUBinding.js';
- class WebGPUStorageBuffer extends WebGPUBinding {
- constructor ( name, attribute ) {
- super( name );
- this.type = 'storage-buffer';
- this.usage = GPUBufferUsage.VERTEX | GPUBufferUsage.STORAGE | GPUBufferUsage.COPY_DST;
- this.attribute = attribute;
- this.bufferGPU = null; // set by the renderer
- Object.defineProperty( this, 'isStorageBuffer', { value: true } );
- }
- }
- export default WebGPUStorageBuffer;
|