avbd-babylon 0.4.4 → 0.4.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/dist/babylonAvbd.d.ts +347 -314
- package/dist/gpuDevice.d.ts +15 -10
- package/dist/nativeScenes.d.ts +879 -815
- package/dist/solverPipeline.d.ts +70 -62
- package/dist/utilities.d.ts +165 -161
- package/package.json +1 -1
package/dist/gpuDevice.d.ts
CHANGED
|
@@ -1,10 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Request a caller-owned device; destroy it when all worlds/renderers using it
|
|
3
|
+
* are finished. For shared rendering, pass the existing renderer device instead.
|
|
4
|
+
*/
|
|
5
|
+
export function createWebGPUDevice(options?: {
|
|
6
|
+
/** Run the cached 3D floor-contact qualification and select a working GPU path. */
|
|
7
|
+
validate3D?: boolean;
|
|
8
|
+
powerPreference?: GPUPowerPreference;
|
|
9
|
+
/** Hard requirements: creation fails if the adapter cannot meet them. */
|
|
10
|
+
requiredLimits?: Record<string, number>;
|
|
11
|
+
/** Desired maximum capacities, clamped to the adapter. Required limits take precedence. */
|
|
12
|
+
preferredLimits?: Record<string, number>;
|
|
13
|
+
}): Promise<{ adapter: GPUAdapter; device: GPUDevice }>;
|
|
14
|
+
/** Prepare an existing renderer-owned device for 3D. Does not take device ownership. */
|
|
15
|
+
export function prepareWebGPUDevice3D(device: GPUDevice): Promise<GPUDevice>;
|