|
@@ -60546,16 +60546,30 @@ declare module "babylonjs/Misc/khronosTextureContainer2" {
|
|
|
import { ThinEngine } from "babylonjs/Engines/thinEngine";
|
|
|
/**
|
|
|
* Class for loading KTX2 files
|
|
|
- * @hidden
|
|
|
*/
|
|
|
export class KhronosTextureContainer2 {
|
|
|
private static _WorkerPoolPromise?;
|
|
|
private static _Initialized;
|
|
|
private static _Ktx2Decoder;
|
|
|
/**
|
|
|
- * URL to use when loading the KTX2 decoder module
|
|
|
- */
|
|
|
- static JSModuleURL: string;
|
|
|
+ * URLs to use when loading the KTX2 decoder module as well as its dependencies
|
|
|
+ * If a url is null, the default url is used (pointing to https://preview.babylonjs.com)
|
|
|
+ * Note that jsDecoderModule can't be null and that the other dependencies will only be loaded if necessary
|
|
|
+ * Urls you can change:
|
|
|
+ * URLConfig.jsDecoderModule
|
|
|
+ * URLConfig.wasmUASTCToASTC
|
|
|
+ * URLConfig.wasmUASTCToBC7
|
|
|
+ * URLConfig.jsMSCTranscoder
|
|
|
+ * URLConfig.wasmMSCTranscoder
|
|
|
+ * You can see their default values in this PG: https://playground.babylonjs.com/#EIJH8L#9
|
|
|
+ */
|
|
|
+ static URLConfig: {
|
|
|
+ jsDecoderModule: string;
|
|
|
+ wasmUASTCToASTC: null;
|
|
|
+ wasmUASTCToBC7: null;
|
|
|
+ jsMSCTranscoder: null;
|
|
|
+ wasmMSCTranscoder: null;
|
|
|
+ };
|
|
|
/**
|
|
|
* Default number of workers used to handle data decoding
|
|
|
*/
|
|
@@ -60565,9 +60579,11 @@ declare module "babylonjs/Misc/khronosTextureContainer2" {
|
|
|
private static _CreateWorkerPool;
|
|
|
/**
|
|
|
* Constructor
|
|
|
+ * @param engine The engine to use
|
|
|
* @param numWorkers The number of workers for async operations. Specify `0` to disable web workers and run synchronously in the current context.
|
|
|
*/
|
|
|
constructor(engine: ThinEngine, numWorkers?: number);
|
|
|
+ /** @hidden */
|
|
|
uploadAsync(data: ArrayBufferView, internalTexture: InternalTexture): Promise<void>;
|
|
|
/**
|
|
|
* Stop all async operations and release resources.
|
|
@@ -60581,7 +60597,6 @@ declare module "babylonjs/Misc/khronosTextureContainer2" {
|
|
|
*/
|
|
|
static IsValid(data: ArrayBufferView): boolean;
|
|
|
}
|
|
|
- export function workerFunc(): void;
|
|
|
}
|
|
|
declare module "babylonjs/Materials/Textures/Loaders/ktxTextureLoader" {
|
|
|
import { Nullable } from "babylonjs/types";
|
|
@@ -67647,7 +67662,7 @@ declare module "babylonjs/Materials/Node/Blocks/PBR/ambientOcclusionBlock" {
|
|
|
/**
|
|
|
* Gets the ambient occlusion object output component
|
|
|
*/
|
|
|
- get ambientOcclusion(): NodeMaterialConnectionPoint;
|
|
|
+ get ambientOcc(): NodeMaterialConnectionPoint;
|
|
|
/**
|
|
|
* Gets the main code of the block (fragment side)
|
|
|
* @param block instance of an AmbientOcclusionBlock or null if the code must be generated without an active ambient occlusion module
|
|
@@ -68357,7 +68372,7 @@ declare module "babylonjs/Materials/Node/Blocks/PBR/pbrMetallicRoughnessBlock" {
|
|
|
/**
|
|
|
* Gets the ambient occlusion object parameters
|
|
|
*/
|
|
|
- get ambientOcclusion(): NodeMaterialConnectionPoint;
|
|
|
+ get ambientOcc(): NodeMaterialConnectionPoint;
|
|
|
/**
|
|
|
* Gets the reflection object parameters
|
|
|
*/
|
|
@@ -138265,16 +138280,30 @@ declare module BABYLON {
|
|
|
declare module BABYLON {
|
|
|
/**
|
|
|
* Class for loading KTX2 files
|
|
|
- * @hidden
|
|
|
*/
|
|
|
export class KhronosTextureContainer2 {
|
|
|
private static _WorkerPoolPromise?;
|
|
|
private static _Initialized;
|
|
|
private static _Ktx2Decoder;
|
|
|
/**
|
|
|
- * URL to use when loading the KTX2 decoder module
|
|
|
- */
|
|
|
- static JSModuleURL: string;
|
|
|
+ * URLs to use when loading the KTX2 decoder module as well as its dependencies
|
|
|
+ * If a url is null, the default url is used (pointing to https://preview.babylonjs.com)
|
|
|
+ * Note that jsDecoderModule can't be null and that the other dependencies will only be loaded if necessary
|
|
|
+ * Urls you can change:
|
|
|
+ * URLConfig.jsDecoderModule
|
|
|
+ * URLConfig.wasmUASTCToASTC
|
|
|
+ * URLConfig.wasmUASTCToBC7
|
|
|
+ * URLConfig.jsMSCTranscoder
|
|
|
+ * URLConfig.wasmMSCTranscoder
|
|
|
+ * You can see their default values in this PG: https://playground.babylonjs.com/#EIJH8L#9
|
|
|
+ */
|
|
|
+ static URLConfig: {
|
|
|
+ jsDecoderModule: string;
|
|
|
+ wasmUASTCToASTC: null;
|
|
|
+ wasmUASTCToBC7: null;
|
|
|
+ jsMSCTranscoder: null;
|
|
|
+ wasmMSCTranscoder: null;
|
|
|
+ };
|
|
|
/**
|
|
|
* Default number of workers used to handle data decoding
|
|
|
*/
|
|
@@ -138284,9 +138313,11 @@ declare module BABYLON {
|
|
|
private static _CreateWorkerPool;
|
|
|
/**
|
|
|
* Constructor
|
|
|
+ * @param engine The engine to use
|
|
|
* @param numWorkers The number of workers for async operations. Specify `0` to disable web workers and run synchronously in the current context.
|
|
|
*/
|
|
|
constructor(engine: ThinEngine, numWorkers?: number);
|
|
|
+ /** @hidden */
|
|
|
uploadAsync(data: ArrayBufferView, internalTexture: InternalTexture): Promise<void>;
|
|
|
/**
|
|
|
* Stop all async operations and release resources.
|
|
@@ -138300,7 +138331,6 @@ declare module BABYLON {
|
|
|
*/
|
|
|
static IsValid(data: ArrayBufferView): boolean;
|
|
|
}
|
|
|
- export function workerFunc(): void;
|
|
|
}
|
|
|
declare module BABYLON {
|
|
|
/**
|
|
@@ -144706,7 +144736,7 @@ declare module BABYLON {
|
|
|
/**
|
|
|
* Gets the ambient occlusion object output component
|
|
|
*/
|
|
|
- get ambientOcclusion(): NodeMaterialConnectionPoint;
|
|
|
+ get ambientOcc(): NodeMaterialConnectionPoint;
|
|
|
/**
|
|
|
* Gets the main code of the block (fragment side)
|
|
|
* @param block instance of an AmbientOcclusionBlock or null if the code must be generated without an active ambient occlusion module
|
|
@@ -145355,7 +145385,7 @@ declare module BABYLON {
|
|
|
/**
|
|
|
* Gets the ambient occlusion object parameters
|
|
|
*/
|
|
|
- get ambientOcclusion(): NodeMaterialConnectionPoint;
|
|
|
+ get ambientOcc(): NodeMaterialConnectionPoint;
|
|
|
/**
|
|
|
* Gets the reflection object parameters
|
|
|
*/
|