@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.
29 lines (28 loc) • 1.02 kB
TypeScript
import type { WebGPUEngine } from "../webgpuEngine.js";
import type { WebGPUBufferManager } from "./webgpuBufferManager.js";
/** @internal */
export declare class WebGPUOcclusionQuery {
private _engine;
private _device;
private _bufferManager;
private _currentTotalIndices;
private _countIncrement;
private _querySet;
private _availableIndices;
private _lastBuffer;
private _frameLastBuffer;
private _frameQuerySetIsDirty;
private _queryFrameId;
get querySet(): GPUQuerySet;
get hasQueries(): boolean;
canBeginQuery(index: number): boolean;
constructor(engine: WebGPUEngine, device: GPUDevice, bufferManager: WebGPUBufferManager, startCount?: number, incrementCount?: number);
createQuery(): number;
deleteQuery(index: number): void;
isQueryResultAvailable(index: number): boolean;
getQueryResult(index: number): number;
private _retrieveQueryBuffer;
private _allocateNewIndices;
private _delayQuerySetDispose;
dispose(): void;
}