@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.
35 lines (34 loc) • 1.52 kB
TypeScript
import type { WebGPUBufferManager } from "./webgpuBufferManager.js";
import { PerfCounter } from "../../Misc/perfCounter.js";
import type { WebGPUEngine } from "../webgpuEngine.js";
import type { WebGPUPerfCounter } from "./webgpuPerfCounter.js";
/** @internal */
export declare class WebGPUTimestampQuery {
private _engine;
private _device;
private _bufferManager;
private _enabled;
private _gpuFrameTimeCounter;
private _measureDuration;
private _measureDurationState;
get gpuFrameTimeCounter(): PerfCounter;
constructor(engine: WebGPUEngine, device: GPUDevice, bufferManager: WebGPUBufferManager);
get enable(): boolean;
set enable(value: boolean);
startFrame(commandEncoder: GPUCommandEncoder): void;
endFrame(commandEncoder: GPUCommandEncoder): void;
startPass(descriptor: GPURenderPassDescriptor | GPUComputePassDescriptor, index: number): void;
endPass(index: number, gpuPerfCounter?: WebGPUPerfCounter): void;
dispose(): void;
}
/** @internal */
export declare class WebGPUDurationMeasure {
private _querySet;
private _count;
constructor(engine: WebGPUEngine, device: GPUDevice, bufferManager: WebGPUBufferManager, count?: number, querySetLabel?: string);
start(encoder: GPUCommandEncoder): void;
stop(encoder: GPUCommandEncoder): Promise<number | null>;
startPass(descriptor: GPURenderPassDescriptor | GPUComputePassDescriptor, index: number): void;
stopPass(index: number): Promise<number | null>;
dispose(): void;
}