|
@@ -406,11 +406,31 @@ declare module "babylonjs/Misc/devTools" {
|
|
static WarnImport(name: string): string;
|
|
static WarnImport(name: string): string;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+declare module "babylonjs/Misc/interfaces/iWebRequest" {
|
|
|
|
+ /**
|
|
|
|
+ * Interface used to define the mechanism to get data from the network
|
|
|
|
+ */
|
|
|
|
+ export interface IWebRequest {
|
|
|
|
+ /**
|
|
|
|
+ * Returns client's response url
|
|
|
|
+ */
|
|
|
|
+ responseURL: string;
|
|
|
|
+ /**
|
|
|
|
+ * Returns client's status
|
|
|
|
+ */
|
|
|
|
+ status: number;
|
|
|
|
+ /**
|
|
|
|
+ * Returns client's status as a text
|
|
|
|
+ */
|
|
|
|
+ statusText: string;
|
|
|
|
+ }
|
|
|
|
+}
|
|
declare module "babylonjs/Misc/webRequest" {
|
|
declare module "babylonjs/Misc/webRequest" {
|
|
|
|
+ import { IWebRequest } from "babylonjs/Misc/interfaces/iWebRequest";
|
|
/**
|
|
/**
|
|
* Extended version of XMLHttpRequest with support for customizations (headers, ...)
|
|
* Extended version of XMLHttpRequest with support for customizations (headers, ...)
|
|
*/
|
|
*/
|
|
- export class WebRequest {
|
|
|
|
|
|
+ export class WebRequest implements IWebRequest {
|
|
private _xhr;
|
|
private _xhr;
|
|
/**
|
|
/**
|
|
* Custom HTTP Request Headers to be sent with XMLHttpRequests
|
|
* Custom HTTP Request Headers to be sent with XMLHttpRequests
|
|
@@ -8435,6 +8455,24 @@ declare module "babylonjs/Shaders/postprocess.vertex" {
|
|
shader: string;
|
|
shader: string;
|
|
};
|
|
};
|
|
}
|
|
}
|
|
|
|
+declare module "babylonjs/Engines/Extensions/engine.renderTarget" {
|
|
|
|
+ import { InternalTexture } from "babylonjs/Materials/Textures/internalTexture";
|
|
|
|
+ import { RenderTargetCreationOptions } from "babylonjs/Materials/Textures/renderTargetCreationOptions";
|
|
|
|
+ module "babylonjs/Engines/thinEngine" {
|
|
|
|
+ interface ThinEngine {
|
|
|
|
+ /**
|
|
|
|
+ * Creates a new render target texture
|
|
|
|
+ * @param size defines the size of the texture
|
|
|
|
+ * @param options defines the options used to create the texture
|
|
|
|
+ * @returns a new render target texture stored in an InternalTexture
|
|
|
|
+ */
|
|
|
|
+ createRenderTargetTexture(size: number | {
|
|
|
|
+ width: number;
|
|
|
|
+ height: number;
|
|
|
|
+ }, options: boolean | RenderTargetCreationOptions): InternalTexture;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+}
|
|
declare module "babylonjs/Maths/math.axis" {
|
|
declare module "babylonjs/Maths/math.axis" {
|
|
import { Vector3 } from "babylonjs/Maths/math.vector";
|
|
import { Vector3 } from "babylonjs/Maths/math.vector";
|
|
/** Defines supported spaces */
|
|
/** Defines supported spaces */
|
|
@@ -15576,6 +15614,7 @@ declare module "babylonjs/PostProcesses/postProcess" {
|
|
import { IInspectable } from "babylonjs/Misc/iInspectable";
|
|
import { IInspectable } from "babylonjs/Misc/iInspectable";
|
|
import { Engine } from "babylonjs/Engines/engine";
|
|
import { Engine } from "babylonjs/Engines/engine";
|
|
import { Color4 } from "babylonjs/Maths/math.color";
|
|
import { Color4 } from "babylonjs/Maths/math.color";
|
|
|
|
+ import "babylonjs/Engines/Extensions/engine.renderTarget";
|
|
import { InternalTexture } from "babylonjs/Materials/Textures/internalTexture";
|
|
import { InternalTexture } from "babylonjs/Materials/Textures/internalTexture";
|
|
/**
|
|
/**
|
|
* Size options for a post process
|
|
* Size options for a post process
|
|
@@ -16667,7 +16706,7 @@ declare module "babylonjs/Materials/Textures/Procedurals/proceduralTextureSceneC
|
|
private _beforeClear;
|
|
private _beforeClear;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-declare module "babylonjs/Engines/Extensions/engine.renderTarget" {
|
|
|
|
|
|
+declare module "babylonjs/Engines/Extensions/engine.renderTargetCube" {
|
|
import { InternalTexture } from "babylonjs/Materials/Textures/internalTexture";
|
|
import { InternalTexture } from "babylonjs/Materials/Textures/internalTexture";
|
|
import { RenderTargetCreationOptions } from "babylonjs/Materials/Textures/renderTargetCreationOptions";
|
|
import { RenderTargetCreationOptions } from "babylonjs/Materials/Textures/renderTargetCreationOptions";
|
|
module "babylonjs/Engines/thinEngine" {
|
|
module "babylonjs/Engines/thinEngine" {
|
|
@@ -16698,6 +16737,7 @@ declare module "babylonjs/Materials/Textures/Procedurals/proceduralTexture" {
|
|
import { Effect } from "babylonjs/Materials/effect";
|
|
import { Effect } from "babylonjs/Materials/effect";
|
|
import { Texture } from "babylonjs/Materials/Textures/texture";
|
|
import { Texture } from "babylonjs/Materials/Textures/texture";
|
|
import "babylonjs/Engines/Extensions/engine.renderTarget";
|
|
import "babylonjs/Engines/Extensions/engine.renderTarget";
|
|
|
|
+ import "babylonjs/Engines/Extensions/engine.renderTargetCube";
|
|
import "babylonjs/Shaders/procedural.vertex";
|
|
import "babylonjs/Shaders/procedural.vertex";
|
|
/**
|
|
/**
|
|
* Procedural texturing is a way to programmatically create a texture. There are 2 types of procedural textures: code-only, and code that references some classic 2D images, sometimes calmpler' images.
|
|
* Procedural texturing is a way to programmatically create a texture. There are 2 types of procedural textures: code-only, and code that references some classic 2D images, sometimes calmpler' images.
|
|
@@ -20458,6 +20498,7 @@ declare module "babylonjs/Materials/Textures/renderTargetTexture" {
|
|
import { PostProcess } from "babylonjs/PostProcesses/postProcess";
|
|
import { PostProcess } from "babylonjs/PostProcesses/postProcess";
|
|
import { RenderingManager } from "babylonjs/Rendering/renderingManager";
|
|
import { RenderingManager } from "babylonjs/Rendering/renderingManager";
|
|
import "babylonjs/Engines/Extensions/engine.renderTarget";
|
|
import "babylonjs/Engines/Extensions/engine.renderTarget";
|
|
|
|
+ import "babylonjs/Engines/Extensions/engine.renderTargetCube";
|
|
import { Engine } from "babylonjs/Engines/engine";
|
|
import { Engine } from "babylonjs/Engines/engine";
|
|
/**
|
|
/**
|
|
* This Helps creating a texture that will be created from a camera in your scene.
|
|
* This Helps creating a texture that will be created from a camera in your scene.
|
|
@@ -29647,86 +29688,6 @@ declare module "babylonjs/Engines/engineCapabilities" {
|
|
blendMinMax: boolean;
|
|
blendMinMax: boolean;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-declare module "babylonjs/Misc/perfCounter" {
|
|
|
|
- /**
|
|
|
|
- * This class is used to track a performance counter which is number based.
|
|
|
|
- * The user has access to many properties which give statistics of different nature.
|
|
|
|
- *
|
|
|
|
- * The implementer can track two kinds of Performance Counter: time and count.
|
|
|
|
- * For time you can optionally call fetchNewFrame() to notify the start of a new frame to monitor, then call beginMonitoring() to start and endMonitoring() to record the lapsed time. endMonitoring takes a newFrame parameter for you to specify if the monitored time should be set for a new frame or accumulated to the current frame being monitored.
|
|
|
|
- * For count you first have to call fetchNewFrame() to notify the start of a new frame to monitor, then call addCount() how many time required to increment the count value you monitor.
|
|
|
|
- */
|
|
|
|
- export class PerfCounter {
|
|
|
|
- /**
|
|
|
|
- * Gets or sets a global boolean to turn on and off all the counters
|
|
|
|
- */
|
|
|
|
- static Enabled: boolean;
|
|
|
|
- /**
|
|
|
|
- * Returns the smallest value ever
|
|
|
|
- */
|
|
|
|
- readonly min: number;
|
|
|
|
- /**
|
|
|
|
- * Returns the biggest value ever
|
|
|
|
- */
|
|
|
|
- readonly max: number;
|
|
|
|
- /**
|
|
|
|
- * Returns the average value since the performance counter is running
|
|
|
|
- */
|
|
|
|
- readonly average: number;
|
|
|
|
- /**
|
|
|
|
- * Returns the average value of the last second the counter was monitored
|
|
|
|
- */
|
|
|
|
- readonly lastSecAverage: number;
|
|
|
|
- /**
|
|
|
|
- * Returns the current value
|
|
|
|
- */
|
|
|
|
- readonly current: number;
|
|
|
|
- /**
|
|
|
|
- * Gets the accumulated total
|
|
|
|
- */
|
|
|
|
- readonly total: number;
|
|
|
|
- /**
|
|
|
|
- * Gets the total value count
|
|
|
|
- */
|
|
|
|
- readonly count: number;
|
|
|
|
- /**
|
|
|
|
- * Creates a new counter
|
|
|
|
- */
|
|
|
|
- constructor();
|
|
|
|
- /**
|
|
|
|
- * Call this method to start monitoring a new frame.
|
|
|
|
- * This scenario is typically used when you accumulate monitoring time many times for a single frame, you call this method at the start of the frame, then beginMonitoring to start recording and endMonitoring(false) to accumulated the recorded time to the PerfCounter or addCount() to accumulate a monitored count.
|
|
|
|
- */
|
|
|
|
- fetchNewFrame(): void;
|
|
|
|
- /**
|
|
|
|
- * Call this method to monitor a count of something (e.g. mesh drawn in viewport count)
|
|
|
|
- * @param newCount the count value to add to the monitored count
|
|
|
|
- * @param fetchResult true when it's the last time in the frame you add to the counter and you wish to update the statistics properties (min/max/average), false if you only want to update statistics.
|
|
|
|
- */
|
|
|
|
- addCount(newCount: number, fetchResult: boolean): void;
|
|
|
|
- /**
|
|
|
|
- * Start monitoring this performance counter
|
|
|
|
- */
|
|
|
|
- beginMonitoring(): void;
|
|
|
|
- /**
|
|
|
|
- * Compute the time lapsed since the previous beginMonitoring() call.
|
|
|
|
- * @param newFrame true by default to fetch the result and monitor a new frame, if false the time monitored will be added to the current frame counter
|
|
|
|
- */
|
|
|
|
- endMonitoring(newFrame?: boolean): void;
|
|
|
|
- private _fetchResult;
|
|
|
|
- private _startMonitoringTime;
|
|
|
|
- private _min;
|
|
|
|
- private _max;
|
|
|
|
- private _average;
|
|
|
|
- private _current;
|
|
|
|
- private _totalValueCount;
|
|
|
|
- private _totalAccumulated;
|
|
|
|
- private _lastSecAverage;
|
|
|
|
- private _lastSecAccumulated;
|
|
|
|
- private _lastSecTime;
|
|
|
|
- private _lastSecValueCount;
|
|
|
|
- }
|
|
|
|
-}
|
|
|
|
declare module "babylonjs/States/depthCullingState" {
|
|
declare module "babylonjs/States/depthCullingState" {
|
|
import { Nullable } from "babylonjs/types";
|
|
import { Nullable } from "babylonjs/types";
|
|
/**
|
|
/**
|
|
@@ -30021,7 +29982,6 @@ declare module "babylonjs/Engines/thinEngine" {
|
|
import { UniformBuffer } from "babylonjs/Materials/uniformBuffer";
|
|
import { UniformBuffer } from "babylonjs/Materials/uniformBuffer";
|
|
import { Nullable, DataArray, IndicesArray } from "babylonjs/types";
|
|
import { Nullable, DataArray, IndicesArray } from "babylonjs/types";
|
|
import { EngineCapabilities } from "babylonjs/Engines/engineCapabilities";
|
|
import { EngineCapabilities } from "babylonjs/Engines/engineCapabilities";
|
|
- import { PerfCounter } from "babylonjs/Misc/perfCounter";
|
|
|
|
import { Observable } from "babylonjs/Misc/observable";
|
|
import { Observable } from "babylonjs/Misc/observable";
|
|
import { DepthCullingState } from "babylonjs/States/depthCullingState";
|
|
import { DepthCullingState } from "babylonjs/States/depthCullingState";
|
|
import { StencilState } from "babylonjs/States/stencilState";
|
|
import { StencilState } from "babylonjs/States/stencilState";
|
|
@@ -30034,11 +29994,11 @@ declare module "babylonjs/Engines/thinEngine" {
|
|
import { WebGLPipelineContext } from "babylonjs/Engines/WebGL/webGLPipelineContext";
|
|
import { WebGLPipelineContext } from "babylonjs/Engines/WebGL/webGLPipelineContext";
|
|
import { VertexBuffer } from "babylonjs/Meshes/buffer";
|
|
import { VertexBuffer } from "babylonjs/Meshes/buffer";
|
|
import { InstancingAttributeInfo } from "babylonjs/Engines/instancingAttributeInfo";
|
|
import { InstancingAttributeInfo } from "babylonjs/Engines/instancingAttributeInfo";
|
|
- import { WebRequest } from "babylonjs/Misc/webRequest";
|
|
|
|
import { DepthTextureCreationOptions } from "babylonjs/Engines/depthTextureCreationOptions";
|
|
import { DepthTextureCreationOptions } from "babylonjs/Engines/depthTextureCreationOptions";
|
|
import { BaseTexture } from "babylonjs/Materials/Textures/baseTexture";
|
|
import { BaseTexture } from "babylonjs/Materials/Textures/baseTexture";
|
|
import { IOfflineProvider } from "babylonjs/Offline/IOfflineProvider";
|
|
import { IOfflineProvider } from "babylonjs/Offline/IOfflineProvider";
|
|
import { IEffectFallbacks } from "babylonjs/Materials/iEffectFallbacks";
|
|
import { IEffectFallbacks } from "babylonjs/Materials/iEffectFallbacks";
|
|
|
|
+ import { IWebRequest } from "babylonjs/Misc/interfaces/iWebRequest";
|
|
/**
|
|
/**
|
|
* Defines the interface used by objects working like Scene
|
|
* Defines the interface used by objects working like Scene
|
|
* @hidden
|
|
* @hidden
|
|
@@ -30187,8 +30147,6 @@ declare module "babylonjs/Engines/thinEngine" {
|
|
_caps: EngineCapabilities;
|
|
_caps: EngineCapabilities;
|
|
private _isStencilEnable;
|
|
private _isStencilEnable;
|
|
protected _colorWrite: boolean;
|
|
protected _colorWrite: boolean;
|
|
- /** @hidden */
|
|
|
|
- _drawCalls: PerfCounter;
|
|
|
|
private _glVersion;
|
|
private _glVersion;
|
|
private _glRenderer;
|
|
private _glRenderer;
|
|
private _glVendor;
|
|
private _glVendor;
|
|
@@ -30636,6 +30594,8 @@ declare module "babylonjs/Engines/thinEngine" {
|
|
drawArraysType(fillMode: number, verticesStart: number, verticesCount: number, instancesCount?: number): void;
|
|
drawArraysType(fillMode: number, verticesStart: number, verticesCount: number, instancesCount?: number): void;
|
|
private _drawMode;
|
|
private _drawMode;
|
|
/** @hidden */
|
|
/** @hidden */
|
|
|
|
+ protected _reportDrawCall(): void;
|
|
|
|
+ /** @hidden */
|
|
_releaseEffect(effect: Effect): void;
|
|
_releaseEffect(effect: Effect): void;
|
|
/** @hidden */
|
|
/** @hidden */
|
|
_deletePipelineContext(pipelineContext: IPipelineContext): void;
|
|
_deletePipelineContext(pipelineContext: IPipelineContext): void;
|
|
@@ -31093,7 +31053,7 @@ declare module "babylonjs/Engines/thinEngine" {
|
|
/** @hidden */
|
|
/** @hidden */
|
|
_getRGBAMultiSampleBufferFormat(type: number): number;
|
|
_getRGBAMultiSampleBufferFormat(type: number): number;
|
|
/** @hidden */
|
|
/** @hidden */
|
|
- _loadFile(url: string, onSuccess: (data: string | ArrayBuffer, responseURL?: string) => void, onProgress?: (data: any) => void, offlineProvider?: IOfflineProvider, useArrayBuffer?: boolean, onError?: (request?: WebRequest, exception?: any) => void): IFileRequest;
|
|
|
|
|
|
+ _loadFile(url: string, onSuccess: (data: string | ArrayBuffer, responseURL?: string) => void, onProgress?: (data: any) => void, offlineProvider?: IOfflineProvider, useArrayBuffer?: boolean, onError?: (request?: IWebRequest, exception?: any) => void): IFileRequest;
|
|
/**
|
|
/**
|
|
* Gets a boolean indicating if the engine can be instanciated (ie. if a webGL context can be found)
|
|
* Gets a boolean indicating if the engine can be instanciated (ie. if a webGL context can be found)
|
|
* @returns true if the engine can be created
|
|
* @returns true if the engine can be created
|
|
@@ -31855,6 +31815,86 @@ declare module "babylonjs/Misc/performanceMonitor" {
|
|
protected _wrapPosition(i: number): number;
|
|
protected _wrapPosition(i: number): number;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+declare module "babylonjs/Misc/perfCounter" {
|
|
|
|
+ /**
|
|
|
|
+ * This class is used to track a performance counter which is number based.
|
|
|
|
+ * The user has access to many properties which give statistics of different nature.
|
|
|
|
+ *
|
|
|
|
+ * The implementer can track two kinds of Performance Counter: time and count.
|
|
|
|
+ * For time you can optionally call fetchNewFrame() to notify the start of a new frame to monitor, then call beginMonitoring() to start and endMonitoring() to record the lapsed time. endMonitoring takes a newFrame parameter for you to specify if the monitored time should be set for a new frame or accumulated to the current frame being monitored.
|
|
|
|
+ * For count you first have to call fetchNewFrame() to notify the start of a new frame to monitor, then call addCount() how many time required to increment the count value you monitor.
|
|
|
|
+ */
|
|
|
|
+ export class PerfCounter {
|
|
|
|
+ /**
|
|
|
|
+ * Gets or sets a global boolean to turn on and off all the counters
|
|
|
|
+ */
|
|
|
|
+ static Enabled: boolean;
|
|
|
|
+ /**
|
|
|
|
+ * Returns the smallest value ever
|
|
|
|
+ */
|
|
|
|
+ readonly min: number;
|
|
|
|
+ /**
|
|
|
|
+ * Returns the biggest value ever
|
|
|
|
+ */
|
|
|
|
+ readonly max: number;
|
|
|
|
+ /**
|
|
|
|
+ * Returns the average value since the performance counter is running
|
|
|
|
+ */
|
|
|
|
+ readonly average: number;
|
|
|
|
+ /**
|
|
|
|
+ * Returns the average value of the last second the counter was monitored
|
|
|
|
+ */
|
|
|
|
+ readonly lastSecAverage: number;
|
|
|
|
+ /**
|
|
|
|
+ * Returns the current value
|
|
|
|
+ */
|
|
|
|
+ readonly current: number;
|
|
|
|
+ /**
|
|
|
|
+ * Gets the accumulated total
|
|
|
|
+ */
|
|
|
|
+ readonly total: number;
|
|
|
|
+ /**
|
|
|
|
+ * Gets the total value count
|
|
|
|
+ */
|
|
|
|
+ readonly count: number;
|
|
|
|
+ /**
|
|
|
|
+ * Creates a new counter
|
|
|
|
+ */
|
|
|
|
+ constructor();
|
|
|
|
+ /**
|
|
|
|
+ * Call this method to start monitoring a new frame.
|
|
|
|
+ * This scenario is typically used when you accumulate monitoring time many times for a single frame, you call this method at the start of the frame, then beginMonitoring to start recording and endMonitoring(false) to accumulated the recorded time to the PerfCounter or addCount() to accumulate a monitored count.
|
|
|
|
+ */
|
|
|
|
+ fetchNewFrame(): void;
|
|
|
|
+ /**
|
|
|
|
+ * Call this method to monitor a count of something (e.g. mesh drawn in viewport count)
|
|
|
|
+ * @param newCount the count value to add to the monitored count
|
|
|
|
+ * @param fetchResult true when it's the last time in the frame you add to the counter and you wish to update the statistics properties (min/max/average), false if you only want to update statistics.
|
|
|
|
+ */
|
|
|
|
+ addCount(newCount: number, fetchResult: boolean): void;
|
|
|
|
+ /**
|
|
|
|
+ * Start monitoring this performance counter
|
|
|
|
+ */
|
|
|
|
+ beginMonitoring(): void;
|
|
|
|
+ /**
|
|
|
|
+ * Compute the time lapsed since the previous beginMonitoring() call.
|
|
|
|
+ * @param newFrame true by default to fetch the result and monitor a new frame, if false the time monitored will be added to the current frame counter
|
|
|
|
+ */
|
|
|
|
+ endMonitoring(newFrame?: boolean): void;
|
|
|
|
+ private _fetchResult;
|
|
|
|
+ private _startMonitoringTime;
|
|
|
|
+ private _min;
|
|
|
|
+ private _max;
|
|
|
|
+ private _average;
|
|
|
|
+ private _current;
|
|
|
|
+ private _totalValueCount;
|
|
|
|
+ private _totalAccumulated;
|
|
|
|
+ private _lastSecAverage;
|
|
|
|
+ private _lastSecAccumulated;
|
|
|
|
+ private _lastSecTime;
|
|
|
|
+ private _lastSecValueCount;
|
|
|
|
+ }
|
|
|
|
+}
|
|
declare module "babylonjs/Engines/engine" {
|
|
declare module "babylonjs/Engines/engine" {
|
|
import { Observable } from "babylonjs/Misc/observable";
|
|
import { Observable } from "babylonjs/Misc/observable";
|
|
import { Nullable, IndicesArray } from "babylonjs/types";
|
|
import { Nullable, IndicesArray } from "babylonjs/types";
|
|
@@ -31868,10 +31908,10 @@ declare module "babylonjs/Engines/engine" {
|
|
import { ICustomAnimationFrameRequester } from "babylonjs/Misc/customAnimationFrameRequester";
|
|
import { ICustomAnimationFrameRequester } from "babylonjs/Misc/customAnimationFrameRequester";
|
|
import { ThinEngine, EngineOptions } from "babylonjs/Engines/thinEngine";
|
|
import { ThinEngine, EngineOptions } from "babylonjs/Engines/thinEngine";
|
|
import { IViewportLike, IColor4Like } from "babylonjs/Maths/math.like";
|
|
import { IViewportLike, IColor4Like } from "babylonjs/Maths/math.like";
|
|
- import { RenderTargetCreationOptions } from "babylonjs/Materials/Textures/renderTargetCreationOptions";
|
|
|
|
import { RenderTargetTexture } from "babylonjs/Materials/Textures/renderTargetTexture";
|
|
import { RenderTargetTexture } from "babylonjs/Materials/Textures/renderTargetTexture";
|
|
import { PerformanceMonitor } from "babylonjs/Misc/performanceMonitor";
|
|
import { PerformanceMonitor } from "babylonjs/Misc/performanceMonitor";
|
|
import { DataBuffer } from "babylonjs/Meshes/dataBuffer";
|
|
import { DataBuffer } from "babylonjs/Meshes/dataBuffer";
|
|
|
|
+ import { PerfCounter } from "babylonjs/Misc/perfCounter";
|
|
import { Material } from "babylonjs/Materials/material";
|
|
import { Material } from "babylonjs/Materials/material";
|
|
import { PostProcess } from "babylonjs/PostProcesses/postProcess";
|
|
import { PostProcess } from "babylonjs/PostProcesses/postProcess";
|
|
/**
|
|
/**
|
|
@@ -32212,6 +32252,8 @@ declare module "babylonjs/Engines/engine" {
|
|
protected readonly _supportsHardwareTextureRescaling: boolean;
|
|
protected readonly _supportsHardwareTextureRescaling: boolean;
|
|
private _fps;
|
|
private _fps;
|
|
private _deltaTime;
|
|
private _deltaTime;
|
|
|
|
+ /** @hidden */
|
|
|
|
+ _drawCalls: PerfCounter;
|
|
/**
|
|
/**
|
|
* Turn this value on if you want to pause FPS computation when in background
|
|
* Turn this value on if you want to pause FPS computation when in background
|
|
*/
|
|
*/
|
|
@@ -32512,6 +32554,7 @@ declare module "babylonjs/Engines/engine" {
|
|
* Disable previously set scissor test rectangle
|
|
* Disable previously set scissor test rectangle
|
|
*/
|
|
*/
|
|
disableScissor(): void;
|
|
disableScissor(): void;
|
|
|
|
+ protected _reportDrawCall(): void;
|
|
/**
|
|
/**
|
|
* Initializes a webVR display and starts listening to display change events
|
|
* Initializes a webVR display and starts listening to display change events
|
|
* The onVRDisplayChangedObservable will be notified upon these changes
|
|
* The onVRDisplayChangedObservable will be notified upon these changes
|
|
@@ -32679,16 +32722,6 @@ declare module "babylonjs/Engines/engine" {
|
|
*/
|
|
*/
|
|
updateDynamicIndexBuffer(indexBuffer: DataBuffer, indices: IndicesArray, offset?: number): void;
|
|
updateDynamicIndexBuffer(indexBuffer: DataBuffer, indices: IndicesArray, offset?: number): void;
|
|
/**
|
|
/**
|
|
- * Creates a new render target texture
|
|
|
|
- * @param size defines the size of the texture
|
|
|
|
- * @param options defines the options used to create the texture
|
|
|
|
- * @returns a new render target texture stored in an InternalTexture
|
|
|
|
- */
|
|
|
|
- createRenderTargetTexture(size: number | {
|
|
|
|
- width: number;
|
|
|
|
- height: number;
|
|
|
|
- }, options: boolean | RenderTargetCreationOptions): InternalTexture;
|
|
|
|
- /**
|
|
|
|
* Updates the sample count of a render target texture
|
|
* Updates the sample count of a render target texture
|
|
* @see http://doc.babylonjs.com/features/webgl2#multisample-render-targets
|
|
* @see http://doc.babylonjs.com/features/webgl2#multisample-render-targets
|
|
* @param texture defines the texture to update
|
|
* @param texture defines the texture to update
|
|
@@ -46086,6 +46119,7 @@ declare module "babylonjs/Engines/Extensions/index" {
|
|
export * from "babylonjs/Engines/Extensions/engine.multiRender";
|
|
export * from "babylonjs/Engines/Extensions/engine.multiRender";
|
|
export * from "babylonjs/Engines/Extensions/engine.cubeTexture";
|
|
export * from "babylonjs/Engines/Extensions/engine.cubeTexture";
|
|
export * from "babylonjs/Engines/Extensions/engine.renderTarget";
|
|
export * from "babylonjs/Engines/Extensions/engine.renderTarget";
|
|
|
|
+ export * from "babylonjs/Engines/Extensions/engine.renderTargetCube";
|
|
export * from "babylonjs/Engines/Extensions/engine.webVR";
|
|
export * from "babylonjs/Engines/Extensions/engine.webVR";
|
|
export * from "babylonjs/Engines/Extensions/engine.uniformBuffer";
|
|
export * from "babylonjs/Engines/Extensions/engine.uniformBuffer";
|
|
}
|
|
}
|
|
@@ -46110,7 +46144,7 @@ declare module "babylonjs/Misc/environmentTextureTools" {
|
|
import { SphericalPolynomial } from "babylonjs/Maths/sphericalPolynomial";
|
|
import { SphericalPolynomial } from "babylonjs/Maths/sphericalPolynomial";
|
|
import { InternalTexture } from "babylonjs/Materials/Textures/internalTexture";
|
|
import { InternalTexture } from "babylonjs/Materials/Textures/internalTexture";
|
|
import { CubeTexture } from "babylonjs/Materials/Textures/cubeTexture";
|
|
import { CubeTexture } from "babylonjs/Materials/Textures/cubeTexture";
|
|
- import "babylonjs/Engines/Extensions/engine.renderTarget";
|
|
|
|
|
|
+ import "babylonjs/Engines/Extensions/engine.renderTargetCube";
|
|
import "babylonjs/Shaders/rgbdEncode.fragment";
|
|
import "babylonjs/Shaders/rgbdEncode.fragment";
|
|
import "babylonjs/Shaders/rgbdDecode.fragment";
|
|
import "babylonjs/Shaders/rgbdDecode.fragment";
|
|
/**
|
|
/**
|
|
@@ -48381,6 +48415,7 @@ declare module "babylonjs/Helpers/photoDome" {
|
|
}
|
|
}
|
|
declare module "babylonjs/Misc/rgbdTextureTools" {
|
|
declare module "babylonjs/Misc/rgbdTextureTools" {
|
|
import "babylonjs/Shaders/rgbdDecode.fragment";
|
|
import "babylonjs/Shaders/rgbdDecode.fragment";
|
|
|
|
+ import "babylonjs/Engines/Extensions/engine.renderTarget";
|
|
import { Texture } from "babylonjs/Materials/Textures/texture";
|
|
import { Texture } from "babylonjs/Materials/Textures/texture";
|
|
/**
|
|
/**
|
|
* Class used to host RGBD texture specific utilities
|
|
* Class used to host RGBD texture specific utilities
|
|
@@ -54839,7 +54874,9 @@ declare module "babylonjs/Materials/Textures/htmlElementTexture" {
|
|
import { Nullable } from "babylonjs/types";
|
|
import { Nullable } from "babylonjs/types";
|
|
import { BaseTexture } from "babylonjs/Materials/Textures/baseTexture";
|
|
import { BaseTexture } from "babylonjs/Materials/Textures/baseTexture";
|
|
import { Matrix } from "babylonjs/Maths/math.vector";
|
|
import { Matrix } from "babylonjs/Maths/math.vector";
|
|
- import { Engine } from "babylonjs/Engines/engine";
|
|
|
|
|
|
+ import "babylonjs/Engines/Extensions/engine.dynamicTexture";
|
|
|
|
+ import "babylonjs/Engines/Extensions/engine.videoTexture";
|
|
|
|
+ import { ThinEngine } from "babylonjs/Engines/thinEngine";
|
|
import { Scene } from "babylonjs/scene";
|
|
import { Scene } from "babylonjs/scene";
|
|
/**
|
|
/**
|
|
* Defines the options related to the creation of an HtmlElementTexture
|
|
* Defines the options related to the creation of an HtmlElementTexture
|
|
@@ -54856,7 +54893,7 @@ declare module "babylonjs/Materials/Textures/htmlElementTexture" {
|
|
/**
|
|
/**
|
|
* Defines the engine instance to use the texture with. It is not mandatory if you define a scene.
|
|
* Defines the engine instance to use the texture with. It is not mandatory if you define a scene.
|
|
*/
|
|
*/
|
|
- engine: Nullable<Engine>;
|
|
|
|
|
|
+ engine: Nullable<ThinEngine>;
|
|
/**
|
|
/**
|
|
* Defines the scene the texture belongs to. It is not mandatory if you define an engine.
|
|
* Defines the scene the texture belongs to. It is not mandatory if you define an engine.
|
|
*/
|
|
*/
|
|
@@ -58285,10 +58322,11 @@ declare module "babylonjs/Materials/Node/index" {
|
|
declare module "babylonjs/Materials/effectRenderer" {
|
|
declare module "babylonjs/Materials/effectRenderer" {
|
|
import { Nullable } from "babylonjs/types";
|
|
import { Nullable } from "babylonjs/types";
|
|
import { Texture } from "babylonjs/Materials/Textures/texture";
|
|
import { Texture } from "babylonjs/Materials/Textures/texture";
|
|
- import { Engine } from "babylonjs/Engines/engine";
|
|
|
|
|
|
+ import { ThinEngine } from "babylonjs/Engines/thinEngine";
|
|
import { Viewport } from "babylonjs/Maths/math.viewport";
|
|
import { Viewport } from "babylonjs/Maths/math.viewport";
|
|
import { Observable } from "babylonjs/Misc/observable";
|
|
import { Observable } from "babylonjs/Misc/observable";
|
|
import { Effect } from "babylonjs/Materials/effect";
|
|
import { Effect } from "babylonjs/Materials/effect";
|
|
|
|
+ import "babylonjs/Engines/Extensions/engine.renderTarget";
|
|
import "babylonjs/Shaders/postprocess.vertex";
|
|
import "babylonjs/Shaders/postprocess.vertex";
|
|
/**
|
|
/**
|
|
* Effect Render Options
|
|
* Effect Render Options
|
|
@@ -58320,7 +58358,7 @@ declare module "babylonjs/Materials/effectRenderer" {
|
|
* @param engine the engine to use for rendering
|
|
* @param engine the engine to use for rendering
|
|
* @param options defines the options of the effect renderer
|
|
* @param options defines the options of the effect renderer
|
|
*/
|
|
*/
|
|
- constructor(engine: Engine, options?: IEffectRendererOptions);
|
|
|
|
|
|
+ constructor(engine: ThinEngine, options?: IEffectRendererOptions);
|
|
/**
|
|
/**
|
|
* Sets the current viewport in normalized coordinates 0-1
|
|
* Sets the current viewport in normalized coordinates 0-1
|
|
* @param viewport Defines the viewport to set (defaults to 0 0 1 1)
|
|
* @param viewport Defines the viewport to set (defaults to 0 0 1 1)
|
|
@@ -58360,7 +58398,7 @@ declare module "babylonjs/Materials/effectRenderer" {
|
|
/**
|
|
/**
|
|
* Engine to use to create the effect
|
|
* Engine to use to create the effect
|
|
*/
|
|
*/
|
|
- engine: Engine;
|
|
|
|
|
|
+ engine: ThinEngine;
|
|
/**
|
|
/**
|
|
* Fragment shader for the effect
|
|
* Fragment shader for the effect
|
|
*/
|
|
*/
|
|
@@ -67162,9 +67200,28 @@ declare module BABYLON {
|
|
}
|
|
}
|
|
declare module BABYLON {
|
|
declare module BABYLON {
|
|
/**
|
|
/**
|
|
|
|
+ * Interface used to define the mechanism to get data from the network
|
|
|
|
+ */
|
|
|
|
+ export interface IWebRequest {
|
|
|
|
+ /**
|
|
|
|
+ * Returns client's response url
|
|
|
|
+ */
|
|
|
|
+ responseURL: string;
|
|
|
|
+ /**
|
|
|
|
+ * Returns client's status
|
|
|
|
+ */
|
|
|
|
+ status: number;
|
|
|
|
+ /**
|
|
|
|
+ * Returns client's status as a text
|
|
|
|
+ */
|
|
|
|
+ statusText: string;
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+declare module BABYLON {
|
|
|
|
+ /**
|
|
* Extended version of XMLHttpRequest with support for customizations (headers, ...)
|
|
* Extended version of XMLHttpRequest with support for customizations (headers, ...)
|
|
*/
|
|
*/
|
|
- export class WebRequest {
|
|
|
|
|
|
+ export class WebRequest implements IWebRequest {
|
|
private _xhr;
|
|
private _xhr;
|
|
/**
|
|
/**
|
|
* Custom HTTP Request Headers to be sent with XMLHttpRequests
|
|
* Custom HTTP Request Headers to be sent with XMLHttpRequests
|
|
@@ -75093,6 +75150,20 @@ declare module BABYLON {
|
|
};
|
|
};
|
|
}
|
|
}
|
|
declare module BABYLON {
|
|
declare module BABYLON {
|
|
|
|
+ interface ThinEngine {
|
|
|
|
+ /**
|
|
|
|
+ * Creates a new render target texture
|
|
|
|
+ * @param size defines the size of the texture
|
|
|
|
+ * @param options defines the options used to create the texture
|
|
|
|
+ * @returns a new render target texture stored in an InternalTexture
|
|
|
|
+ */
|
|
|
|
+ createRenderTargetTexture(size: number | {
|
|
|
|
+ width: number;
|
|
|
|
+ height: number;
|
|
|
|
+ }, options: boolean | RenderTargetCreationOptions): InternalTexture;
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+declare module BABYLON {
|
|
/** Defines supported spaces */
|
|
/** Defines supported spaces */
|
|
export enum Space {
|
|
export enum Space {
|
|
/** Local (object) space */
|
|
/** Local (object) space */
|
|
@@ -95566,86 +95637,6 @@ declare module BABYLON {
|
|
}
|
|
}
|
|
declare module BABYLON {
|
|
declare module BABYLON {
|
|
/**
|
|
/**
|
|
- * This class is used to track a performance counter which is number based.
|
|
|
|
- * The user has access to many properties which give statistics of different nature.
|
|
|
|
- *
|
|
|
|
- * The implementer can track two kinds of Performance Counter: time and count.
|
|
|
|
- * For time you can optionally call fetchNewFrame() to notify the start of a new frame to monitor, then call beginMonitoring() to start and endMonitoring() to record the lapsed time. endMonitoring takes a newFrame parameter for you to specify if the monitored time should be set for a new frame or accumulated to the current frame being monitored.
|
|
|
|
- * For count you first have to call fetchNewFrame() to notify the start of a new frame to monitor, then call addCount() how many time required to increment the count value you monitor.
|
|
|
|
- */
|
|
|
|
- export class PerfCounter {
|
|
|
|
- /**
|
|
|
|
- * Gets or sets a global boolean to turn on and off all the counters
|
|
|
|
- */
|
|
|
|
- static Enabled: boolean;
|
|
|
|
- /**
|
|
|
|
- * Returns the smallest value ever
|
|
|
|
- */
|
|
|
|
- readonly min: number;
|
|
|
|
- /**
|
|
|
|
- * Returns the biggest value ever
|
|
|
|
- */
|
|
|
|
- readonly max: number;
|
|
|
|
- /**
|
|
|
|
- * Returns the average value since the performance counter is running
|
|
|
|
- */
|
|
|
|
- readonly average: number;
|
|
|
|
- /**
|
|
|
|
- * Returns the average value of the last second the counter was monitored
|
|
|
|
- */
|
|
|
|
- readonly lastSecAverage: number;
|
|
|
|
- /**
|
|
|
|
- * Returns the current value
|
|
|
|
- */
|
|
|
|
- readonly current: number;
|
|
|
|
- /**
|
|
|
|
- * Gets the accumulated total
|
|
|
|
- */
|
|
|
|
- readonly total: number;
|
|
|
|
- /**
|
|
|
|
- * Gets the total value count
|
|
|
|
- */
|
|
|
|
- readonly count: number;
|
|
|
|
- /**
|
|
|
|
- * Creates a new counter
|
|
|
|
- */
|
|
|
|
- constructor();
|
|
|
|
- /**
|
|
|
|
- * Call this method to start monitoring a new frame.
|
|
|
|
- * This scenario is typically used when you accumulate monitoring time many times for a single frame, you call this method at the start of the frame, then beginMonitoring to start recording and endMonitoring(false) to accumulated the recorded time to the PerfCounter or addCount() to accumulate a monitored count.
|
|
|
|
- */
|
|
|
|
- fetchNewFrame(): void;
|
|
|
|
- /**
|
|
|
|
- * Call this method to monitor a count of something (e.g. mesh drawn in viewport count)
|
|
|
|
- * @param newCount the count value to add to the monitored count
|
|
|
|
- * @param fetchResult true when it's the last time in the frame you add to the counter and you wish to update the statistics properties (min/max/average), false if you only want to update statistics.
|
|
|
|
- */
|
|
|
|
- addCount(newCount: number, fetchResult: boolean): void;
|
|
|
|
- /**
|
|
|
|
- * Start monitoring this performance counter
|
|
|
|
- */
|
|
|
|
- beginMonitoring(): void;
|
|
|
|
- /**
|
|
|
|
- * Compute the time lapsed since the previous beginMonitoring() call.
|
|
|
|
- * @param newFrame true by default to fetch the result and monitor a new frame, if false the time monitored will be added to the current frame counter
|
|
|
|
- */
|
|
|
|
- endMonitoring(newFrame?: boolean): void;
|
|
|
|
- private _fetchResult;
|
|
|
|
- private _startMonitoringTime;
|
|
|
|
- private _min;
|
|
|
|
- private _max;
|
|
|
|
- private _average;
|
|
|
|
- private _current;
|
|
|
|
- private _totalValueCount;
|
|
|
|
- private _totalAccumulated;
|
|
|
|
- private _lastSecAverage;
|
|
|
|
- private _lastSecAccumulated;
|
|
|
|
- private _lastSecTime;
|
|
|
|
- private _lastSecValueCount;
|
|
|
|
- }
|
|
|
|
-}
|
|
|
|
-declare module BABYLON {
|
|
|
|
- /**
|
|
|
|
* @hidden
|
|
* @hidden
|
|
**/
|
|
**/
|
|
export class DepthCullingState {
|
|
export class DepthCullingState {
|
|
@@ -96069,8 +96060,6 @@ declare module BABYLON {
|
|
_caps: EngineCapabilities;
|
|
_caps: EngineCapabilities;
|
|
private _isStencilEnable;
|
|
private _isStencilEnable;
|
|
protected _colorWrite: boolean;
|
|
protected _colorWrite: boolean;
|
|
- /** @hidden */
|
|
|
|
- _drawCalls: PerfCounter;
|
|
|
|
private _glVersion;
|
|
private _glVersion;
|
|
private _glRenderer;
|
|
private _glRenderer;
|
|
private _glVendor;
|
|
private _glVendor;
|
|
@@ -96518,6 +96507,8 @@ declare module BABYLON {
|
|
drawArraysType(fillMode: number, verticesStart: number, verticesCount: number, instancesCount?: number): void;
|
|
drawArraysType(fillMode: number, verticesStart: number, verticesCount: number, instancesCount?: number): void;
|
|
private _drawMode;
|
|
private _drawMode;
|
|
/** @hidden */
|
|
/** @hidden */
|
|
|
|
+ protected _reportDrawCall(): void;
|
|
|
|
+ /** @hidden */
|
|
_releaseEffect(effect: Effect): void;
|
|
_releaseEffect(effect: Effect): void;
|
|
/** @hidden */
|
|
/** @hidden */
|
|
_deletePipelineContext(pipelineContext: IPipelineContext): void;
|
|
_deletePipelineContext(pipelineContext: IPipelineContext): void;
|
|
@@ -96975,7 +96966,7 @@ declare module BABYLON {
|
|
/** @hidden */
|
|
/** @hidden */
|
|
_getRGBAMultiSampleBufferFormat(type: number): number;
|
|
_getRGBAMultiSampleBufferFormat(type: number): number;
|
|
/** @hidden */
|
|
/** @hidden */
|
|
- _loadFile(url: string, onSuccess: (data: string | ArrayBuffer, responseURL?: string) => void, onProgress?: (data: any) => void, offlineProvider?: IOfflineProvider, useArrayBuffer?: boolean, onError?: (request?: WebRequest, exception?: any) => void): IFileRequest;
|
|
|
|
|
|
+ _loadFile(url: string, onSuccess: (data: string | ArrayBuffer, responseURL?: string) => void, onProgress?: (data: any) => void, offlineProvider?: IOfflineProvider, useArrayBuffer?: boolean, onError?: (request?: IWebRequest, exception?: any) => void): IFileRequest;
|
|
/**
|
|
/**
|
|
* Gets a boolean indicating if the engine can be instanciated (ie. if a webGL context can be found)
|
|
* Gets a boolean indicating if the engine can be instanciated (ie. if a webGL context can be found)
|
|
* @returns true if the engine can be created
|
|
* @returns true if the engine can be created
|
|
@@ -97729,6 +97720,86 @@ declare module BABYLON {
|
|
}
|
|
}
|
|
declare module BABYLON {
|
|
declare module BABYLON {
|
|
/**
|
|
/**
|
|
|
|
+ * This class is used to track a performance counter which is number based.
|
|
|
|
+ * The user has access to many properties which give statistics of different nature.
|
|
|
|
+ *
|
|
|
|
+ * The implementer can track two kinds of Performance Counter: time and count.
|
|
|
|
+ * For time you can optionally call fetchNewFrame() to notify the start of a new frame to monitor, then call beginMonitoring() to start and endMonitoring() to record the lapsed time. endMonitoring takes a newFrame parameter for you to specify if the monitored time should be set for a new frame or accumulated to the current frame being monitored.
|
|
|
|
+ * For count you first have to call fetchNewFrame() to notify the start of a new frame to monitor, then call addCount() how many time required to increment the count value you monitor.
|
|
|
|
+ */
|
|
|
|
+ export class PerfCounter {
|
|
|
|
+ /**
|
|
|
|
+ * Gets or sets a global boolean to turn on and off all the counters
|
|
|
|
+ */
|
|
|
|
+ static Enabled: boolean;
|
|
|
|
+ /**
|
|
|
|
+ * Returns the smallest value ever
|
|
|
|
+ */
|
|
|
|
+ readonly min: number;
|
|
|
|
+ /**
|
|
|
|
+ * Returns the biggest value ever
|
|
|
|
+ */
|
|
|
|
+ readonly max: number;
|
|
|
|
+ /**
|
|
|
|
+ * Returns the average value since the performance counter is running
|
|
|
|
+ */
|
|
|
|
+ readonly average: number;
|
|
|
|
+ /**
|
|
|
|
+ * Returns the average value of the last second the counter was monitored
|
|
|
|
+ */
|
|
|
|
+ readonly lastSecAverage: number;
|
|
|
|
+ /**
|
|
|
|
+ * Returns the current value
|
|
|
|
+ */
|
|
|
|
+ readonly current: number;
|
|
|
|
+ /**
|
|
|
|
+ * Gets the accumulated total
|
|
|
|
+ */
|
|
|
|
+ readonly total: number;
|
|
|
|
+ /**
|
|
|
|
+ * Gets the total value count
|
|
|
|
+ */
|
|
|
|
+ readonly count: number;
|
|
|
|
+ /**
|
|
|
|
+ * Creates a new counter
|
|
|
|
+ */
|
|
|
|
+ constructor();
|
|
|
|
+ /**
|
|
|
|
+ * Call this method to start monitoring a new frame.
|
|
|
|
+ * This scenario is typically used when you accumulate monitoring time many times for a single frame, you call this method at the start of the frame, then beginMonitoring to start recording and endMonitoring(false) to accumulated the recorded time to the PerfCounter or addCount() to accumulate a monitored count.
|
|
|
|
+ */
|
|
|
|
+ fetchNewFrame(): void;
|
|
|
|
+ /**
|
|
|
|
+ * Call this method to monitor a count of something (e.g. mesh drawn in viewport count)
|
|
|
|
+ * @param newCount the count value to add to the monitored count
|
|
|
|
+ * @param fetchResult true when it's the last time in the frame you add to the counter and you wish to update the statistics properties (min/max/average), false if you only want to update statistics.
|
|
|
|
+ */
|
|
|
|
+ addCount(newCount: number, fetchResult: boolean): void;
|
|
|
|
+ /**
|
|
|
|
+ * Start monitoring this performance counter
|
|
|
|
+ */
|
|
|
|
+ beginMonitoring(): void;
|
|
|
|
+ /**
|
|
|
|
+ * Compute the time lapsed since the previous beginMonitoring() call.
|
|
|
|
+ * @param newFrame true by default to fetch the result and monitor a new frame, if false the time monitored will be added to the current frame counter
|
|
|
|
+ */
|
|
|
|
+ endMonitoring(newFrame?: boolean): void;
|
|
|
|
+ private _fetchResult;
|
|
|
|
+ private _startMonitoringTime;
|
|
|
|
+ private _min;
|
|
|
|
+ private _max;
|
|
|
|
+ private _average;
|
|
|
|
+ private _current;
|
|
|
|
+ private _totalValueCount;
|
|
|
|
+ private _totalAccumulated;
|
|
|
|
+ private _lastSecAverage;
|
|
|
|
+ private _lastSecAccumulated;
|
|
|
|
+ private _lastSecTime;
|
|
|
|
+ private _lastSecValueCount;
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+declare module BABYLON {
|
|
|
|
+ /**
|
|
* Defines the interface used by display changed events
|
|
* Defines the interface used by display changed events
|
|
*/
|
|
*/
|
|
export interface IDisplayChangedEventArgs {
|
|
export interface IDisplayChangedEventArgs {
|
|
@@ -98066,6 +98137,8 @@ declare module BABYLON {
|
|
protected readonly _supportsHardwareTextureRescaling: boolean;
|
|
protected readonly _supportsHardwareTextureRescaling: boolean;
|
|
private _fps;
|
|
private _fps;
|
|
private _deltaTime;
|
|
private _deltaTime;
|
|
|
|
+ /** @hidden */
|
|
|
|
+ _drawCalls: PerfCounter;
|
|
/**
|
|
/**
|
|
* Turn this value on if you want to pause FPS computation when in background
|
|
* Turn this value on if you want to pause FPS computation when in background
|
|
*/
|
|
*/
|
|
@@ -98366,6 +98439,7 @@ declare module BABYLON {
|
|
* Disable previously set scissor test rectangle
|
|
* Disable previously set scissor test rectangle
|
|
*/
|
|
*/
|
|
disableScissor(): void;
|
|
disableScissor(): void;
|
|
|
|
+ protected _reportDrawCall(): void;
|
|
/**
|
|
/**
|
|
* Initializes a webVR display and starts listening to display change events
|
|
* Initializes a webVR display and starts listening to display change events
|
|
* The onVRDisplayChangedObservable will be notified upon these changes
|
|
* The onVRDisplayChangedObservable will be notified upon these changes
|
|
@@ -98533,16 +98607,6 @@ declare module BABYLON {
|
|
*/
|
|
*/
|
|
updateDynamicIndexBuffer(indexBuffer: DataBuffer, indices: IndicesArray, offset?: number): void;
|
|
updateDynamicIndexBuffer(indexBuffer: DataBuffer, indices: IndicesArray, offset?: number): void;
|
|
/**
|
|
/**
|
|
- * Creates a new render target texture
|
|
|
|
- * @param size defines the size of the texture
|
|
|
|
- * @param options defines the options used to create the texture
|
|
|
|
- * @returns a new render target texture stored in an InternalTexture
|
|
|
|
- */
|
|
|
|
- createRenderTargetTexture(size: number | {
|
|
|
|
- width: number;
|
|
|
|
- height: number;
|
|
|
|
- }, options: boolean | RenderTargetCreationOptions): InternalTexture;
|
|
|
|
- /**
|
|
|
|
* Updates the sample count of a render target texture
|
|
* Updates the sample count of a render target texture
|
|
* @see http://doc.babylonjs.com/features/webgl2#multisample-render-targets
|
|
* @see http://doc.babylonjs.com/features/webgl2#multisample-render-targets
|
|
* @param texture defines the texture to update
|
|
* @param texture defines the texture to update
|
|
@@ -119185,7 +119249,7 @@ declare module BABYLON {
|
|
/**
|
|
/**
|
|
* Defines the engine instance to use the texture with. It is not mandatory if you define a scene.
|
|
* Defines the engine instance to use the texture with. It is not mandatory if you define a scene.
|
|
*/
|
|
*/
|
|
- engine: Nullable<Engine>;
|
|
|
|
|
|
+ engine: Nullable<ThinEngine>;
|
|
/**
|
|
/**
|
|
* Defines the scene the texture belongs to. It is not mandatory if you define an engine.
|
|
* Defines the scene the texture belongs to. It is not mandatory if you define an engine.
|
|
*/
|
|
*/
|
|
@@ -122254,7 +122318,7 @@ declare module BABYLON {
|
|
* @param engine the engine to use for rendering
|
|
* @param engine the engine to use for rendering
|
|
* @param options defines the options of the effect renderer
|
|
* @param options defines the options of the effect renderer
|
|
*/
|
|
*/
|
|
- constructor(engine: Engine, options?: IEffectRendererOptions);
|
|
|
|
|
|
+ constructor(engine: ThinEngine, options?: IEffectRendererOptions);
|
|
/**
|
|
/**
|
|
* Sets the current viewport in normalized coordinates 0-1
|
|
* Sets the current viewport in normalized coordinates 0-1
|
|
* @param viewport Defines the viewport to set (defaults to 0 0 1 1)
|
|
* @param viewport Defines the viewport to set (defaults to 0 0 1 1)
|
|
@@ -122294,7 +122358,7 @@ declare module BABYLON {
|
|
/**
|
|
/**
|
|
* Engine to use to create the effect
|
|
* Engine to use to create the effect
|
|
*/
|
|
*/
|
|
- engine: Engine;
|
|
|
|
|
|
+ engine: ThinEngine;
|
|
/**
|
|
/**
|
|
* Fragment shader for the effect
|
|
* Fragment shader for the effect
|
|
*/
|
|
*/
|