webgpuComputeContext.d.ts 721 B

123456789101112131415
  1. import type { IComputeContext } from "../../Compute/IComputeContext";
  2. import type { ComputeBindingList, ComputeBindingMapping } from "../Extensions/engine.computeShader";
  3. import type { WebGPUCacheSampler } from "./webgpuCacheSampler";
  4. /** @internal */
  5. export declare class WebGPUComputeContext implements IComputeContext {
  6. private static _Counter;
  7. readonly uniqueId: number;
  8. private _device;
  9. private _cacheSampler;
  10. private _bindGroups;
  11. private _bindGroupEntries;
  12. getBindGroups(bindings: ComputeBindingList, computePipeline: GPUComputePipeline, bindingsMapping?: ComputeBindingMapping): GPUBindGroup[];
  13. constructor(device: GPUDevice, cacheSampler: WebGPUCacheSampler);
  14. clear(): void;
  15. }