Accueil / npm / three@0.152.1 / examples / jsm / renderers / webgpu / WebGPUStorageBuffer.js
WebGPUStorageBuffer.js
import WebGPUBuffer from './WebGPUBuffer.js';
import { GPUBindingType } from './constants.js';
class WebGPUStorageBuffer extends WebGPUBuffer {
constructor( name, attribute ) {
super( name, GPUBindingType.StorageBuffer, attribute.array );
this.isStorageBuffer = true;
this.usage |= GPUBufferUsage.VERTEX | GPUBufferUsage.STORAGE;
this.attribute = attribute;
}
}
export default WebGPUStorageBuffer;