@babylonjs/core 8.45.4 → 8.45.5
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/AudioV2/webAudio/components/webAudioParameterComponent.js +5 -1
- package/AudioV2/webAudio/components/webAudioParameterComponent.js.map +1 -1
- package/Engines/AbstractEngine/abstractEngine.loadFile.d.ts +11 -0
- package/Engines/AbstractEngine/abstractEngine.loadFile.js +12 -0
- package/Engines/AbstractEngine/abstractEngine.loadFile.js.map +1 -0
- package/Engines/AbstractEngine/abstractEngine.textureLoaders.d.ts +1 -0
- package/Engines/AbstractEngine/abstractEngine.textureLoaders.js +4 -0
- package/Engines/AbstractEngine/abstractEngine.textureLoaders.js.map +1 -0
- package/Engines/AbstractEngine/index.d.ts +2 -0
- package/Engines/AbstractEngine/index.js +2 -0
- package/Engines/AbstractEngine/index.js.map +1 -1
- package/Engines/Native/Extensions/index.d.ts +1 -0
- package/Engines/Native/Extensions/index.js +2 -0
- package/Engines/Native/Extensions/index.js.map +1 -0
- package/Engines/Native/Extensions/nativeEngine.cubeTexture.d.ts +27 -0
- package/Engines/Native/Extensions/nativeEngine.cubeTexture.js +96 -0
- package/Engines/Native/Extensions/nativeEngine.cubeTexture.js.map +1 -0
- package/Engines/Native/nativePipelineContext.d.ts +2 -2
- package/Engines/Native/nativePipelineContext.js.map +1 -1
- package/Engines/Native/nativeRenderTargetWrapper.d.ts +3 -3
- package/Engines/Native/nativeRenderTargetWrapper.js.map +1 -1
- package/Engines/Native/validatedNativeDataStream.js +2 -2
- package/Engines/Native/validatedNativeDataStream.js.map +1 -1
- package/Engines/abstractEngine.d.ts +9 -0
- package/Engines/abstractEngine.js +13 -4
- package/Engines/abstractEngine.js.map +1 -1
- package/Engines/engine.d.ts +2 -6
- package/Engines/engine.js +2 -13
- package/Engines/engine.js.map +1 -1
- package/Engines/index.d.ts +1 -0
- package/Engines/index.js +1 -0
- package/Engines/index.js.map +1 -1
- package/Engines/nativeEngine.d.ts +19 -536
- package/Engines/nativeEngine.js +27 -2127
- package/Engines/nativeEngine.js.map +1 -1
- package/Engines/nullEngine.d.ts +2 -0
- package/Engines/nullEngine.js +2 -0
- package/Engines/nullEngine.js.map +1 -1
- package/Engines/thinNativeEngine.d.ts +537 -0
- package/Engines/thinNativeEngine.js +2033 -0
- package/Engines/thinNativeEngine.js.map +1 -0
- package/Engines/webgpuEngine.d.ts +2 -0
- package/Engines/webgpuEngine.js +2 -0
- package/Engines/webgpuEngine.js.map +1 -1
- package/Misc/tools.d.ts +3 -1
- package/Misc/tools.js +76 -59
- package/Misc/tools.js.map +1 -1
- package/Particles/Node/Blocks/index.d.ts +2 -0
- package/Particles/Node/Blocks/index.js +2 -0
- package/Particles/Node/Blocks/index.js.map +1 -1
- package/Particles/Node/Blocks/particleClampBlock.d.ts +42 -0
- package/Particles/Node/Blocks/particleClampBlock.js +114 -0
- package/Particles/Node/Blocks/particleClampBlock.js.map +1 -0
- package/XR/native/nativeXRFrame.js +1 -1
- package/XR/native/nativeXRFrame.js.map +1 -1
- package/package.json +1 -1
|
@@ -42,6 +42,7 @@ import { AlphaState } from "../States/alphaCullingState.js";
|
|
|
42
42
|
import { InternalTexture, InternalTextureSource } from "../Materials/Textures/internalTexture.js";
|
|
43
43
|
import { Observable } from "../Misc/observable.js";
|
|
44
44
|
import type { Material } from "../Materials/material.js";
|
|
45
|
+
import type { IInternalTextureLoader } from "../Materials/Textures/Loaders/internalTextureLoader.js";
|
|
45
46
|
/**
|
|
46
47
|
* Defines the interface used by objects working like Scene
|
|
47
48
|
* @internal
|
|
@@ -1404,4 +1405,12 @@ export declare abstract class AbstractEngine {
|
|
|
1404
1405
|
* @returns frame number
|
|
1405
1406
|
*/
|
|
1406
1407
|
static QueueNewFrame: (func: () => void, requester?: any) => number;
|
|
1408
|
+
/**
|
|
1409
|
+
* @internal
|
|
1410
|
+
* Function used to get the correct texture loader for a specific extension.
|
|
1411
|
+
* @param extension defines the file extension of the file being loaded
|
|
1412
|
+
* @param mimeType defines the optional mime type of the file being loaded
|
|
1413
|
+
* @returns the IInternalTextureLoader or null if it wasn't found
|
|
1414
|
+
*/
|
|
1415
|
+
static GetCompatibleTextureLoader(_extension: string, _mimeType?: string): Nullable<Promise<IInternalTextureLoader>>;
|
|
1407
1416
|
}
|
|
@@ -13,7 +13,6 @@ import { IsDocumentAvailable, IsNavigatorAvailable, IsWindowObjectExist } from "
|
|
|
13
13
|
|
|
14
14
|
import { Observable } from "../Misc/observable.js";
|
|
15
15
|
import { EngineFunctionContext, _LoadFile } from "./abstractEngine.functions.js";
|
|
16
|
-
import { _GetCompatibleTextureLoader } from "../Materials/Textures/Loaders/textureLoaderManager.js";
|
|
17
16
|
/**
|
|
18
17
|
* Queue a new function into the requested animation frame pool (ie. this function will be executed by the browser (or the javascript engine) for the next frame)
|
|
19
18
|
* @param func - the function to be called
|
|
@@ -616,7 +615,7 @@ export class AbstractEngine {
|
|
|
616
615
|
if (queryStringIndex > -1) {
|
|
617
616
|
extension = extension.split("?")[0];
|
|
618
617
|
}
|
|
619
|
-
const loaderPromise =
|
|
618
|
+
const loaderPromise = AbstractEngine.GetCompatibleTextureLoader(extension, mimeType);
|
|
620
619
|
if (scene) {
|
|
621
620
|
scene.addPendingData(texture);
|
|
622
621
|
}
|
|
@@ -794,13 +793,13 @@ export class AbstractEngine {
|
|
|
794
793
|
*/
|
|
795
794
|
// Not mixed with Version for tooling purpose.
|
|
796
795
|
static get NpmPackage() {
|
|
797
|
-
return "babylonjs@8.45.
|
|
796
|
+
return "babylonjs@8.45.5";
|
|
798
797
|
}
|
|
799
798
|
/**
|
|
800
799
|
* Returns the current version of the framework
|
|
801
800
|
*/
|
|
802
801
|
static get Version() {
|
|
803
|
-
return "8.45.
|
|
802
|
+
return "8.45.5";
|
|
804
803
|
}
|
|
805
804
|
/**
|
|
806
805
|
* Gets the HTML canvas attached with the current webGL context
|
|
@@ -1540,6 +1539,16 @@ export class AbstractEngine {
|
|
|
1540
1539
|
}
|
|
1541
1540
|
}
|
|
1542
1541
|
}
|
|
1542
|
+
/**
|
|
1543
|
+
* @internal
|
|
1544
|
+
* Function used to get the correct texture loader for a specific extension.
|
|
1545
|
+
* @param extension defines the file extension of the file being loaded
|
|
1546
|
+
* @param mimeType defines the optional mime type of the file being loaded
|
|
1547
|
+
* @returns the IInternalTextureLoader or null if it wasn't found
|
|
1548
|
+
*/
|
|
1549
|
+
static GetCompatibleTextureLoader(_extension, _mimeType) {
|
|
1550
|
+
return null;
|
|
1551
|
+
}
|
|
1543
1552
|
}
|
|
1544
1553
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
1545
1554
|
/** @internal */
|