UNPKG

@animech-public/playcanvas

Version:
2 lines (1 loc) 351 B
import{WebgpuPipeline as e}from"./webgpu-pipeline.js";class t extends e{get(e,t){const i=this.getPipelineLayout([t.impl]);return this.create(e,i)}create(e,t){const i=this.device.wgpu,o=e.impl,p={compute:{module:o.getComputeShaderModule(),entryPoint:o.computeEntryPoint},layout:t};return i.createComputePipeline(p)}}export{t as WebgpuComputePipeline};