three
Version:
JavaScript 3D library
23 lines (14 loc) • 311 B
JavaScript
let _id = 0;
class WebGPUProgrammableStage {
constructor( device, code, type ) {
this.id = _id ++;
this.code = code;
this.type = type;
this.usedTimes = 0;
this.stage = {
module: device.createShaderModule( { code } ),
entryPoint: 'main'
};
}
}
export default WebGPUProgrammableStage;