UNPKG

@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.

31 lines (30 loc) 1.2 kB
import type { WebGPUDataBuffer } from "../../Meshes/WebGPU/webgpuDataBuffer.js"; import type { Nullable } from "../../types.js"; import type { IDrawContext } from "../IDrawContext.js"; import type { WebGPUBufferManager } from "./webgpuBufferManager.js"; /** @internal */ export declare class WebGPUDrawContext implements IDrawContext { private static _Counter; fastBundle?: GPURenderBundle; bindGroups?: GPUBindGroup[]; uniqueId: number; buffers: { [name: string]: Nullable<WebGPUDataBuffer>; }; indirectDrawBuffer?: GPUBuffer; private _materialContextUpdateId; private _bufferManager; private _useInstancing; private _indirectDrawData?; private _currentInstanceCount; private _isDirty; isDirty(materialContextUpdateId: number): boolean; resetIsDirty(materialContextUpdateId: number): void; get useInstancing(): boolean; set useInstancing(use: boolean); constructor(bufferManager: WebGPUBufferManager); reset(): void; setBuffer(name: string, buffer: Nullable<WebGPUDataBuffer>): void; setIndirectData(indexOrVertexCount: number, instanceCount: number, firstIndexOrVertex: number): void; dispose(): void; }