@babylonjs/lite-compat 1.33.0-preview → 1.34.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/navigation.d.ts CHANGED
@@ -37,11 +37,11 @@ declare abstract class AbstractEngine {
37
37
  */
38
38
  useReverseDepthBuffer: boolean;
39
39
  /** Babylon.js `engine.onResizeObservable` — fires after `resize()` / `setSize()`. */
40
- readonly onResizeObservable: Observable<AbstractEngine>;
41
40
  constructor(canvas: RenderCanvas, options?: ({
42
- antialias?: boolean;
43
- adaptToDeviceRatio?: boolean;
44
- useLargeWorldRendering?: boolean;
45
- } & EngineOptions) | boolean);
41
+ readonly onResizeObservable: Observable<AbstractEngine>;
42
+ /** Babylon.js context-loss signal, forwarded from Lite's device-loss subscription. */
43
+ readonly onContextLostObservable: Observable<AbstractEngine>;
44
+ /** Babylon.js context-restored signal. Lite does not expose a completed-recovery event, so this remains shape-only. */
45
+ readonly onContextRestoredObservable: Observable<AbstractEngine>;
46
46
  constructor(canvas: RenderCanvas, options?: WebGPUEngineOptions | boolean);
47
47
  /** Acquire the GPU device and build the Lite engine context. */
48
48
  initAsync(): Promise<void>;
49
49
  getRenderingCanvas(): RenderCanvas;
@@ -2223,4 +2223,13 @@ export declare function WaitForFullTileCacheUpdate(navMesh: unknown, _tileCache?
2223
2223
  declare class WebGPUEngine extends AbstractEngine {
2224
2224
  }
2225
2225
 
2226
+ /** Babylon.js `WebGPUEngineOptions` subset accepted by the compat engine. */
2227
+ declare interface WebGPUEngineOptions extends EngineOptions {
2228
+ antialias?: boolean;
2229
+ adaptToDeviceRatio?: boolean;
2230
+ useLargeWorldRendering?: boolean;
2231
+ canvasToneMapping?: GPUCanvasToneMapping;
2232
+ canvasColorSpace?: PredefinedColorSpace;
2233
+ }
2234
+
2226
2235
  export { }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@babylonjs/lite-compat",
3
- "version": "1.33.0-preview",
3
+ "version": "1.34.0-preview",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "description": "Opt-in Babylon.js-shaped compatibility layer implemented on top of the Babylon Lite public API. Provides a migration runway from Babylon.js to Babylon Lite.",
@@ -47,8 +47,8 @@
47
47
  }
48
48
  },
49
49
  "babylonLiteRelease": {
50
- "azureBuildId": "60388",
51
- "sourceVersion": "1d1a2c0de2fc845d57096b7abe0256c10e648ff3",
52
- "builtAgainstLite": "1.33.0"
50
+ "azureBuildId": "60698",
51
+ "sourceVersion": "22bd82496ecbb38f7bbd4107ef5eca40c2897bd0",
52
+ "builtAgainstLite": "1.34.0"
53
53
  }
54
54
  }