@kirknock/node-openxr-dawn 0.3.3 → 0.3.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/README.md +21 -1
- package/dawn.node +0 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -27,10 +27,30 @@ const dawn = require('@kirknock/node-openxr-dawn'); // { create, globals, xr }
|
|
|
27
27
|
| Repository | https://dawn.googlesource.com/dawn |
|
|
28
28
|
| Branch | `main` (first in Chromium release branch `chromium/8144`) |
|
|
29
29
|
| Commit | [`0a17724d8378360d9c2235d87a5d6e19a6b6b262`](https://dawn.googlesource.com/dawn/+/0a17724d8378360d9c2235d87a5d6e19a6b6b262) (2026-11-04) |
|
|
30
|
-
| Patches | `third_party/dawn/patches/0001-openxr-swapchain-interop.patch` |
|
|
30
|
+
| Patches | `third_party/dawn/patches/0001-openxr-swapchain-interop.patch`, `0002-tier1-storage-formats-without-feature.patch` |
|
|
31
31
|
|
|
32
32
|
The commit is pinned in `third_party/dawn/COMMIT`; update this table when it changes.
|
|
33
33
|
|
|
34
|
+
### What the patches change
|
|
35
|
+
|
|
36
|
+
- **0001, OpenXR swapchain interop:** the Vulkan backend can create its instance
|
|
37
|
+
and device through `XR_KHR_vulkan_enable2`, and wrap OpenXR swapchain
|
|
38
|
+
`VkImage`s as WebGPU textures.
|
|
39
|
+
- **0002, the storage formats of `texture-formats-tier1` without the feature:**
|
|
40
|
+
Dawn offers `texture-formats-tier1` only when the GPU supports every format
|
|
41
|
+
it covers, including rendering and blending the snorm formats. Without the
|
|
42
|
+
feature, none of its formats can be a storage texture, so `r8unorm` storage
|
|
43
|
+
textures fail even on GPUs that support them. Mesa's lavapipe, for one,
|
|
44
|
+
supports every format as a storage image but can't blend snorm formats.
|
|
45
|
+
With this patch, the Vulkan backend accepts each of these formats as a
|
|
46
|
+
read-only or write-only storage texture when the GPU reports
|
|
47
|
+
`shaderStorageImageExtendedFormats` and `STORAGE_IMAGE` support for it.
|
|
48
|
+
The device's features stay as Dawn reports them, so `texture-formats-tier1`
|
|
49
|
+
is still missing on such GPUs. Dawn now accepts those textures, where a
|
|
50
|
+
browser's WebGPU would report a validation error. Babylon.js's IBL shadows
|
|
51
|
+
need this: they write their voxel grid to an `r8unorm` 3D storage texture
|
|
52
|
+
without checking for the feature.
|
|
53
|
+
|
|
34
54
|
## Building
|
|
35
55
|
|
|
36
56
|
```bash
|
package/dawn.node
CHANGED
|
Binary file
|
package/package.json
CHANGED