playcanvas
Version:
PlayCanvas WebGL game engine
19 lines (17 loc) • 445 B
JavaScript
class WebgpuPipeline {
getPipelineLayout(bindGroupFormats) {
var bindGroupLayouts = [];
bindGroupFormats.forEach((format)=>{
bindGroupLayouts.push(format.bindGroupLayout);
});
var desc = {
bindGroupLayouts: bindGroupLayouts
};
var pipelineLayout = this.device.wgpu.createPipelineLayout(desc);
return pipelineLayout;
}
constructor(device){
this.device = device;
}
}
export { WebgpuPipeline };