@kirknock/node-openxr-webgpu
v0.3.1
Published
The WebGPU renderer: Dawn's navigator.gpu on the device OpenXR created, rendering zero-copy into a Vulkan swapchain (XR_KHR_vulkan_enable2).
Maintainers
Readme
@kirknock/node-openxr-webgpu
The WebGPU renderer: startNodeXRWebGPU() (platform.ts), Dawn's
navigator.gpu on the device OpenXR created (dawn.ts), a Vulkan session
with one array-layer swapchain (native/), and XRGPUBinding on IWER
(xr/). Rendering is zero-copy into the OpenXR Vulkan swapchain
(XR_KHR_vulkan_enable2). Tool: probe-webgpu-xr.
Linux x64 (glibc) only: needs a Vulkan driver, the patched dawn.node from
@kirknock/node-openxr-dawn
and, for XR sessions, an OpenXR runtime.
Install
npm install @kirknock/node-openxr-webgpu @kirknock/node-openxr-core @kirknock/node-openxr-dawn @babylonjs/[email protected] [email protected] [email protected]@kirknock/node-openxr-dawn is an optional peer dependency: the package
loads without it, but WebGPU runs fail.
Modules are imported by path, e.g.
@kirknock/node-openxr-webgpu/platform.js.
Development
npm ci
npm run build # dist/
npm run lint && npm run typecheck
npm run test:pure # WebXR Layers + XRGPUBinding on IWER with a mock GPUDevice; runs anywhere
npm run test:webgpu # patched Dawn, a Vulkan device and a live OpenXR runtime (XR_RUNTIME_JSON)
npm run push # build + yalc push to local consumersTests run on the nodexr-test runner from
@kirknock/node-openxr-core.
Releasing
Bump version in package.json, commit, then push a matching tag:
npm version patch # or minor / major / prerelease --preid beta
git push --follow-tagsThe Release workflow checks the tag, lints, runs the pure tests and the
Dawn wrap smoke on Mesa lavapipe, publishes to npm via trusted publishing
(with provenance) and creates a GitHub release with the tarball attached.
License
MIT
