You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

18 lines
357 B

import WebGPUBuffer from './WebGPUBuffer.js';
import { GPUBindingType } from './constants.js';
class WebGPUUniformBuffer extends WebGPUBuffer {
constructor( name, buffer = null ) {
super( name, GPUBindingType.UniformBuffer, buffer );
this.isUniformBuffer = true;
this.usage |= GPUBufferUsage.UNIFORM;
}
}
export default WebGPUUniformBuffer;