webgpuPerfCounter.d.ts 389 B

123456789101112131415
  1. import { PerfCounter } from "../../Misc/perfCounter";
  2. /**
  3. * Class used to define a WebGPU performance counter
  4. */
  5. export declare class WebGPUPerfCounter {
  6. private _gpuTimeInFrameId;
  7. /**
  8. * The GPU time in nanoseconds spent in the last frame
  9. */
  10. counter: PerfCounter;
  11. /**
  12. * @internal
  13. */
  14. _addDuration(currentFrameId: number, duration: number): void;
  15. }