@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.
22 lines (21 loc) • 915 B
TypeScript
import type { WebGPUEngine } from "../webgpuEngine.js";
import type { WebGPUBufferManager } from "./webgpuBufferManager.js";
import type { QueryType } from "./webgpuConstants.js";
/** @internal */
export declare class WebGPUQuerySet {
private _engine;
private _device;
private _bufferManager;
private _count;
private _canUseMultipleBuffers;
private _querySet;
private _queryBuffer;
private _dstBuffers;
get querySet(): GPUQuerySet;
constructor(engine: WebGPUEngine, count: number, type: QueryType, device: GPUDevice, bufferManager: WebGPUBufferManager, canUseMultipleBuffers?: boolean, label?: string);
private _getBuffer;
readValues(firstQuery?: number, queryCount?: number): Promise<BigUint64Array | null>;
readValue(firstQuery?: number): Promise<number | null>;
readTwoValuesAndSubtract(firstQuery?: number): Promise<number | null>;
dispose(): void;
}