@babylonjs/inspector 8.48.0-preview → 8.48.1-preview
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.d.ts +107 -40
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -1375,7 +1375,7 @@ type IndicesArray = number[] | Int32Array | Uint32Array | Uint16Array;
|
|
|
1375
1375
|
/**
|
|
1376
1376
|
* Alias for types that can be used by a Buffer or VertexBuffer.
|
|
1377
1377
|
*/
|
|
1378
|
-
type DataArray = number[] |
|
|
1378
|
+
type DataArray = number[] | ArrayBufferLike | ArrayBufferView;
|
|
1379
1379
|
/**
|
|
1380
1380
|
* Alias type for primitive types
|
|
1381
1381
|
*/
|
|
@@ -6760,6 +6760,12 @@ declare class InternalTexture extends TextureSampler {
|
|
|
6760
6760
|
*/
|
|
6761
6761
|
get useMipMaps(): Nullable<boolean>;
|
|
6762
6762
|
set useMipMaps(value: Nullable<boolean>);
|
|
6763
|
+
/**
|
|
6764
|
+
* Gets the number of mip levels for this texture.
|
|
6765
|
+
* Note: This property has the correct value only if the texture was created through
|
|
6766
|
+
* `createRawTexture` or `createRawTexture2DArray`.
|
|
6767
|
+
*/
|
|
6768
|
+
mipLevelCount: number;
|
|
6763
6769
|
/**
|
|
6764
6770
|
* Gets the number of samples used by the texture (WebGL2+ only)
|
|
6765
6771
|
*/
|
|
@@ -23294,7 +23300,7 @@ declare class WebGPUTextureManager {
|
|
|
23294
23300
|
width: number;
|
|
23295
23301
|
height: number;
|
|
23296
23302
|
layers: number;
|
|
23297
|
-
}, hasMipmaps?: boolean, generateMipmaps?: boolean, invertY?: boolean, premultiplyAlpha?: boolean, is3D?: boolean, format?: GPUTextureFormat, sampleCount?: number, commandEncoder?: GPUCommandEncoder, usage?: number, additionalUsages?: number, label?: string): GPUTexture;
|
|
23303
|
+
}, hasMipmaps?: boolean, generateMipmaps?: boolean, invertY?: boolean, premultiplyAlpha?: boolean, is3D?: boolean, format?: GPUTextureFormat, sampleCount?: number, commandEncoder?: GPUCommandEncoder, usage?: number, additionalUsages?: number, label?: string, mipLevelCount?: number): GPUTexture;
|
|
23298
23304
|
createCubeTexture(imageBitmaps: ImageBitmap[] | {
|
|
23299
23305
|
width: number;
|
|
23300
23306
|
height: number;
|
|
@@ -23307,6 +23313,7 @@ declare class WebGPUTextureManager {
|
|
|
23307
23313
|
resolveMSAADepthTexture(msaaTexture: GPUTexture, outputTexture: GPUTexture, commandEncoder?: GPUCommandEncoder): void;
|
|
23308
23314
|
updateCubeTextures(imageBitmaps: ImageBitmap[] | Uint8Array[], gpuTexture: GPUTexture, width: number, height: number, format: GPUTextureFormat, invertY?: boolean, premultiplyAlpha?: boolean, offsetX?: number, offsetY?: number): void;
|
|
23309
23315
|
updateTexture(imageBitmap: ImageBitmap | Uint8Array | ImageData | HTMLImageElement | HTMLVideoElement | VideoFrame | HTMLCanvasElement | OffscreenCanvas, texture: GPUTexture | InternalTexture, width: number, height: number, layers: number, format: GPUTextureFormat, faceIndex?: number, mipLevel?: number, invertY?: boolean, premultiplyAlpha?: boolean, offsetX?: number, offsetY?: number, allowGPUOptimization?: boolean): void;
|
|
23316
|
+
updateMipLevelCountForInternalTexture(texture: InternalTexture, mipLevelCount?: number): void;
|
|
23310
23317
|
readPixels(texture: GPUTexture, x: number, y: number, width: number, height: number, format: GPUTextureFormat, faceIndex?: number, mipLevel?: number, buffer?: Nullable<ArrayBufferView>, noDataConversion?: boolean): Promise<ArrayBufferView>;
|
|
23311
23318
|
releaseTexture(texture: InternalTexture | GPUTexture): void;
|
|
23312
23319
|
destroyDeferredTextures(): void;
|
|
@@ -24434,8 +24441,9 @@ declare module "../../abstractEngine" {
|
|
|
24434
24441
|
* @param compression defines the compression used (null by default)
|
|
24435
24442
|
* @param type defines the type fo the data (Engine.TEXTURETYPE_UNSIGNED_BYTE by default)
|
|
24436
24443
|
* @param useSRGBBuffer defines if the texture must be loaded in a sRGB GPU buffer (if supported by the GPU).
|
|
24444
|
+
* @param mipLevel defines which mipLevel of the texture is going to be updated
|
|
24437
24445
|
*/
|
|
24438
|
-
updateRawTexture(texture: Nullable<InternalTexture>, data: Nullable<ArrayBufferView>, format: number, invertY: boolean, compression: Nullable<string>, type: number, useSRGBBuffer: boolean): void;
|
|
24446
|
+
updateRawTexture(texture: Nullable<InternalTexture>, data: Nullable<ArrayBufferView>, format: number, invertY: boolean, compression: Nullable<string>, type: number, useSRGBBuffer: boolean, mipLevel?: number): void;
|
|
24439
24447
|
/**
|
|
24440
24448
|
* Creates a new raw cube texture
|
|
24441
24449
|
* @param data defines the array of data to use to create each face
|
|
@@ -24547,6 +24555,17 @@ declare module "../../abstractEngine" {
|
|
|
24547
24555
|
* @param textureType defines the texture Type (Engine.TEXTURETYPE_UNSIGNED_BYTE, Engine.TEXTURETYPE_FLOAT...)
|
|
24548
24556
|
*/
|
|
24549
24557
|
updateRawTexture2DArray(texture: InternalTexture, data: Nullable<ArrayBufferView>, format: number, invertY: boolean, compression: Nullable<string>, textureType: number): void;
|
|
24558
|
+
/**
|
|
24559
|
+
* Update a raw 2D array texture
|
|
24560
|
+
* @param texture defines the texture to update
|
|
24561
|
+
* @param data defines the data to store
|
|
24562
|
+
* @param format defines the data format
|
|
24563
|
+
* @param invertY defines if data must be stored with Y axis inverted
|
|
24564
|
+
* @param compression defines the used compression (can be null)
|
|
24565
|
+
* @param textureType defines the texture Type (Engine.TEXTURETYPE_UNSIGNED_BYTE, Engine.TEXTURETYPE_FLOAT...)
|
|
24566
|
+
* @param mipLevel defines which mipLevel of the texture is going to be updated
|
|
24567
|
+
*/
|
|
24568
|
+
updateRawTexture2DArray(texture: InternalTexture, data: Nullable<ArrayBufferView>, format: number, invertY: boolean, compression: Nullable<string>, textureType: number, mipLevel?: number): void;
|
|
24550
24569
|
}
|
|
24551
24570
|
}
|
|
24552
24571
|
|
|
@@ -28417,17 +28436,24 @@ declare class RawTexture extends Texture {
|
|
|
28417
28436
|
* @param creationFlags specific flags to use when creating the texture (Constants.TEXTURE_CREATIONFLAG_STORAGE for storage textures, for eg)
|
|
28418
28437
|
* @param useSRGBBuffer defines if the texture must be loaded in a sRGB GPU buffer (if supported by the GPU).
|
|
28419
28438
|
* @param waitDataToBeReady If set to true Rawtexture will wait data to be set in order to be flaged as ready.
|
|
28439
|
+
* @param mipLevelCount defines the number of mip levels to allocate for the texture
|
|
28420
28440
|
*/
|
|
28421
28441
|
constructor(data: Nullable<ArrayBufferView>, width: number, height: number,
|
|
28422
28442
|
/**
|
|
28423
28443
|
* Define the format of the data (RGB, RGBA... Engine.TEXTUREFORMAT_xxx)
|
|
28424
28444
|
*/
|
|
28425
|
-
format: number, sceneOrEngine: Nullable<Scene | AbstractEngine>, generateMipMaps?: boolean, invertY?: boolean, samplingMode?: number, type?: number, creationFlags?: number, useSRGBBuffer?: boolean, waitDataToBeReady?: boolean);
|
|
28445
|
+
format: number, sceneOrEngine: Nullable<Scene | AbstractEngine>, generateMipMaps?: boolean, invertY?: boolean, samplingMode?: number, type?: number, creationFlags?: number, useSRGBBuffer?: boolean, waitDataToBeReady?: boolean, mipLevelCount?: number);
|
|
28426
28446
|
/**
|
|
28427
28447
|
* Updates the texture underlying data.
|
|
28428
28448
|
* @param data Define the new data of the texture
|
|
28429
28449
|
*/
|
|
28430
28450
|
update(data: ArrayBufferView): void;
|
|
28451
|
+
/**
|
|
28452
|
+
* Updates a specific mip level of the texture.
|
|
28453
|
+
* @param data The new data for the mip level
|
|
28454
|
+
* @param mipLevel The mip level to update (0 is the base level)
|
|
28455
|
+
*/
|
|
28456
|
+
updateMipLevel(data: ArrayBufferView, mipLevel: number): void;
|
|
28431
28457
|
/**
|
|
28432
28458
|
* Clones the texture.
|
|
28433
28459
|
* @returns the cloned texture
|
|
@@ -29525,15 +29551,22 @@ declare class RawTexture2DArray extends Texture {
|
|
|
29525
29551
|
* @param samplingMode defines the sampling mode to use (Texture.TRILINEAR_SAMPLINGMODE by default)
|
|
29526
29552
|
* @param textureType defines the texture Type (Engine.TEXTURETYPE_UNSIGNED_BYTE, Engine.TEXTURETYPE_FLOAT...)
|
|
29527
29553
|
* @param creationFlags specific flags to use when creating the texture (Constants.TEXTURE_CREATIONFLAG_STORAGE for storage textures, for eg)
|
|
29554
|
+
* @param mipLevelCount defines the number of mip levels to allocate for the texture
|
|
29528
29555
|
*/
|
|
29529
29556
|
constructor(data: Nullable<ArrayBufferView>, width: number, height: number, depth: number,
|
|
29530
29557
|
/** Gets or sets the texture format to use */
|
|
29531
|
-
format: number, scene: Scene, generateMipMaps?: boolean, invertY?: boolean, samplingMode?: number, textureType?: number, creationFlags?: number);
|
|
29558
|
+
format: number, scene: Scene, generateMipMaps?: boolean, invertY?: boolean, samplingMode?: number, textureType?: number, creationFlags?: number, mipLevelCount?: number);
|
|
29532
29559
|
/**
|
|
29533
29560
|
* Update the texture with new data
|
|
29534
29561
|
* @param data defines the data to store in the texture
|
|
29535
29562
|
*/
|
|
29536
29563
|
update(data: ArrayBufferView): void;
|
|
29564
|
+
/**
|
|
29565
|
+
* Updates a specific mip level of the texture.
|
|
29566
|
+
* @param data The new data for the mip level
|
|
29567
|
+
* @param mipLevel The mip level to update (0 is the base level)
|
|
29568
|
+
*/
|
|
29569
|
+
updateMipLevel(data: ArrayBufferView, mipLevel: number): void;
|
|
29537
29570
|
/**
|
|
29538
29571
|
* Creates a RGBA texture from some data.
|
|
29539
29572
|
* @param data Define the texture data
|
|
@@ -34377,7 +34410,7 @@ interface IPhysicsEnabledObject {
|
|
|
34377
34410
|
* @param kind The type of vertex data
|
|
34378
34411
|
* @returns A nullable array of numbers, or a float32 array
|
|
34379
34412
|
*/
|
|
34380
|
-
getVerticesData(kind: string): Nullable<
|
|
34413
|
+
getVerticesData(kind: string): Nullable<FloatArray>;
|
|
34381
34414
|
/**
|
|
34382
34415
|
* Gets the indices from the mesh
|
|
34383
34416
|
* @returns A nullable array of index arrays
|
|
@@ -52895,16 +52928,24 @@ declare class PBRSubSurfaceConfiguration extends MaterialPluginBase {
|
|
|
52895
52928
|
declare const PBRBaseMaterialBase_base: {
|
|
52896
52929
|
new (...args: any[]): {
|
|
52897
52930
|
_imageProcessingConfiguration: ImageProcessingConfiguration;
|
|
52898
|
-
imageProcessingConfiguration: ImageProcessingConfiguration;
|
|
52931
|
+
get imageProcessingConfiguration(): ImageProcessingConfiguration;
|
|
52932
|
+
set imageProcessingConfiguration(value: ImageProcessingConfiguration);
|
|
52899
52933
|
_imageProcessingObserver: Nullable<Observer<ImageProcessingConfiguration>>;
|
|
52900
52934
|
_attachImageProcessingConfiguration(configuration: Nullable<ImageProcessingConfiguration>): void;
|
|
52901
|
-
cameraColorCurvesEnabled: boolean;
|
|
52902
|
-
|
|
52903
|
-
|
|
52904
|
-
|
|
52905
|
-
|
|
52906
|
-
|
|
52907
|
-
|
|
52935
|
+
get cameraColorCurvesEnabled(): boolean;
|
|
52936
|
+
set cameraColorCurvesEnabled(value: boolean);
|
|
52937
|
+
get cameraColorGradingEnabled(): boolean;
|
|
52938
|
+
set cameraColorGradingEnabled(value: boolean);
|
|
52939
|
+
get cameraToneMappingEnabled(): boolean;
|
|
52940
|
+
set cameraToneMappingEnabled(value: boolean);
|
|
52941
|
+
get cameraExposure(): number;
|
|
52942
|
+
set cameraExposure(value: number);
|
|
52943
|
+
get cameraContrast(): number;
|
|
52944
|
+
set cameraContrast(value: number);
|
|
52945
|
+
get cameraColorGradingTexture(): Nullable<BaseTexture>;
|
|
52946
|
+
set cameraColorGradingTexture(value: Nullable<BaseTexture>);
|
|
52947
|
+
get cameraColorCurves(): Nullable<ColorCurves>;
|
|
52948
|
+
set cameraColorCurves(value: Nullable<ColorCurves>);
|
|
52908
52949
|
};
|
|
52909
52950
|
} & typeof PushMaterial;
|
|
52910
52951
|
declare class PBRBaseMaterialBase extends PBRBaseMaterialBase_base {
|
|
@@ -53609,16 +53650,24 @@ declare class DetailMapConfiguration extends MaterialPluginBase {
|
|
|
53609
53650
|
declare const StandardMaterialBase_base: {
|
|
53610
53651
|
new (...args: any[]): {
|
|
53611
53652
|
_imageProcessingConfiguration: ImageProcessingConfiguration;
|
|
53612
|
-
imageProcessingConfiguration: ImageProcessingConfiguration;
|
|
53653
|
+
get imageProcessingConfiguration(): ImageProcessingConfiguration;
|
|
53654
|
+
set imageProcessingConfiguration(value: ImageProcessingConfiguration);
|
|
53613
53655
|
_imageProcessingObserver: Nullable<Observer<ImageProcessingConfiguration>>;
|
|
53614
53656
|
_attachImageProcessingConfiguration(configuration: Nullable<ImageProcessingConfiguration>): void;
|
|
53615
|
-
cameraColorCurvesEnabled: boolean;
|
|
53616
|
-
|
|
53617
|
-
|
|
53618
|
-
|
|
53619
|
-
|
|
53620
|
-
|
|
53621
|
-
|
|
53657
|
+
get cameraColorCurvesEnabled(): boolean;
|
|
53658
|
+
set cameraColorCurvesEnabled(value: boolean);
|
|
53659
|
+
get cameraColorGradingEnabled(): boolean;
|
|
53660
|
+
set cameraColorGradingEnabled(value: boolean);
|
|
53661
|
+
get cameraToneMappingEnabled(): boolean;
|
|
53662
|
+
set cameraToneMappingEnabled(value: boolean);
|
|
53663
|
+
get cameraExposure(): number;
|
|
53664
|
+
set cameraExposure(value: number);
|
|
53665
|
+
get cameraContrast(): number;
|
|
53666
|
+
set cameraContrast(value: number);
|
|
53667
|
+
get cameraColorGradingTexture(): Nullable<BaseTexture>;
|
|
53668
|
+
set cameraColorGradingTexture(value: Nullable<BaseTexture>);
|
|
53669
|
+
get cameraColorCurves(): Nullable<ColorCurves>;
|
|
53670
|
+
set cameraColorCurves(value: Nullable<ColorCurves>);
|
|
53622
53671
|
};
|
|
53623
53672
|
} & typeof PushMaterial;
|
|
53624
53673
|
declare class StandardMaterialBase extends StandardMaterialBase_base {
|
|
@@ -57729,16 +57778,24 @@ declare class StencilStateComposer {
|
|
|
57729
57778
|
declare const BackgroundMaterialBase_base: {
|
|
57730
57779
|
new (...args: any[]): {
|
|
57731
57780
|
_imageProcessingConfiguration: ImageProcessingConfiguration;
|
|
57732
|
-
imageProcessingConfiguration: ImageProcessingConfiguration;
|
|
57781
|
+
get imageProcessingConfiguration(): ImageProcessingConfiguration;
|
|
57782
|
+
set imageProcessingConfiguration(value: ImageProcessingConfiguration);
|
|
57733
57783
|
_imageProcessingObserver: Nullable<Observer<ImageProcessingConfiguration>>;
|
|
57734
57784
|
_attachImageProcessingConfiguration(configuration: Nullable<ImageProcessingConfiguration>): void;
|
|
57735
|
-
cameraColorCurvesEnabled: boolean;
|
|
57736
|
-
|
|
57737
|
-
|
|
57738
|
-
|
|
57739
|
-
|
|
57740
|
-
|
|
57741
|
-
|
|
57785
|
+
get cameraColorCurvesEnabled(): boolean;
|
|
57786
|
+
set cameraColorCurvesEnabled(value: boolean);
|
|
57787
|
+
get cameraColorGradingEnabled(): boolean;
|
|
57788
|
+
set cameraColorGradingEnabled(value: boolean);
|
|
57789
|
+
get cameraToneMappingEnabled(): boolean;
|
|
57790
|
+
set cameraToneMappingEnabled(value: boolean);
|
|
57791
|
+
get cameraExposure(): number;
|
|
57792
|
+
set cameraExposure(value: number);
|
|
57793
|
+
get cameraContrast(): number;
|
|
57794
|
+
set cameraContrast(value: number);
|
|
57795
|
+
get cameraColorGradingTexture(): Nullable<BaseTexture>;
|
|
57796
|
+
set cameraColorGradingTexture(value: Nullable<BaseTexture>);
|
|
57797
|
+
get cameraColorCurves(): Nullable<ColorCurves>;
|
|
57798
|
+
set cameraColorCurves(value: Nullable<ColorCurves>);
|
|
57742
57799
|
};
|
|
57743
57800
|
} & typeof PushMaterial;
|
|
57744
57801
|
declare class BackgroundMaterialBase extends BackgroundMaterialBase_base {
|
|
@@ -59112,16 +59169,24 @@ type NodeMaterialTextureBlocks = TextureBlock | ReflectionTextureBaseBlock | Ref
|
|
|
59112
59169
|
declare const NodeMaterialBase_base: {
|
|
59113
59170
|
new (...args: any[]): {
|
|
59114
59171
|
_imageProcessingConfiguration: ImageProcessingConfiguration;
|
|
59115
|
-
imageProcessingConfiguration: ImageProcessingConfiguration;
|
|
59172
|
+
get imageProcessingConfiguration(): ImageProcessingConfiguration;
|
|
59173
|
+
set imageProcessingConfiguration(value: ImageProcessingConfiguration);
|
|
59116
59174
|
_imageProcessingObserver: Nullable<Observer<ImageProcessingConfiguration>>;
|
|
59117
59175
|
_attachImageProcessingConfiguration(configuration: Nullable<ImageProcessingConfiguration>): void;
|
|
59118
|
-
cameraColorCurvesEnabled: boolean;
|
|
59119
|
-
|
|
59120
|
-
|
|
59121
|
-
|
|
59122
|
-
|
|
59123
|
-
|
|
59124
|
-
|
|
59176
|
+
get cameraColorCurvesEnabled(): boolean;
|
|
59177
|
+
set cameraColorCurvesEnabled(value: boolean);
|
|
59178
|
+
get cameraColorGradingEnabled(): boolean;
|
|
59179
|
+
set cameraColorGradingEnabled(value: boolean);
|
|
59180
|
+
get cameraToneMappingEnabled(): boolean;
|
|
59181
|
+
set cameraToneMappingEnabled(value: boolean);
|
|
59182
|
+
get cameraExposure(): number;
|
|
59183
|
+
set cameraExposure(value: number);
|
|
59184
|
+
get cameraContrast(): number;
|
|
59185
|
+
set cameraContrast(value: number);
|
|
59186
|
+
get cameraColorGradingTexture(): Nullable<BaseTexture>;
|
|
59187
|
+
set cameraColorGradingTexture(value: Nullable<BaseTexture>);
|
|
59188
|
+
get cameraColorCurves(): Nullable<ColorCurves>;
|
|
59189
|
+
set cameraColorCurves(value: Nullable<ColorCurves>);
|
|
59125
59190
|
};
|
|
59126
59191
|
} & typeof PushMaterial;
|
|
59127
59192
|
declare class NodeMaterialBase extends NodeMaterialBase_base {
|
|
@@ -61199,9 +61264,10 @@ declare abstract class AbstractEngine {
|
|
|
61199
61264
|
* @param type defines the type fo the data (Engine.TEXTURETYPE_UNSIGNED_BYTE by default)
|
|
61200
61265
|
* @param creationFlags specific flags to use when creating the texture (Constants.TEXTURE_CREATIONFLAG_STORAGE for storage textures, for eg)
|
|
61201
61266
|
* @param useSRGBBuffer defines if the texture must be loaded in a sRGB GPU buffer (if supported by the GPU).
|
|
61267
|
+
* @param mipLevelCount defines the number of mip levels to allocate for the texture
|
|
61202
61268
|
* @returns the raw texture inside an InternalTexture
|
|
61203
61269
|
*/
|
|
61204
|
-
createRawTexture(data: Nullable<ArrayBufferView>, width: number, height: number, format: number, generateMipMaps: boolean, invertY: boolean, samplingMode: number, compression?: Nullable<string>, type?: number, creationFlags?: number, useSRGBBuffer?: boolean): InternalTexture;
|
|
61270
|
+
createRawTexture(data: Nullable<ArrayBufferView>, width: number, height: number, format: number, generateMipMaps: boolean, invertY: boolean, samplingMode: number, compression?: Nullable<string>, type?: number, creationFlags?: number, useSRGBBuffer?: boolean, mipLevelCount?: number): InternalTexture;
|
|
61205
61271
|
/**
|
|
61206
61272
|
* Creates a new raw 3D texture
|
|
61207
61273
|
* @param data defines the data used to create the texture
|
|
@@ -61231,9 +61297,10 @@ declare abstract class AbstractEngine {
|
|
|
61231
61297
|
* @param compression defines the compressed used (can be null)
|
|
61232
61298
|
* @param textureType defines the compressed used (can be null)
|
|
61233
61299
|
* @param creationFlags specific flags to use when creating the texture (Constants.TEXTURE_CREATIONFLAG_STORAGE for storage textures, for eg)
|
|
61300
|
+
* @param mipLevelCount defines the number of mip levels to allocate for the texture
|
|
61234
61301
|
* @returns a new raw 2D array texture (stored in an InternalTexture)
|
|
61235
61302
|
*/
|
|
61236
|
-
createRawTexture2DArray(data: Nullable<ArrayBufferView>, width: number, height: number, depth: number, format: number, generateMipMaps: boolean, invertY: boolean, samplingMode: number, compression?: Nullable<string>, textureType?: number, creationFlags?: number): InternalTexture;
|
|
61303
|
+
createRawTexture2DArray(data: Nullable<ArrayBufferView>, width: number, height: number, depth: number, format: number, generateMipMaps: boolean, invertY: boolean, samplingMode: number, compression?: Nullable<string>, textureType?: number, creationFlags?: number, mipLevelCount?: number): InternalTexture;
|
|
61237
61304
|
/**
|
|
61238
61305
|
* Gets or sets a boolean indicating if back faces must be culled. If false, front faces are culled instead (true by default)
|
|
61239
61306
|
* If non null, this takes precedence over the value from the material
|