@babylonjs/core
Version:
Getting started? Play directly with the Babylon.js API using our [playground](https://playground.babylonjs.com/). It also contains a lot of samples to learn how to use it.
16 lines (15 loc) • 730 B
TypeScript
import type { IComputeContext } from "../../Compute/IComputeContext.js";
import type { ComputeBindingList, ComputeBindingMapping } from "../Extensions/engine.computeShader.js";
import type { WebGPUCacheSampler } from "./webgpuCacheSampler.js";
/** @internal */
export declare class WebGPUComputeContext implements IComputeContext {
private static _Counter;
readonly uniqueId: number;
private _device;
private _cacheSampler;
private _bindGroups;
private _bindGroupEntries;
getBindGroups(bindings: ComputeBindingList, computePipeline: GPUComputePipeline, bindingsMapping?: ComputeBindingMapping): GPUBindGroup[];
constructor(device: GPUDevice, cacheSampler: WebGPUCacheSampler);
clear(): void;
}