UNPKG

playcanvas

Version:

Open-source WebGL/WebGPU 3D engine for the web

29 lines (28 loc) 745 B
export class WebgpuComputePipeline extends WebgpuPipeline { lookupHashes: Uint32Array<ArrayBuffer>; /** * The cache of compute pipelines * * @type {Map<number, CacheEntry[]>} */ cache: Map<number, CacheEntry[]>; get(shader: any, bindGroupFormat: any): any; create(shader: any, pipelineLayout: any): any; } import { WebgpuPipeline } from './webgpu-pipeline.js'; declare class CacheEntry { /** * Compute pipeline * * @type {GPUComputePipeline|null} * @private */ private pipeline; /** * The full array of hashes used to lookup the pipeline, used in case of hash collision. * * @type {Uint32Array|null} */ hashes: Uint32Array | null; } export {};