Skip to content

Commit

Permalink
Nightly
Browse files Browse the repository at this point in the history
  • Loading branch information
sebavan committed Oct 27, 2021
1 parent adf9345 commit 1b9e598
Show file tree
Hide file tree
Showing 84 changed files with 3,205 additions and 2,042 deletions.
87 changes: 84 additions & 3 deletions dist/preview release/babylon.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2048,6 +2048,45 @@ declare module BABYLON {
* Maximum number of uv sets supported
*/
static readonly MAX_SUPPORTED_UV_SETS: number;
/**
* GL constants
*/
/** Alpha blend equation: ADD */
static readonly GL_ALPHA_EQUATION_ADD: number;
/** Alpha equation: MIN */
static readonly GL_ALPHA_EQUATION_MIN: number;
/** Alpha equation: MAX */
static readonly GL_ALPHA_EQUATION_MAX: number;
/** Alpha equation: SUBTRACT */
static readonly GL_ALPHA_EQUATION_SUBTRACT: number;
/** Alpha equation: REVERSE_SUBTRACT */
static readonly GL_ALPHA_EQUATION_REVERSE_SUBTRACT: number;
/** Alpha blend function: SRC */
static readonly GL_ALPHA_FUNCTION_SRC: number;
/** Alpha blend function: ONE_MINUS_SRC */
static readonly GL_ALPHA_FUNCTION_ONE_MINUS_SRC_COLOR: number;
/** Alpha blend function: SRC_ALPHA */
static readonly GL_ALPHA_FUNCTION_SRC_ALPHA: number;
/** Alpha blend function: ONE_MINUS_SRC_ALPHA */
static readonly GL_ALPHA_FUNCTION_ONE_MINUS_SRC_ALPHA: number;
/** Alpha blend function: DST_ALPHA */
static readonly GL_ALPHA_FUNCTION_DST_ALPHA: number;
/** Alpha blend function: ONE_MINUS_DST_ALPHA */
static readonly GL_ALPHA_FUNCTION_ONE_MINUS_DST_ALPHA: number;
/** Alpha blend function: ONE_MINUS_DST */
static readonly GL_ALPHA_FUNCTION_DST_COLOR: number;
/** Alpha blend function: ONE_MINUS_DST */
static readonly GL_ALPHA_FUNCTION_ONE_MINUS_DST_COLOR: number;
/** Alpha blend function: SRC_ALPHA_SATURATED */
static readonly GL_ALPHA_FUNCTION_SRC_ALPHA_SATURATED: number;
/** Alpha blend function: CONSTANT */
static readonly GL_ALPHA_FUNCTION_CONSTANT_COLOR: number;
/** Alpha blend function: ONE_MINUS_CONSTANT */
static readonly GL_ALPHA_FUNCTION_ONE_MINUS_CONSTANT_COLOR: number;
/** Alpha blend function: CONSTANT_ALPHA */
static readonly GL_ALPHA_FUNCTION_CONSTANT_ALPHA: number;
/** Alpha blend function: ONE_MINUS_CONSTANT_ALPHA */
static readonly GL_ALPHA_FUNCTION_ONE_MINUS_CONSTANT_ALPHA: number;
}
}
declare module BABYLON {
Expand Down Expand Up @@ -8470,6 +8509,7 @@ declare module BABYLON {
declare module BABYLON {
/** @hidden */
export interface IDrawContext {
uniqueId: number;
useInstancing: boolean;
reset(): void;
dispose(): void;
Expand All @@ -8478,6 +8518,7 @@ declare module BABYLON {
declare module BABYLON {
/** @hidden */
export interface IMaterialContext {
uniqueId: number;
reset(): void;
}
}
Expand Down Expand Up @@ -31644,6 +31685,7 @@ declare module BABYLON {
IMAGEPROCESSINGPOSTPROCESS: boolean;
MULTIVIEW: boolean;
ORDER_INDEPENDENT_TRANSPARENCY: boolean;
ORDER_INDEPENDENT_TRANSPARENCY_16BITS: boolean;
/**
* If the reflection texture on this material is in linear color space
* @hidden
Expand Down Expand Up @@ -43263,9 +43305,11 @@ declare module BABYLON {
* @hidden
* @param size defines the size of the texture
* @param options defines the options used to create the texture
* @param delayGPUTextureCreation true to delay the texture creation the first time it is really needed. false to create it right away
* @param source source type of the texture
* @returns a new render target texture stored in an InternalTexture
*/
_createInternalTexture(size: TextureSize, options: boolean | InternalTextureCreationOptions): InternalTexture;
_createInternalTexture(size: TextureSize, options: boolean | InternalTextureCreationOptions, delayGPUTextureCreation?: boolean, source?: InternalTextureSource): InternalTexture;
/** @hidden */
_getUseSRGBBuffer(useSRGBBuffer: boolean, noMipmap: boolean): boolean;
protected _createTextureBase(url: Nullable<string>, noMipmap: boolean, invertY: boolean, scene: Nullable<ISceneLike>, samplingMode: number | undefined, onLoad: Nullable<() => void> | undefined, onError: Nullable<(message: string, exception: any) => void> | undefined, prepareTexture: (texture: InternalTexture, extension: string, scene: Nullable<ISceneLike>, img: HTMLImageElement | ImageBitmap | {
Expand Down Expand Up @@ -64891,6 +64935,7 @@ declare module BABYLON {
setCommandEncoder(encoder: GPUCommandEncoder): void;
static IsCompressedFormat(format: GPUTextureFormat): boolean;
static GetWebGPUTextureFormat(type: number, format: number, useSRGBBuffer?: boolean): GPUTextureFormat;
static GetNumChannelsFromWebGPUTextureFormat(format: GPUTextureFormat): number;
invertYPreMultiplyAlpha(gpuTexture: GPUTexture, width: number, height: number, format: GPUTextureFormat, invertY?: boolean, premultiplyAlpha?: boolean, faceIndex?: number, mipLevel?: number, layers?: number, commandEncoder?: GPUCommandEncoder): void;
copyWithInvertY(srcTextureView: GPUTextureView, format: GPUTextureFormat, renderPassDescriptor: GPURenderPassDescriptor, commandEncoder?: GPUCommandEncoder): void;
createTexture(imageBitmap: ImageBitmap | {
Expand Down Expand Up @@ -65167,6 +65212,7 @@ declare module BABYLON {
export class WebGPUMaterialContext implements IMaterialContext {
private static _Counter;
uniqueId: number;
updateId: number;
isDirty: boolean;
samplers: {
[name: string]: Nullable<IWebGPUMaterialContextSamplerCache>;
Expand All @@ -65191,15 +65237,18 @@ declare module BABYLON {
fastBundle?: GPURenderBundle;
bindGroups?: GPUBindGroup[];
uniqueId: number;
isDirty: boolean;
buffers: {
[name: string]: Nullable<WebGPUDataBuffer>;
};
materialContextUpdateId: number;
indirectDrawBuffer?: GPUBuffer;
private _bufferManager;
private _useInstancing;
private _indirectDrawData?;
private _currentInstanceCount;
private _isDirty;
isDirty(materialContextUpdateId: number): boolean;
resetIsDirty(materialContextUpdateId: number): void;
get useInstancing(): boolean;
set useInstancing(use: boolean);
constructor(bufferManager: WebGPUBufferManager);
Expand Down Expand Up @@ -65863,6 +65912,16 @@ declare module BABYLON {
/** @hidden */
_getRGBABufferInternalSizedFormat(type: number, format?: number): number;
updateTextureComparisonFunction(texture: InternalTexture, comparisonFunction: number): void;
/**
* Creates an internal texture without binding it to a framebuffer
* @hidden
* @param size defines the size of the texture
* @param options defines the options used to create the texture
* @param delayGPUTextureCreation true to delay the texture creation the first time it is really needed. false to create it right away
* @param source source type of the texture
* @returns a new render target texture stored in an InternalTexture
*/
_createInternalTexture(size: TextureSize, options: boolean | InternalTextureCreationOptions, delayGPUTextureCreation?: boolean, source?: InternalTextureSource): InternalTexture;
/**
* Usually called from Texture.ts.
* Passed information to create a hardware texture
Expand Down Expand Up @@ -66096,6 +66155,8 @@ declare module BABYLON {
/** @hidden */
_unpackFlipY(value: boolean): void;
/** @hidden */
_bindUnboundFramebuffer(framebuffer: Nullable<WebGLFramebuffer>): void;
/** @hidden */
_getSamplingParameters(samplingMode: number, generateMipMaps: boolean): {
min: number;
mag: number;
Expand Down Expand Up @@ -69282,6 +69343,7 @@ declare module BABYLON {
EXPOSURE: boolean;
MULTIVIEW: boolean;
ORDER_INDEPENDENT_TRANSPARENCY: boolean;
ORDER_INDEPENDENT_TRANSPARENCY_16BITS: boolean;
USEPHYSICALLIGHTFALLOFF: boolean;
USEGLTFLIGHTFALLOFF: boolean;
TWOSIDEDLIGHTING: boolean;
Expand Down Expand Up @@ -73740,6 +73802,7 @@ declare module BABYLON {
private _tmpAmmoVectorRCB;
private _raycastResult;
private _tmpContactPoint;
private _tmpVec3;
private static readonly DISABLE_COLLISION_FLAG;
private static readonly KINEMATIC_FLAG;
private static readonly DISABLE_DEACTIVATION_FLAG;
Expand Down Expand Up @@ -84928,24 +84991,40 @@ declare module BABYLON {
private _colorMrts;
private _blendBackMrt;
private _blendBackEffectWrapper;
private _blendBackEffectWrapperPingPong;
private _finalEffectWrapper;
private _effectRenderer;
private _passCount;
private _currentPingPongState;
private _prePassEffectConfiguration;
private _blendBackTexture;
private _layoutCacheFormat;
private _layoutCache;
private _renderPassIds;
private static _DEPTH_CLEAR_VALUE;
private static _MIN_DEPTH;
private static _MAX_DEPTH;
private _colorCache;
private _passCount;
/**
* Number of depth peeling passes. As we are using dual depth peeling, each pass two levels of transparency are processed.
*/
get passCount(): number;
set passCount(count: number);
private _useRenderPasses;
/**
* Instructs the renderer to use render passes. It is an optimization that makes the rendering faster for some engines (like WebGPU) but that consumes more memory, so it is disabled by default.
*/
get useRenderPasses(): boolean;
set useRenderPasses(usePasses: boolean);
/**
* Instanciates the depth peeling renderer
* @param scene Scene to attach to
* @param passCount Number of depth layers to peel
* @returns The depth peeling renderer
*/
constructor(scene: Scene, passCount?: number);
private _createRenderPassIds;
private _releaseRenderPassIds;
private _createTextures;
private _disposeTextures;
private _updateTextures;
Expand Down Expand Up @@ -84986,6 +85065,8 @@ declare module BABYLON {
* Flag to indicate if we want to use order independant transparency, despite the performance hit
*/
useOrderIndependentTransparency: boolean;
/** @hidden */
_useOrderIndependentTransparency: boolean;
}
/**
* Scene component to render order independant transparency with depth peeling
Expand Down
4 changes: 2 additions & 2 deletions dist/preview release/babylon.js

Large diffs are not rendered by default.

Loading

0 comments on commit 1b9e598

Please sign in to comment.