@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.
26 lines (25 loc) • 1.32 kB
TypeScript
import type { TextureSize } from "../../Materials/Textures/textureCreationOptions.js";
import { RenderTargetWrapper } from "../renderTargetWrapper.js";
import { WebGPUPerfCounter } from "./webgpuPerfCounter.js";
import type { ThinWebGPUEngine } from "../thinWebGPUEngine.js";
/**
* Specialized class used to store a render target of a WebGPU engine
*/
export declare class WebGPURenderTargetWrapper extends RenderTargetWrapper {
/** @internal */
_defaultAttachments: number[];
/**
* Gets the GPU time spent rendering this render target in the last frame (in nanoseconds).
* You have to enable the "timestamp-query" extension in the engine constructor options and set engine.enableGPUTimingMeasurements = true.
*/
readonly gpuTimeInFrame?: WebGPUPerfCounter;
/**
* Initializes the render target wrapper
* @param isMulti true if the wrapper is a multi render target
* @param isCube true if the wrapper should render to a cube texture
* @param size size of the render target (width/height/layers)
* @param engine engine used to create the render target
* @param label defines the label to use for the wrapper (for debugging purpose only)
*/
constructor(isMulti: boolean, isCube: boolean, size: TextureSize, engine: ThinWebGPUEngine, label?: string);
}