@babylonjs/inspector 8.43.0-preview → 8.44.0-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 +65 -13
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -7298,6 +7298,8 @@ interface InternalTextureCreationOptions {
|
|
|
7298
7298
|
createMSAATexture?: boolean;
|
|
7299
7299
|
/** Comparison function. Used only for depth textures (default: 0) */
|
|
7300
7300
|
comparisonFunction?: number;
|
|
7301
|
+
/** If the created texture is a cube texture */
|
|
7302
|
+
isCube?: boolean;
|
|
7301
7303
|
}
|
|
7302
7304
|
/**
|
|
7303
7305
|
* Define options used to create a render target texture
|
|
@@ -23100,12 +23102,12 @@ declare class WebGPUHardwareTexture implements IHardwareTextureWrapper {
|
|
|
23100
23102
|
private _webgpuTexture;
|
|
23101
23103
|
private _webgpuMSAATexture;
|
|
23102
23104
|
get underlyingResource(): Nullable<GPUTexture>;
|
|
23103
|
-
getMSAATexture(
|
|
23104
|
-
|
|
23105
|
-
releaseMSAATexture(index?: number): void;
|
|
23105
|
+
getMSAATexture(sampleCount: number, index?: number): GPUTexture;
|
|
23106
|
+
releaseMSAATextures(): void;
|
|
23106
23107
|
view: Nullable<GPUTextureView>;
|
|
23107
23108
|
viewForWriting: Nullable<GPUTextureView>;
|
|
23108
23109
|
format: GPUTextureFormat;
|
|
23110
|
+
originalFormat: GPUTextureFormat;
|
|
23109
23111
|
textureUsages: number;
|
|
23110
23112
|
textureAdditionalUsages: number;
|
|
23111
23113
|
constructor(_engine: WebGPUEngine, existingTexture?: Nullable<GPUTexture>);
|
|
@@ -23114,6 +23116,7 @@ declare class WebGPUHardwareTexture implements IHardwareTextureWrapper {
|
|
|
23114
23116
|
createView(descriptor?: GPUTextureViewDescriptor, createViewForWriting?: boolean): void;
|
|
23115
23117
|
reset(): void;
|
|
23116
23118
|
release(): void;
|
|
23119
|
+
private _createMSAATexture;
|
|
23117
23120
|
}
|
|
23118
23121
|
|
|
23119
23122
|
/**
|
|
@@ -23196,11 +23199,12 @@ declare class WebGPUTextureManager {
|
|
|
23196
23199
|
createCubeTexture(imageBitmaps: ImageBitmap[] | {
|
|
23197
23200
|
width: number;
|
|
23198
23201
|
height: number;
|
|
23202
|
+
layers: number;
|
|
23199
23203
|
}, hasMipmaps?: boolean, generateMipmaps?: boolean, invertY?: boolean, premultiplyAlpha?: boolean, format?: GPUTextureFormat, sampleCount?: number, commandEncoder?: GPUCommandEncoder, usage?: number, additionalUsages?: number, label?: string): GPUTexture;
|
|
23200
|
-
generateCubeMipmaps(
|
|
23201
|
-
generateMipmaps(gpuOrHdwTexture: GPUTexture | WebGPUHardwareTexture,
|
|
23202
|
-
createGPUTextureForInternalTexture(texture: InternalTexture, width?: number, height?: number, depth?: number, creationFlags?: number
|
|
23203
|
-
createMSAATexture(
|
|
23204
|
+
generateCubeMipmaps(gpuOrHdwTexture: GPUTexture | WebGPUHardwareTexture, mipLevelCount: number, commandEncoder?: GPUCommandEncoder): void;
|
|
23205
|
+
generateMipmaps(gpuOrHdwTexture: GPUTexture | WebGPUHardwareTexture, mipLevelCount: number, faceIndex?: number, commandEncoder?: GPUCommandEncoder): void;
|
|
23206
|
+
createGPUTextureForInternalTexture(texture: InternalTexture, width?: number, height?: number, depth?: number, creationFlags?: number): WebGPUHardwareTexture;
|
|
23207
|
+
createMSAATexture(gpuTexture: GPUTexture, format: GPUTextureFormat, samples: number): GPUTexture;
|
|
23204
23208
|
resolveMSAADepthTexture(msaaTexture: GPUTexture, outputTexture: GPUTexture, commandEncoder?: GPUCommandEncoder): void;
|
|
23205
23209
|
updateCubeTextures(imageBitmaps: ImageBitmap[] | Uint8Array[], gpuTexture: GPUTexture, width: number, height: number, format: GPUTextureFormat, invertY?: boolean, premultiplyAlpha?: boolean, offsetX?: number, offsetY?: number): void;
|
|
23206
23210
|
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;
|
|
@@ -23878,6 +23882,14 @@ declare class WebGPUDrawContext implements IDrawContext {
|
|
|
23878
23882
|
*/
|
|
23879
23883
|
setBuffer(name: string, buffer: Nullable<WebGPUDataBuffer>): void;
|
|
23880
23884
|
setIndirectData(indexOrVertexCount: number, instanceCount: number, firstIndexOrVertex: number, forceUpdate?: boolean): void;
|
|
23885
|
+
/**
|
|
23886
|
+
* Setup or disable vertex pulling as needed.
|
|
23887
|
+
* @param useVertexPulling Use vertex pulling or not
|
|
23888
|
+
* @param webgpuPipelineContext The WebGPU pipeline context
|
|
23889
|
+
* @param vertexBuffers The current vertex buffers
|
|
23890
|
+
* @param indexBuffer The current index buffer
|
|
23891
|
+
* @param overrideVertexBuffers The vertex buffers to override
|
|
23892
|
+
*/
|
|
23881
23893
|
setVertexPulling(useVertexPulling: boolean, webgpuPipelineContext: WebGPUPipelineContext, vertexBuffers: {
|
|
23882
23894
|
[key: string]: Nullable<VertexBuffer>;
|
|
23883
23895
|
}, indexBuffer: Nullable<DataBuffer>, overrideVertexBuffers: Nullable<{
|
|
@@ -25872,6 +25884,7 @@ declare class ShaderMaterial extends PushMaterial {
|
|
|
25872
25884
|
private _cachedWorldViewMatrix;
|
|
25873
25885
|
private _cachedWorldViewProjectionMatrix;
|
|
25874
25886
|
private _multiview;
|
|
25887
|
+
private _vertexPullingMetadata;
|
|
25875
25888
|
/**
|
|
25876
25889
|
* @internal
|
|
25877
25890
|
*/
|
|
@@ -37761,7 +37774,7 @@ declare class SolidParticleSystem implements IDisposable {
|
|
|
37761
37774
|
* @param options.storage
|
|
37762
37775
|
* @returns the number of shapes in the system
|
|
37763
37776
|
*/
|
|
37764
|
-
addShape(mesh:
|
|
37777
|
+
addShape(mesh: AbstractMesh, nb: number, options?: {
|
|
37765
37778
|
positionFunction?: any;
|
|
37766
37779
|
vertexFunction?: any;
|
|
37767
37780
|
storage?: [];
|
|
@@ -49078,6 +49091,7 @@ declare class NodeRenderGraphBlock {
|
|
|
49078
49091
|
* @returns true if already built
|
|
49079
49092
|
*/
|
|
49080
49093
|
build(state: NodeRenderGraphBuildState): boolean;
|
|
49094
|
+
protected _getConnectedTextures(targetConnectedPoint: Nullable<NodeRenderGraphConnectionPoint>): number | number[] | undefined;
|
|
49081
49095
|
protected _linkConnectionTypes(inputIndex0: number, inputIndex1: number, looseCoupling?: boolean): void;
|
|
49082
49096
|
/**
|
|
49083
49097
|
* Initialize the block and prepare the context for build
|
|
@@ -49150,11 +49164,11 @@ declare abstract class FrameGraphTask {
|
|
|
49150
49164
|
get disabled(): boolean;
|
|
49151
49165
|
set disabled(value: boolean);
|
|
49152
49166
|
/**
|
|
49153
|
-
* Gets the
|
|
49167
|
+
* Gets the passes of the task.
|
|
49154
49168
|
*/
|
|
49155
49169
|
get passes(): IFrameGraphPass[];
|
|
49156
49170
|
/**
|
|
49157
|
-
* Gets the disabled
|
|
49171
|
+
* Gets the disabled passes of the task.
|
|
49158
49172
|
*/
|
|
49159
49173
|
get passesDisabled(): IFrameGraphPass[];
|
|
49160
49174
|
/**
|
|
@@ -49293,6 +49307,17 @@ declare class FrameGraphPass<T extends FrameGraphContext> implements IFrameGraph
|
|
|
49293
49307
|
_dispose(): void;
|
|
49294
49308
|
}
|
|
49295
49309
|
|
|
49310
|
+
/**
|
|
49311
|
+
* Type used to define layer and face indices for multi-render target rendering scenarios.
|
|
49312
|
+
*/
|
|
49313
|
+
type LayerAndFaceIndex = {
|
|
49314
|
+
/** Index of the texture to update */
|
|
49315
|
+
targetIndex: number;
|
|
49316
|
+
/** Index of the layer to set (optional - not used if the texture is not an array or a 3D texture) */
|
|
49317
|
+
layerIndex?: number;
|
|
49318
|
+
/** Index of the cube face to set (optional - not used if the texture is not a cube texture) */
|
|
49319
|
+
faceIndex?: number;
|
|
49320
|
+
};
|
|
49296
49321
|
/**
|
|
49297
49322
|
* Render pass used to render objects.
|
|
49298
49323
|
*/
|
|
@@ -49350,6 +49375,11 @@ declare class FrameGraphRenderPass extends FrameGraphPass<FrameGraphRenderContex
|
|
|
49350
49375
|
* @param dependencies The set of dependencies to update.
|
|
49351
49376
|
*/
|
|
49352
49377
|
collectDependencies(dependencies: Set<FrameGraphTextureHandle>): void;
|
|
49378
|
+
/**
|
|
49379
|
+
* Sets the output layer and face indices for multi-render target rendering.
|
|
49380
|
+
* @param indices The array of layer and face indices.
|
|
49381
|
+
*/
|
|
49382
|
+
setOutputLayerAndFaceIndices(indices: LayerAndFaceIndex[]): void;
|
|
49353
49383
|
/** @internal */
|
|
49354
49384
|
_initialize(): void;
|
|
49355
49385
|
/** @internal */
|
|
@@ -50336,6 +50366,20 @@ declare class ThinGlowLayer extends ThinEffectLayer {
|
|
|
50336
50366
|
_disposeMesh(mesh: Mesh): void;
|
|
50337
50367
|
}
|
|
50338
50368
|
|
|
50369
|
+
/**
|
|
50370
|
+
* Base class for frame graph tasks that involve multi-target rendering.
|
|
50371
|
+
*/
|
|
50372
|
+
declare abstract class FrameGraphTaskMultiRenderTarget extends FrameGraphTask {
|
|
50373
|
+
private _outputLayerAndFaceIndices;
|
|
50374
|
+
private _layerAndFaceIndicesUpdated;
|
|
50375
|
+
/**
|
|
50376
|
+
* Sets the output layer and face indices for multi-target rendering.
|
|
50377
|
+
* @param indices The array of layer and face indices.
|
|
50378
|
+
*/
|
|
50379
|
+
setOutputLayerAndFaceIndices(indices: LayerAndFaceIndex[]): void;
|
|
50380
|
+
protected _updateLayerAndFaceIndices(pass: FrameGraphRenderPass): void;
|
|
50381
|
+
}
|
|
50382
|
+
|
|
50339
50383
|
/**
|
|
50340
50384
|
* @internal
|
|
50341
50385
|
*/
|
|
@@ -50446,9 +50490,9 @@ declare class ThinDepthPeelingRenderer {
|
|
|
50446
50490
|
/**
|
|
50447
50491
|
* Task used to render objects to a texture.
|
|
50448
50492
|
*/
|
|
50449
|
-
declare class FrameGraphObjectRendererTask extends
|
|
50493
|
+
declare class FrameGraphObjectRendererTask extends FrameGraphTaskMultiRenderTarget {
|
|
50450
50494
|
/**
|
|
50451
|
-
* The target texture where the objects will be rendered.
|
|
50495
|
+
* The target texture(s) where the objects will be rendered.
|
|
50452
50496
|
*/
|
|
50453
50497
|
targetTexture: FrameGraphTextureHandle | FrameGraphTextureHandle[];
|
|
50454
50498
|
/**
|
|
@@ -51172,7 +51216,15 @@ type FrameGraphTextureOptions = {
|
|
|
51172
51216
|
createMipMaps?: boolean;
|
|
51173
51217
|
/** Defines sample count (default: 1) */
|
|
51174
51218
|
samples?: number;
|
|
51175
|
-
/**
|
|
51219
|
+
/**
|
|
51220
|
+
* Define the type of the textures (of Constants.TEXTURE_2D, .TEXTURE_2D_ARRAY, .TEXTURE_CUBE_MAP, .TEXTURE_CUBE_MAP_ARRAY, .TEXTURE_3D).
|
|
51221
|
+
*/
|
|
51222
|
+
targetTypes?: number[];
|
|
51223
|
+
/**
|
|
51224
|
+
* Define the number of layers of the textures (if applicable, given the corresponding targetType) (for Constants.TEXTURE_3D, .TEXTURE_2D_ARRAY, and .TEXTURE_CUBE_MAP_ARRAY)
|
|
51225
|
+
*/
|
|
51226
|
+
layerCounts?: number[];
|
|
51227
|
+
/** Defines the type of the texture channels (UNSIGNED_BYTE, FLOAT, etc.) */
|
|
51176
51228
|
types?: number[];
|
|
51177
51229
|
/** Defines the format of the textures (RED, RG, RGB, RGBA, ALPHA...) */
|
|
51178
51230
|
formats?: number[];
|