@kirknock/node-openxr-core 0.0.0-stage → 0.3.0
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/LICENSE +21 -0
- package/README.md +52 -2
- package/dist/args.d.ts +3 -0
- package/dist/args.js +7 -0
- package/dist/args.js.map +1 -0
- package/dist/compat.d.ts +16 -0
- package/dist/compat.js +114 -0
- package/dist/compat.js.map +1 -0
- package/dist/config.d.ts +49 -0
- package/dist/config.js +37 -0
- package/dist/config.js.map +1 -0
- package/dist/env-report.d.ts +44 -0
- package/dist/env-report.js +131 -0
- package/dist/env-report.js.map +1 -0
- package/dist/ffi.d.ts +4 -0
- package/dist/ffi.js +15 -0
- package/dist/ffi.js.map +1 -0
- package/dist/log.d.ts +26 -0
- package/dist/log.js +56 -0
- package/dist/log.js.map +1 -0
- package/dist/platform/babylon-headless.d.ts +33 -0
- package/dist/platform/babylon-headless.js +51 -0
- package/dist/platform/babylon-headless.js.map +1 -0
- package/dist/platform/browser-env.d.ts +6 -0
- package/dist/platform/browser-env.js +60 -0
- package/dist/platform/browser-env.js.map +1 -0
- package/dist/platform/canvas-2d.d.ts +4 -0
- package/dist/platform/canvas-2d.js +40 -0
- package/dist/platform/canvas-2d.js.map +1 -0
- package/dist/platform/env-shims.d.ts +26 -0
- package/dist/platform/env-shims.js +214 -0
- package/dist/platform/env-shims.js.map +1 -0
- package/dist/platform/headless-canvas.d.ts +44 -0
- package/dist/platform/headless-canvas.js +129 -0
- package/dist/platform/headless-canvas.js.map +1 -0
- package/dist/platform/headless-rgbd.d.ts +6 -0
- package/dist/platform/headless-rgbd.js +167 -0
- package/dist/platform/headless-rgbd.js.map +1 -0
- package/dist/platform/image-decode-pool.d.ts +23 -0
- package/dist/platform/image-decode-pool.js +88 -0
- package/dist/platform/image-decode-pool.js.map +1 -0
- package/dist/platform/image-decode-worker.d.ts +1 -0
- package/dist/platform/image-decode-worker.js +24 -0
- package/dist/platform/image-decode-worker.js.map +1 -0
- package/dist/platform/image-polyfill.d.ts +74 -0
- package/dist/platform/image-polyfill.js +568 -0
- package/dist/platform/image-polyfill.js.map +1 -0
- package/dist/platform/mirror.d.ts +45 -0
- package/dist/platform/mirror.js +143 -0
- package/dist/platform/mirror.js.map +1 -0
- package/dist/platform/node-xr.d.ts +84 -0
- package/dist/platform/node-xr.js +198 -0
- package/dist/platform/node-xr.js.map +1 -0
- package/dist/platform/scene-references.d.ts +16 -0
- package/dist/platform/scene-references.js +81 -0
- package/dist/platform/scene-references.js.map +1 -0
- package/dist/platform/xhr.d.ts +51 -0
- package/dist/platform/xhr.js +205 -0
- package/dist/platform/xhr.js.map +1 -0
- package/dist/profile.d.ts +26 -0
- package/dist/profile.js +38 -0
- package/dist/profile.js.map +1 -0
- package/dist/timing.d.ts +41 -0
- package/dist/timing.js +132 -0
- package/dist/timing.js.map +1 -0
- package/dist/tools/mirror-prefetch.d.ts +1 -0
- package/dist/tools/mirror-prefetch.js +72 -0
- package/dist/tools/mirror-prefetch.js.map +1 -0
- package/dist/tools/probe-bindings.d.ts +1 -0
- package/dist/tools/probe-bindings.js +128 -0
- package/dist/tools/probe-bindings.js.map +1 -0
- package/dist/tools/probe.d.ts +1 -0
- package/dist/tools/probe.js +112 -0
- package/dist/tools/probe.js.map +1 -0
- package/dist/webxr/demo-input.d.ts +8 -0
- package/dist/webxr/demo-input.js +11 -0
- package/dist/webxr/demo-input.js.map +1 -0
- package/dist/webxr/iwer-runtime.d.ts +40 -0
- package/dist/webxr/iwer-runtime.js +198 -0
- package/dist/webxr/iwer-runtime.js.map +1 -0
- package/dist/webxr/openxr-driver.d.ts +67 -0
- package/dist/webxr/openxr-driver.js +218 -0
- package/dist/webxr/openxr-driver.js.map +1 -0
- package/dist/xr/generated/xr-abi.gen.d.ts +144 -0
- package/dist/xr/generated/xr-abi.gen.js +304 -0
- package/dist/xr/generated/xr-abi.gen.js.map +1 -0
- package/dist/xr/input.d.ts +92 -0
- package/dist/xr/input.js +406 -0
- package/dist/xr/input.js.map +1 -0
- package/dist/xr/passthrough.d.ts +5 -0
- package/dist/xr/passthrough.js +44 -0
- package/dist/xr/passthrough.js.map +1 -0
- package/dist/xr/post-1-0-20.d.ts +20 -0
- package/dist/xr/post-1-0-20.js +21 -0
- package/dist/xr/post-1-0-20.js.map +1 -0
- package/dist/xr/projection-layer.d.ts +13 -0
- package/dist/xr/projection-layer.js +68 -0
- package/dist/xr/projection-layer.js.map +1 -0
- package/dist/xr/reference-space.d.ts +7 -0
- package/dist/xr/reference-space.js +47 -0
- package/dist/xr/reference-space.js.map +1 -0
- package/dist/xr/session-graphics.d.ts +60 -0
- package/dist/xr/session-graphics.js +36 -0
- package/dist/xr/session-graphics.js.map +1 -0
- package/dist/xr/session.d.ts +165 -0
- package/dist/xr/session.js +495 -0
- package/dist/xr/session.js.map +1 -0
- package/dist/xr/swapchain.d.ts +26 -0
- package/dist/xr/swapchain.js +69 -0
- package/dist/xr/swapchain.js.map +1 -0
- package/dist/xr/view-config.d.ts +16 -0
- package/dist/xr/view-config.js +74 -0
- package/dist/xr/view-config.js.map +1 -0
- package/dist/xr/xr-abi.d.ts +26 -0
- package/dist/xr/xr-abi.js +506 -0
- package/dist/xr/xr-abi.js.map +1 -0
- package/dist/xr/xr-loader.d.ts +65 -0
- package/dist/xr/xr-loader.js +185 -0
- package/dist/xr/xr-loader.js.map +1 -0
- package/package.json +100 -4
- package/scripts/run-tests.mjs +94 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 kirknock
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,53 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @kirknock/node-openxr-core
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
[](https://github.com/kirknock/node-openxr-core/actions/workflows/ci.yml)
|
|
4
|
+
[](https://www.npmjs.com/package/@kirknock/node-openxr-core)
|
|
5
|
+
|
|
6
|
+
OpenXR over koffi (`src/xr`), the IWER WebXR runtime driven from the native
|
|
7
|
+
session (`src/webxr`), and the Node platform Babylon.js apps run on Linux
|
|
8
|
+
(`src/platform`: browser globals, canvas, XHR, images, the frame loop).
|
|
9
|
+
Also `config.ts` (every `XR_*` variable), `log.ts`, `compat.ts` (pinned
|
|
10
|
+
third-party internals), and the test runner bin `nodexr-test`.
|
|
11
|
+
|
|
12
|
+
## Install
|
|
13
|
+
|
|
14
|
+
```bash
|
|
15
|
+
npm install @kirknock/node-openxr-core @babylonjs/core@9.33.2 iwer@2.7.0 koffi@2.16.3 @napi-rs/canvas@1.0.11
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
Peer dependencies are exact pins (see `src/compat.ts`); `@babylonjs/loaders`
|
|
19
|
+
is optional. Modules are imported by path, e.g.
|
|
20
|
+
`@kirknock/node-openxr-core/xr/session.js`.
|
|
21
|
+
|
|
22
|
+
Requires Node.js >= 24 and, at runtime, an OpenXR loader
|
|
23
|
+
(`libopenxr_loader.so.1`) and runtime.
|
|
24
|
+
|
|
25
|
+
## Development
|
|
26
|
+
|
|
27
|
+
```bash
|
|
28
|
+
npm ci
|
|
29
|
+
npm run build # dist/
|
|
30
|
+
npm run lint && npm run typecheck
|
|
31
|
+
npm test # pure group: IWER, pointer selection, teleportation, view pose, mirror, ...
|
|
32
|
+
npm run gen:abi # regenerate src/xr/generated/xr-abi.gen.ts (needs gcc)
|
|
33
|
+
npm run probe # OpenXR instance/system info (live runtime)
|
|
34
|
+
npm run push # build + yalc push to local consumers
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
## Releasing
|
|
38
|
+
|
|
39
|
+
Bump `version` in `package.json`, commit, then push a matching tag:
|
|
40
|
+
|
|
41
|
+
```bash
|
|
42
|
+
npm version patch # or minor / major / prerelease --preid beta
|
|
43
|
+
git push --follow-tags
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
The `Release` workflow checks the tag, lints, tests, publishes to npm via
|
|
47
|
+
trusted publishing (with provenance) and creates a GitHub release with the
|
|
48
|
+
tarball attached.
|
|
49
|
+
|
|
50
|
+
## License
|
|
51
|
+
|
|
52
|
+
MIT. The vendored OpenXR headers in `third_party/openxr` are
|
|
53
|
+
© The Khronos Group Inc., `Apache-2.0 OR MIT`.
|
package/dist/args.d.ts
ADDED
package/dist/args.js
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/** Command-line flags of the tools and app entry points. */
|
|
2
|
+
/** The number after `--name` on the command line, or `fallback`. */
|
|
3
|
+
export function argInt(name, fallback) {
|
|
4
|
+
const i = process.argv.indexOf(`--${name}`);
|
|
5
|
+
return i !== -1 && i + 1 < process.argv.length ? Number(process.argv[i + 1]) : fallback;
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=args.js.map
|
package/dist/args.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"args.js","sourceRoot":"","sources":["../src/args.ts"],"names":[],"mappings":"AAAA,4DAA4D;AAE5D,oEAAoE;AACpE,MAAM,UAAU,MAAM,CAAC,IAAY,EAAE,QAAgB;IACnD,MAAM,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,KAAK,IAAI,EAAE,CAAC,CAAC;IAC5C,OAAO,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC;AAC1F,CAAC"}
|
package/dist/compat.d.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/** Exact versions everything above was verified with (= package.json pins). */
|
|
2
|
+
export declare const TESTED_VERSIONS: Readonly<Record<string, string>>;
|
|
3
|
+
/**
|
|
4
|
+
* The platform patches the classes of the Babylon and IWER copies it
|
|
5
|
+
* imports, and koffi's struct registry is per copy: an app that resolves a
|
|
6
|
+
* second copy of any of them gets unpatched classes. nodexr packages take
|
|
7
|
+
* these as peer dependencies so the app's copy is the only one; this
|
|
8
|
+
* compares the app's (node_modules/ under the working directory) with
|
|
9
|
+
* nodexr-core's. Returns the packages with two copies.
|
|
10
|
+
*/
|
|
11
|
+
export declare function checkSingleCopies(appRoot?: string): string[];
|
|
12
|
+
/**
|
|
13
|
+
* Warns loudly (does not abort) when an installed dependency differs from
|
|
14
|
+
* the verified version. Returns the mismatches, e.g. for tests.
|
|
15
|
+
*/
|
|
16
|
+
export declare function checkDependencyVersions(): string[];
|
package/dist/compat.js
ADDED
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Third-party internals this app depends on, and the exact versions they
|
|
3
|
+
* were verified against. Babylon.js, IWER and the native packages are not
|
|
4
|
+
* used through their public APIs alone — the headless/native integration
|
|
5
|
+
* reaches into private members — so an upgrade must be re-verified (all
|
|
6
|
+
* smokes + an app run) before TESTED is bumped.
|
|
7
|
+
*
|
|
8
|
+
* Private touch-points (grep for the member to find the code). Paths are
|
|
9
|
+
* under packages/<package>/src, nodexr-core's without the package prefix:
|
|
10
|
+
* @babylonjs/core
|
|
11
|
+
* StandardMaterial/PBRBaseMaterial
|
|
12
|
+
* ._ShaderLoader platform/babylon-headless.ts (lazy shader imports)
|
|
13
|
+
* Effect._processShaderCodeAsync platform/babylon-headless.ts (why the above is needed)
|
|
14
|
+
* AbstractEngine._features platform/babylon-headless.ts (bitmap image loads)
|
|
15
|
+
* AbstractEngine._FileToolsLoadImage platform/image-polyfill.ts (replaced: workers, data URIs sync, URLs via XHR)
|
|
16
|
+
* Engine._CommonInit platform/headless-canvas.ts (canvas surface it touches)
|
|
17
|
+
* InternalTexture._isRGBD,
|
|
18
|
+
* InternalTexture._swapAndDie platform/headless-rgbd.ts (CPU RGBD expansion)
|
|
19
|
+
* WebXRCamera._updateReferenceSpace (behaviour relied on; webxr/iwer-runtime.ts)
|
|
20
|
+
* InternalTexture._dynamicTextureSource puppeteer/headless-panel/headless-pane.ts (released after upload)
|
|
21
|
+
* WebGPUTextureManager.updateTexture webgpu/babylon-bridges.ts (bitmap and canvas uploads)
|
|
22
|
+
* WebGPUTintWASM._TwgslDefaultOptions, the self.glslang/self.twgsl lookup webgpu/babylon-bridges.ts (local shader compilers)
|
|
23
|
+
* PostProcessManager._finalizeFrame, WebGPUEngine.bindFramebuffer webgpu/babylon-bridges.ts (XR array layer; re-check, may be fixed upstream)
|
|
24
|
+
* WebGPU XR path: XRGPUBinding, XRGPUSubImage and their members it reads webgpu/xr/
|
|
25
|
+
* @babylonjs/loaders
|
|
26
|
+
* GLTFLoader._loadMeshPrimitiveAsync babylon/load-asset.ts (extension hook; re-enters the loader)
|
|
27
|
+
* behaviour relied on: a mesh's bounds are computed when its load completes babylon/load-asset.ts
|
|
28
|
+
* iwer
|
|
29
|
+
* XRReferenceSpace.getOffsetReferenceSpace (patched) webxr/iwer-runtime.ts
|
|
30
|
+
* XRFrame.getViewerPose (patched: exact per-eye poses via the eye
|
|
31
|
+
* spaces' offsets — XRSpaceUtils.updateOffsetMatrix, a deep import,
|
|
32
|
+
* on device.viewSpaces — and projections, mutating
|
|
33
|
+
* XRView.projectionMatrix in place) webxr/iwer-runtime.ts
|
|
34
|
+
* XRSession.updateRenderState, .renderState, XRFrame.getViewerPose (wrapped for layers) webgpu/xr/install.ts
|
|
35
|
+
* behaviour relied on: XRWebGLLayer framebuffer = null with left|right
|
|
36
|
+
* viewports, the canvas sized to window.innerWidth/innerHeight, the
|
|
37
|
+
* per-frame clear of the default framebuffer webgl/platform.ts
|
|
38
|
+
* koffi native ABI — version pinned as well
|
|
39
|
+
* dawn.node patched build: packages/dawn/third_party/dawn (docs/webgpu-zero-copy.md)
|
|
40
|
+
* puppeteer decides the Chrome version the package bundles; repackage after upgrading
|
|
41
|
+
*/
|
|
42
|
+
import { existsSync, readFileSync, realpathSync } from "node:fs";
|
|
43
|
+
import { dirname, join } from "node:path";
|
|
44
|
+
import { fileURLToPath } from "node:url";
|
|
45
|
+
import { logger } from "./log.js";
|
|
46
|
+
const compatLog = logger("compat");
|
|
47
|
+
/** Exact versions everything above was verified with (= package.json pins). */
|
|
48
|
+
export const TESTED_VERSIONS = {
|
|
49
|
+
"@babylonjs/core": "9.33.2",
|
|
50
|
+
"@babylonjs/loaders": "9.33.2",
|
|
51
|
+
iwer: "2.7.0",
|
|
52
|
+
koffi: "2.16.3",
|
|
53
|
+
puppeteer: "25.16.0",
|
|
54
|
+
"@napi-rs/canvas": "1.0.11",
|
|
55
|
+
};
|
|
56
|
+
/** The copy of `pkg` that nodexr-core itself resolves, or null if none. */
|
|
57
|
+
function resolvedPackageJson(pkg) {
|
|
58
|
+
try {
|
|
59
|
+
return fileURLToPath(import.meta.resolve(`${pkg}/package.json`));
|
|
60
|
+
}
|
|
61
|
+
catch {
|
|
62
|
+
return null;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
function installedVersion(pkg) {
|
|
66
|
+
const file = resolvedPackageJson(pkg);
|
|
67
|
+
if (file === null)
|
|
68
|
+
return null;
|
|
69
|
+
return JSON.parse(readFileSync(file, "utf8")).version ?? null;
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* The platform patches the classes of the Babylon and IWER copies it
|
|
73
|
+
* imports, and koffi's struct registry is per copy: an app that resolves a
|
|
74
|
+
* second copy of any of them gets unpatched classes. nodexr packages take
|
|
75
|
+
* these as peer dependencies so the app's copy is the only one; this
|
|
76
|
+
* compares the app's (node_modules/ under the working directory) with
|
|
77
|
+
* nodexr-core's. Returns the packages with two copies.
|
|
78
|
+
*/
|
|
79
|
+
export function checkSingleCopies(appRoot = process.cwd()) {
|
|
80
|
+
const doubled = [];
|
|
81
|
+
for (const pkg of Object.keys(TESTED_VERSIONS)) {
|
|
82
|
+
const appCopy = join(appRoot, "node_modules", pkg);
|
|
83
|
+
const coreCopy = resolvedPackageJson(pkg);
|
|
84
|
+
if (!existsSync(appCopy) || coreCopy === null)
|
|
85
|
+
continue;
|
|
86
|
+
if (realpathSync(appCopy) !== realpathSync(dirname(coreCopy)))
|
|
87
|
+
doubled.push(`${pkg}: app ${realpathSync(appCopy)}, nodexr-core ${realpathSync(dirname(coreCopy))}`);
|
|
88
|
+
}
|
|
89
|
+
if (doubled.length > 0) {
|
|
90
|
+
compatLog.warn(`TWO COPIES of a shared dependency — the app's is not the one the platform patched:\n ${doubled.join("\n ")}`);
|
|
91
|
+
}
|
|
92
|
+
return doubled;
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* Warns loudly (does not abort) when an installed dependency differs from
|
|
96
|
+
* the verified version. Returns the mismatches, e.g. for tests.
|
|
97
|
+
*/
|
|
98
|
+
export function checkDependencyVersions() {
|
|
99
|
+
const mismatches = [];
|
|
100
|
+
for (const [pkg, tested] of Object.entries(TESTED_VERSIONS)) {
|
|
101
|
+
const installed = installedVersion(pkg);
|
|
102
|
+
// An app need not install everything (the PoC has no puppeteer).
|
|
103
|
+
if (installed === null)
|
|
104
|
+
continue;
|
|
105
|
+
if (installed !== tested)
|
|
106
|
+
mismatches.push(`${pkg} ${installed ?? "(unresolved)"} (verified: ${tested})`);
|
|
107
|
+
}
|
|
108
|
+
if (mismatches.length > 0) {
|
|
109
|
+
compatLog.warn(`UNVERIFIED dependency versions — private internals may have changed (see nodexr-core src/compat.ts):\n ` +
|
|
110
|
+
mismatches.join("\n "));
|
|
111
|
+
}
|
|
112
|
+
return mismatches;
|
|
113
|
+
}
|
|
114
|
+
//# sourceMappingURL=compat.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"compat.js","sourceRoot":"","sources":["../src/compat.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AACH,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACjE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,MAAM,SAAS,GAAG,MAAM,CAAC,QAAQ,CAAC,CAAC;AAEnC,+EAA+E;AAC/E,MAAM,CAAC,MAAM,eAAe,GAAqC;IAC/D,iBAAiB,EAAE,QAAQ;IAC3B,oBAAoB,EAAE,QAAQ;IAC9B,IAAI,EAAE,OAAO;IACb,KAAK,EAAE,QAAQ;IACf,SAAS,EAAE,SAAS;IACpB,iBAAiB,EAAE,QAAQ;CAC5B,CAAC;AAEF,2EAA2E;AAC3E,SAAS,mBAAmB,CAAC,GA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MAAM,CAAC,EAAE,CAAC,CAAC;IAClI,CAAC;IACD,OAAO,OAAO,CAAC;AACjB,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,uBAAuB;IACrC,MAAM,UAAU,GAAa,EAAE,CAAC;IAChC,KAAK,MAAM,CAAC,GAAG,EAAE,MAAM,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,eAAe,CAAC,EAAE,CAAC;QAC5D,MAAM,SAAS,GAAG,gBAAgB,CAAC,GAAG,CAAC,CAAC;QACxC,iEAAiE;QACjE,IAAI,SAAS,KAAK,IAAI;YAAE,SAAS;QACjC,IAAI,SAAS,KAAK,MAAM;YAAE,UAAU,CAAC,IAAI,CAAC,GAAG,GAAG,IAAI,SAAS,IAAI,cAAc,eAAe,MAAM,GAAG,CAAC,CAAC;IAC3G,CAAC;IACD,IAAI,UAAU,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QAC1B,SAAS,CAAC,IAAI,CACZ,0GAA0G;YACxG,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC,CAC1B,CAAC;IACJ,CAAC;IACD,OAAO,UAAU,CAAC;AACpB,CAAC"}
|
package/dist/config.d.ts
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Every XR_* environment variable the app reads, parsed in one place.
|
|
3
|
+
*
|
|
4
|
+
* XR_PROFILE dev | perf | auto (default auto) see profile.ts
|
|
5
|
+
* XR_RENDER_SCALE 0 < s <= 1 (default 1) swapchain + RTT scale
|
|
6
|
+
* XR_TIMING 1 | 0 (default: on under perf) per-stage frame timing
|
|
7
|
+
* XR_PASSTHROUGH 1 see-through presentation
|
|
8
|
+
* XR_RENDERER webgl2 | webgpu (default webgl2) the app's engine; --renderer overrides; never falls back
|
|
9
|
+
* XR_WEBGPU_VALIDATE 1 WebGPU runs: Vulkan validation layers, if installed
|
|
10
|
+
* XR_PT_PREMULT 0 = straight layer alpha (default premultiplied)
|
|
11
|
+
* XR_EYE_HEIGHT metres (default 1.6) LOCAL fallback floor offset
|
|
12
|
+
* XR_NET auto | offline | online (default auto) remote fetches vs mirror/ (platform/mirror.ts)
|
|
13
|
+
* XR_SYNTH_INPUT 1 (dev VM only) fixed controller poses + demo input
|
|
14
|
+
* XR_INPUT_DEBUG 1 input/pose/controller debug logs
|
|
15
|
+
* XR_SCENE_DEBUG 1 per-frame floor-flash probe (costs fps)
|
|
16
|
+
* XR_PIXEL_DEBUG 1 swapchain pixel samples every 30 frames (costs fps)
|
|
17
|
+
* XR_GL_DEBUG 1 WebGL2 shim: glGetError after every call
|
|
18
|
+
* XR_GL_TRACE all ... plus logging of key pipeline calls
|
|
19
|
+
*
|
|
20
|
+
* XR_RUNTIME_JSON is deliberately not here: it is the OpenXR loader's own
|
|
21
|
+
* contract (the native loader reads it too) and stays in xr/xr-loader.ts.
|
|
22
|
+
*
|
|
23
|
+
* Parsed lazily on first use, then cached: a script may still set
|
|
24
|
+
* process.env in its body (which runs after its hoisted imports).
|
|
25
|
+
*/
|
|
26
|
+
export type Renderer = "webgl2" | "webgpu";
|
|
27
|
+
/** An unknown name is an error: a typo must not silently run the other renderer. */
|
|
28
|
+
export declare function parseRenderer(value: string | undefined): Renderer;
|
|
29
|
+
export interface XrEnv {
|
|
30
|
+
profile: "dev" | "perf" | "auto";
|
|
31
|
+
renderScale: number;
|
|
32
|
+
/** undefined = profile default. */
|
|
33
|
+
timing: boolean | undefined;
|
|
34
|
+
passthrough: boolean;
|
|
35
|
+
renderer: Renderer;
|
|
36
|
+
webgpuValidate: boolean;
|
|
37
|
+
premultipliedAlpha: boolean;
|
|
38
|
+
eyeHeight: number;
|
|
39
|
+
net: "auto" | "offline" | "online";
|
|
40
|
+
synthInput: boolean;
|
|
41
|
+
debug: {
|
|
42
|
+
input: boolean;
|
|
43
|
+
scene: boolean;
|
|
44
|
+
pixel: boolean;
|
|
45
|
+
gl: boolean;
|
|
46
|
+
glTraceAll: boolean;
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
export declare function xrEnv(): XrEnv;
|
package/dist/config.js
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/** An unknown name is an error: a typo must not silently run the other renderer. */
|
|
2
|
+
export function parseRenderer(value) {
|
|
3
|
+
if (value === undefined || value === "" || value === "webgl2")
|
|
4
|
+
return "webgl2";
|
|
5
|
+
if (value === "webgpu")
|
|
6
|
+
return "webgpu";
|
|
7
|
+
throw new Error(`unknown renderer "${value}" (webgl2 | webgpu)`);
|
|
8
|
+
}
|
|
9
|
+
let cached = null;
|
|
10
|
+
export function xrEnv() {
|
|
11
|
+
if (cached !== null)
|
|
12
|
+
return cached;
|
|
13
|
+
const e = process.env;
|
|
14
|
+
const scale = Number(e.XR_RENDER_SCALE ?? "1");
|
|
15
|
+
const eyeHeight = Number(e.XR_EYE_HEIGHT ?? "1.6");
|
|
16
|
+
cached = Object.freeze({
|
|
17
|
+
profile: e.XR_PROFILE === "perf" || e.XR_PROFILE === "dev" ? e.XR_PROFILE : "auto",
|
|
18
|
+
renderScale: Number.isFinite(scale) && scale > 0 && scale <= 1 ? scale : 1,
|
|
19
|
+
timing: e.XR_TIMING !== undefined ? e.XR_TIMING === "1" : undefined,
|
|
20
|
+
passthrough: e.XR_PASSTHROUGH === "1",
|
|
21
|
+
renderer: parseRenderer(e.XR_RENDERER),
|
|
22
|
+
webgpuValidate: e.XR_WEBGPU_VALIDATE === "1",
|
|
23
|
+
premultipliedAlpha: e.XR_PT_PREMULT !== "0",
|
|
24
|
+
eyeHeight: Number.isFinite(eyeHeight) && eyeHeight > 0 ? eyeHeight : 1.6,
|
|
25
|
+
net: e.XR_NET === "offline" || e.XR_NET === "online" ? e.XR_NET : "auto",
|
|
26
|
+
synthInput: e.XR_SYNTH_INPUT === "1",
|
|
27
|
+
debug: Object.freeze({
|
|
28
|
+
input: e.XR_INPUT_DEBUG === "1",
|
|
29
|
+
scene: e.XR_SCENE_DEBUG === "1",
|
|
30
|
+
pixel: e.XR_PIXEL_DEBUG === "1",
|
|
31
|
+
gl: e.XR_GL_DEBUG === "1",
|
|
32
|
+
glTraceAll: e.XR_GL_TRACE === "all",
|
|
33
|
+
}),
|
|
34
|
+
});
|
|
35
|
+
return cached;
|
|
36
|
+
}
|
|
37
|
+
//# sourceMappingURL=config.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.js","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AA2BA,oFAAoF;AACpF,MAAM,UAAU,aAAa,CAAC,KAAyB;IACrD,IAAI,KAAK,KAAK,SAAS,IAAI,KAAK,KAAK,EAAE,IAAI,KAAK,KAAK,QAAQ;QAAE,OAAO,QAAQ,CAAC;IAC/E,IAAI,KAAK,KAAK,QAAQ;QAAE,OAAO,QAAQ,CAAC;IACxC,MAAM,IAAI,KAAK,CAAC,qBAAqB,KAAK,qBAAqB,CAAC,CAAC;AACnE,CAAC;AAiBD,IAAI,MAAM,GAAiB,IAAI,CAAC;AAEhC,MAAM,UAAU,KAAK;IACnB,IAAI,MAAM,KAAK,IAAI;QAAE,OAAO,MAAM,CAAC;IACnC,MAAM,CAAC,GAAG,OAAO,CAAC,GAAG,CAAC;IACtB,MAAM,KAAK,GAAG,MAAM,CAAC,CAAC,CAAC,eAAe,IAAI,GAAG,CAAC,CAAC;IAC/C,MAAM,SAAS,GAAG,MAAM,CAAC,CAAC,CAAC,aAAa,IAAI,KAAK,CAAC,CAAC;IACnD,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC;QACrB,OAAO,EAAE,CAAC,CAAC,UAAU,KAAK,MAAM,IAAI,CAAC,CAAC,UAAU,KAAK,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,MAAM;QAClF,WAAW,EAAE,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,KAAK,GAAG,CAAC,IAAI,KAAK,IAAI,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;QAC1E,MAAM,EAAE,CAAC,CAAC,SAAS,KAAK,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,KAAK,GAAG,CAAC,CAAC,CAAC,SAAS;QACnE,WAAW,EAAE,CAAC,CAAC,cAAc,KAAK,GAAG;QACrC,QAAQ,EAAE,aAAa,CAAC,CAAC,CAAC,WAAW,CAAC;QACtC,cAAc,EAAE,CAAC,CAAC,kBAAkB,KAAK,GAAG;QAC5C,kBAAkB,EAAE,CAAC,CAAC,aAAa,KAAK,GAAG;QAC3C,SAAS,EAAE,MAAM,CAAC,QAAQ,CAAC,SAAS,CAAC,IAAI,SAAS,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,GAAG;QACxE,GAAG,EAAE,CAAC,CAAC,MAAM,KAAK,SAAS,IAAI,CAAC,CAAC,MAAM,KAAK,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM;QACxE,UAAU,EAAE,CAAC,CAAC,cAAc,KAAK,GAAG;QACpC,KAAK,EAAE,MAAM,CAAC,MAAM,CAAC;YACnB,KAAK,EAAE,CAAC,CAAC,cAAc,KAAK,GAAG;YAC/B,KAAK,EAAE,CAAC,CAAC,cAAc,KAAK,GAAG;YAC/B,KAAK,EAAE,CAAC,CAAC,cAAc,KAAK,GAAG;YAC/B,EAAE,EAAE,CAAC,CAAC,WAAW,KAAK,GAAG;YACzB,UAAU,EAAE,CAAC,CAAC,WAAW,KAAK,KAAK;SACpC,CAAC;KACH,CAAC,CAAC;IACH,OAAO,MAAM,CAAC;AAChB,CAAC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import type { AppProfile } from "./profile.js";
|
|
2
|
+
export interface EnvReportData {
|
|
3
|
+
/** Build identity (package version + git rev) so target logs are
|
|
4
|
+
* self-describing — a stale deployment is visible at a glance. */
|
|
5
|
+
build: string;
|
|
6
|
+
profile: AppProfile;
|
|
7
|
+
cpuModel: string;
|
|
8
|
+
drmRenderNodes: string[];
|
|
9
|
+
xrRuntimeJson: string;
|
|
10
|
+
runtimeLibrary: string | null;
|
|
11
|
+
gl?: {
|
|
12
|
+
platform: string;
|
|
13
|
+
vendor: string;
|
|
14
|
+
renderer: string;
|
|
15
|
+
version: string;
|
|
16
|
+
software: boolean;
|
|
17
|
+
} | {
|
|
18
|
+
error: string;
|
|
19
|
+
};
|
|
20
|
+
openxr?: {
|
|
21
|
+
runtimeName: string;
|
|
22
|
+
runtimeVersion: string;
|
|
23
|
+
systemName?: string;
|
|
24
|
+
eyeRecommended?: string;
|
|
25
|
+
eyeMax?: string;
|
|
26
|
+
instanceExtensions?: string;
|
|
27
|
+
refreshRatesHz?: number[];
|
|
28
|
+
blendModes?: number[];
|
|
29
|
+
blendModeActive?: number;
|
|
30
|
+
} | {
|
|
31
|
+
error: string;
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Build identity of the APP being run, from its STAMPED BINARY (build.json
|
|
36
|
+
* written at build time next to the app's entry script, e.g. dist/main.js),
|
|
37
|
+
* with staleness detection against the live checkout. A runtime
|
|
38
|
+
* `git rev-parse` alone reports the checkout, not the compiled dist — an
|
|
39
|
+
* updated checkout with an unrebuilt dist would otherwise masquerade as the
|
|
40
|
+
* new build. Computed once (it runs git) and remembered.
|
|
41
|
+
*/
|
|
42
|
+
export declare function buildIdentity(): string;
|
|
43
|
+
export declare function collectStaticData(profile: AppProfile): EnvReportData;
|
|
44
|
+
export declare function printEnvReport(data: EnvReportData): void;
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Hardware/environment capability report — one human-readable block plus a
|
|
3
|
+
* single-line JSON form (XR_ENV_JSON=... on stdout) so logs from target
|
|
4
|
+
* machines can be collected and diffed easily. Data is filled in
|
|
5
|
+
* progressively as components initialize (static -> GL -> OpenXR).
|
|
6
|
+
*/
|
|
7
|
+
import { existsSync, readdirSync, readFileSync } from "node:fs";
|
|
8
|
+
import { cpus } from "node:os";
|
|
9
|
+
import { execSync } from "node:child_process";
|
|
10
|
+
import { dirname, join, resolve } from "node:path";
|
|
11
|
+
import { logger, rawLog } from "./log.js";
|
|
12
|
+
import { describeRuntimeManifest } from "./xr/xr-loader.js";
|
|
13
|
+
const mainLog = logger("main");
|
|
14
|
+
let identity;
|
|
15
|
+
/**
|
|
16
|
+
* Build identity of the APP being run, from its STAMPED BINARY (build.json
|
|
17
|
+
* written at build time next to the app's entry script, e.g. dist/main.js),
|
|
18
|
+
* with staleness detection against the live checkout. A runtime
|
|
19
|
+
* `git rev-parse` alone reports the checkout, not the compiled dist — an
|
|
20
|
+
* updated checkout with an unrebuilt dist would otherwise masquerade as the
|
|
21
|
+
* new build. Computed once (it runs git) and remembered.
|
|
22
|
+
*/
|
|
23
|
+
export function buildIdentity() {
|
|
24
|
+
identity ??= computeBuildIdentity();
|
|
25
|
+
return identity;
|
|
26
|
+
}
|
|
27
|
+
function computeBuildIdentity() {
|
|
28
|
+
// The app's entry script, not this module: nodexr-core is a library every
|
|
29
|
+
// app installs, and its own location says nothing about the app. Its root
|
|
30
|
+
// is the nearest folder with a package.json (dist/main.js, src/main.ts and
|
|
31
|
+
// src/tools/*.ts alike).
|
|
32
|
+
const entryDir = dirname(resolve(process.argv[1] ?? "."));
|
|
33
|
+
let root = entryDir;
|
|
34
|
+
while (!existsSync(join(root, "package.json")) && dirname(root) !== root)
|
|
35
|
+
root = dirname(root);
|
|
36
|
+
let pkgVersion = "?";
|
|
37
|
+
try {
|
|
38
|
+
pkgVersion = JSON.parse(readFileSync(join(root, "package.json"), "utf8")).version;
|
|
39
|
+
}
|
|
40
|
+
catch {
|
|
41
|
+
// packaged layout without package.json
|
|
42
|
+
}
|
|
43
|
+
// Prefer the stamp next to the entry script (dist/ for compiled runs),
|
|
44
|
+
// then the root's (source/tsx runs).
|
|
45
|
+
let stamp = null;
|
|
46
|
+
for (const dir of [entryDir, root]) {
|
|
47
|
+
try {
|
|
48
|
+
stamp = JSON.parse(readFileSync(join(dir, "build.json"), "utf8"));
|
|
49
|
+
break;
|
|
50
|
+
}
|
|
51
|
+
catch {
|
|
52
|
+
// no stamp there
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
// Compare against the app's OWN checkout only: a package (scripts/
|
|
56
|
+
// package.sh) is not tracked by git, and git would otherwise walk up into
|
|
57
|
+
// whatever repository it was unpacked in (apps/demo-app/out/ included).
|
|
58
|
+
let checkoutRev = "unknown";
|
|
59
|
+
try {
|
|
60
|
+
execSync("git ls-files --error-unmatch package.json", { cwd: root, stdio: "ignore" });
|
|
61
|
+
checkoutRev = execSync("git rev-parse --short HEAD", { cwd: root, stdio: ["ignore", "pipe", "ignore"] })
|
|
62
|
+
.toString()
|
|
63
|
+
.trim();
|
|
64
|
+
}
|
|
65
|
+
catch {
|
|
66
|
+
// not a git checkout
|
|
67
|
+
}
|
|
68
|
+
if (stamp?.rev !== undefined && stamp.rev !== "unknown" && checkoutRev !== "unknown" && stamp.rev !== checkoutRev) {
|
|
69
|
+
mainLog.warn(`STALE BUILD: binary is ${stamp.rev} but the checkout is ${checkoutRev} — rerun npm run build`);
|
|
70
|
+
return `v${pkgVersion} (binary ${stamp.rev}, checkout ${checkoutRev} — STALE)`;
|
|
71
|
+
}
|
|
72
|
+
const rev = (stamp?.rev ?? checkoutRev) + (stamp?.dirty === true ? "+dirty" : "");
|
|
73
|
+
// Full timestamp (to the minute): uncommitted work keeps the rev fixed,
|
|
74
|
+
// and a date-only stamp cannot tell same-day builds apart.
|
|
75
|
+
const age = stamp?.builtAt ? `, built ${stamp.builtAt.slice(0, 16).replace("T", " ")}Z` : "";
|
|
76
|
+
return `v${pkgVersion} (git ${rev}${age}${checkoutRev === "unknown" ? ", packaged" : ""})`;
|
|
77
|
+
}
|
|
78
|
+
export function collectStaticData(profile) {
|
|
79
|
+
let drmRenderNodes = [];
|
|
80
|
+
try {
|
|
81
|
+
drmRenderNodes = readdirSync("/dev/dri").filter((n) => n.startsWith("render"));
|
|
82
|
+
}
|
|
83
|
+
catch {
|
|
84
|
+
drmRenderNodes = [];
|
|
85
|
+
}
|
|
86
|
+
const { manifestPath, libraryPath: runtimeLibrary } = describeRuntimeManifest();
|
|
87
|
+
return {
|
|
88
|
+
build: buildIdentity(),
|
|
89
|
+
profile,
|
|
90
|
+
cpuModel: cpus()[0]?.model ?? "unknown",
|
|
91
|
+
drmRenderNodes,
|
|
92
|
+
xrRuntimeJson: manifestPath,
|
|
93
|
+
runtimeLibrary,
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
export function printEnvReport(data) {
|
|
97
|
+
const lines = [];
|
|
98
|
+
lines.push("== environment report ==");
|
|
99
|
+
lines.push(`build : ${data.build}`);
|
|
100
|
+
lines.push(`profile : ${data.profile.requested} -> ${data.profile.mode} (renderScale=${data.profile.renderScale}, timing=${data.profile.timing})`);
|
|
101
|
+
lines.push(`cpu : ${data.cpuModel}`);
|
|
102
|
+
lines.push(`drm nodes : ${data.drmRenderNodes.join(", ") || "none"}`);
|
|
103
|
+
lines.push(`xr manifest : ${data.xrRuntimeJson} -> ${data.runtimeLibrary ?? "?"}`);
|
|
104
|
+
if (data.gl !== undefined) {
|
|
105
|
+
const g = data.gl;
|
|
106
|
+
lines.push("gl/egl : " +
|
|
107
|
+
("error" in g
|
|
108
|
+
? `ERROR ${g.error}`
|
|
109
|
+
: `${g.platform} vendor=${g.vendor} renderer=${g.renderer}${g.software ? " (SOFTWARE)" : ""} version=${g.version}`));
|
|
110
|
+
}
|
|
111
|
+
if (data.openxr !== undefined) {
|
|
112
|
+
const x = data.openxr;
|
|
113
|
+
lines.push("openxr : " +
|
|
114
|
+
("error" in x
|
|
115
|
+
? `ERROR ${x.error}`
|
|
116
|
+
: `${x.runtimeName} ${x.runtimeVersion}` +
|
|
117
|
+
(x.systemName ? ` system="${x.systemName}"` : "") +
|
|
118
|
+
(x.eyeRecommended ? ` eyes(recommended)=${x.eyeRecommended}` : "") +
|
|
119
|
+
(x.blendModes ? ` blend=[${x.blendModes.join(",")}] active=${x.blendModeActive}` : "") +
|
|
120
|
+
(x.eyeMax ? ` max=${x.eyeMax}` : "") +
|
|
121
|
+
(x.refreshRatesHz ? ` refreshHz=[${x.refreshRatesHz.join(",")}]` : "")));
|
|
122
|
+
}
|
|
123
|
+
for (const key of Object.keys(process.env)) {
|
|
124
|
+
if (key.startsWith("XR_")) {
|
|
125
|
+
lines.push(`env ${key.padEnd(14)}: ${process.env[key]}`);
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
rawLog(lines.join("\n"));
|
|
129
|
+
rawLog(`XR_ENV_JSON=${JSON.stringify(data)}`);
|
|
130
|
+
}
|
|
131
|
+
//# sourceMappingURL=env-report.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"env-report.js","sourceRoot":"","sources":["../src/env-report.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAChE,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAE/B,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACnD,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAC1C,OAAO,EAAE,uBAAuB,EAAE,MAAM,mBAAmB,CAAC;AAE5D,MAAM,OAAO,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC;AAmC/B,IAAI,QAA4B,CAAC;AAEjC;;;;;;;GAOG;AACH,MAAM,UAAU,aAAa;IAC3B,QAAQ,KAAK,oBAAoB,EAAE,CAAC;IACpC,OAAO,QAAQ,CAAC;AAClB,CAAC;AAED,SAAS,oBAAoB;IAC3B,0EAA0E;IAC1E,0EAA0E;IAC1E,2EAA2E;IAC3E,yBAAyB;IACzB,MAAM,QAAQ,GAAG,OAAO,C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I,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC;QAC3C,IAAI,GAAG,CAAC,UAAU,CAAC,KAAK,CAAC,EAAE,CAAC;YAC1B,KAAK,CAAC,IAAI,CAAC,OAAO,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,KAAK,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;QAC3D,CAAC;IACH,CAAC;IACD,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;IACzB,MAAM,CAAC,eAAe,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAChD,CAAC"}
|
package/dist/ffi.d.ts
ADDED
package/dist/ffi.js
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/** koffi helpers shared by the native bindings (OpenXR, GLES, EGL). */
|
|
2
|
+
import koffi from "koffi";
|
|
3
|
+
// koffi type names are process-global: registering a named prototype twice
|
|
4
|
+
// throws, so every prototype goes through this cache.
|
|
5
|
+
const protoCache = new Map();
|
|
6
|
+
/** The koffi prototype for a C declaration, registered once per process. */
|
|
7
|
+
export function cachedProto(declaration) {
|
|
8
|
+
let proto = protoCache.get(declaration);
|
|
9
|
+
if (proto === undefined) {
|
|
10
|
+
proto = koffi.proto(declaration);
|
|
11
|
+
protoCache.set(declaration, proto);
|
|
12
|
+
}
|
|
13
|
+
return proto;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=ffi.js.map
|
package/dist/ffi.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ffi.js","sourceRoot":"","sources":["../src/ffi.ts"],"names":[],"mappings":"AAAA,uEAAuE;AACvE,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,2EAA2E;AAC3E,sDAAsD;AACtD,MAAM,UAAU,GAAG,IAAI,GAAG,EAA0C,CAAC;AAErE,4EAA4E;AAC5E,MAAM,UAAU,WAAW,CAAC,WAAmB;IAC7C,IAAI,KAAK,GAAG,UAAU,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;IACxC,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;QACxB,KAAK,GAAG,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC;QACjC,UAAU,CAAC,GAAG,CAAC,WAAW,EAAE,KAAK,CAAC,CAAC;IACrC,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC"}
|
package/dist/log.d.ts
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Channel loggers. Every line keeps the "[channel] message" format that the
|
|
3
|
+
* headset procedure (docs/target-testing.md) greps for — keep channel names
|
|
4
|
+
* stable.
|
|
5
|
+
*
|
|
6
|
+
* const log = logger("session"); log.info("session begun") -> "[session] session begun"
|
|
7
|
+
* const dbg = debugLogger("input", "pose:debug"); silent unless XR_INPUT_DEBUG=1
|
|
8
|
+
* if (dbg.enabled) { ...expensive diagnostics...; dbg.info(...) }
|
|
9
|
+
*
|
|
10
|
+
* A message starting with "\n" is attached without the separating space
|
|
11
|
+
* ("[timing]\n<table>"). Non-string first arguments are passed through
|
|
12
|
+
* after the tag. Unprefixed machine-readable output (XR_ENV_JSON=...) uses
|
|
13
|
+
* rawLog.
|
|
14
|
+
*/
|
|
15
|
+
import { type XrEnv } from "./config.js";
|
|
16
|
+
export interface Logger {
|
|
17
|
+
readonly enabled: boolean;
|
|
18
|
+
info(message: unknown, ...rest: unknown[]): void;
|
|
19
|
+
warn(message: unknown, ...rest: unknown[]): void;
|
|
20
|
+
error(message: unknown, ...rest: unknown[]): void;
|
|
21
|
+
}
|
|
22
|
+
export declare function logger(channel: string): Logger;
|
|
23
|
+
/** A channel that only logs when the given XR_*_DEBUG flag (config.ts) is on. */
|
|
24
|
+
export declare function debugLogger(flag: keyof XrEnv["debug"], channel: string): Logger;
|
|
25
|
+
/** Untagged output (multi-line reports, machine-readable lines). */
|
|
26
|
+
export declare function rawLog(text: string): void;
|
package/dist/log.js
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Channel loggers. Every line keeps the "[channel] message" format that the
|
|
3
|
+
* headset procedure (docs/target-testing.md) greps for — keep channel names
|
|
4
|
+
* stable.
|
|
5
|
+
*
|
|
6
|
+
* const log = logger("session"); log.info("session begun") -> "[session] session begun"
|
|
7
|
+
* const dbg = debugLogger("input", "pose:debug"); silent unless XR_INPUT_DEBUG=1
|
|
8
|
+
* if (dbg.enabled) { ...expensive diagnostics...; dbg.info(...) }
|
|
9
|
+
*
|
|
10
|
+
* A message starting with "\n" is attached without the separating space
|
|
11
|
+
* ("[timing]\n<table>"). Non-string first arguments are passed through
|
|
12
|
+
* after the tag. Unprefixed machine-readable output (XR_ENV_JSON=...) uses
|
|
13
|
+
* rawLog.
|
|
14
|
+
*/
|
|
15
|
+
import { xrEnv } from "./config.js";
|
|
16
|
+
function tagged(tag, sink) {
|
|
17
|
+
return (message, ...rest) => {
|
|
18
|
+
if (typeof message === "string") {
|
|
19
|
+
sink(`${tag}${message.startsWith("\n") ? "" : " "}${message}`, ...rest);
|
|
20
|
+
}
|
|
21
|
+
else {
|
|
22
|
+
sink(tag, message, ...rest);
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
const noop = () => { };
|
|
27
|
+
export function logger(channel) {
|
|
28
|
+
const tag = `[${channel}]`;
|
|
29
|
+
// console.* is looked up per call, not captured: tests and tools that
|
|
30
|
+
// intercept console.log (e.g. controller-log-smoke) must still see lines.
|
|
31
|
+
return {
|
|
32
|
+
enabled: true,
|
|
33
|
+
info: tagged(tag, (...a) => console.log(...a)),
|
|
34
|
+
warn: tagged(tag, (...a) => console.warn(...a)),
|
|
35
|
+
error: tagged(tag, (...a) => console.error(...a)),
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
/** A channel that only logs when the given XR_*_DEBUG flag (config.ts) is on. */
|
|
39
|
+
export function debugLogger(flag, channel) {
|
|
40
|
+
// Lazy: config may legitimately be set in a script body after imports.
|
|
41
|
+
let resolved = null;
|
|
42
|
+
const get = () => (resolved ??= xrEnv().debug[flag] ? logger(channel) : { enabled: false, info: noop, warn: noop, error: noop });
|
|
43
|
+
return {
|
|
44
|
+
get enabled() {
|
|
45
|
+
return get().enabled;
|
|
46
|
+
},
|
|
47
|
+
info: (m, ...r) => get().info(m, ...r),
|
|
48
|
+
warn: (m, ...r) => get().warn(m, ...r),
|
|
49
|
+
error: (m, ...r) => get().error(m, ...r),
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
/** Untagged output (multi-line reports, machine-readable lines). */
|
|
53
|
+
export function rawLog(text) {
|
|
54
|
+
console.log(text);
|
|
55
|
+
}
|
|
56
|
+
//# sourceMappingURL=log.js.map
|
package/dist/log.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"log.js","sourceRoot":"","sources":["../src/log.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH,OAAO,EAAE,KAAK,EAAc,MAAM,aAAa,CAAC;AAWhD,SAAS,MAAM,CAAC,GAAW,EAAE,IAAU;IACrC,OAAO,CAAC,OAAO,EAAE,GAAG,IAAI,EAAE,EAAE;QAC1B,IAAI,OAAO,OAAO,KAAK,QAAQ,EAAE,CAAC;YAChC,IAAI,CAAC,GAAG,GAAG,GAAG,OAAO,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,GAAG,OAAO,EAAE,EAAE,GAAG,IAAI,CAAC,CAAC;QAC1E,CAAC;aAAM,CAAC;YACN,IAAI,CAAC,GAAG,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC,CAAC;QAC9B,CAAC;IACH,CAAC,CAAC;AACJ,CAAC;AAED,MAAM,IAAI,GAAG,GAAS,EAAE,GAAE,CAAC,CAAC;AAE5B,MAAM,UAAU,MAAM,CAAC,OAAe;IACpC,MAAM,GA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