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.
19 lines
357 B
19 lines
357 B
2 years ago
|
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;
|