Enable OpenXR backend from the WebXR crate (#32817)

* Enable OpenXR backend from the WebXR crate

Signed-off-by: Daniel Adams <msub2official@gmail.com>

* Ensure openxr feature is only included on windows

Signed-off-by: Daniel Adams <msub2official@gmail.com>

* Add cfgs for OpenXR usages

Signed-off-by: Daniel Adams <msub2official@gmail.com>

---------

Signed-off-by: Daniel Adams <msub2official@gmail.com>
This commit is contained in:
Daniel Adams 2024-07-19 20:24:40 -10:00 committed by GitHub
parent a29e5c8115
commit 9212ed203a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 56 additions and 6 deletions

24
Cargo.lock generated
View file

@ -4449,6 +4449,27 @@ version = "1.19.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3fdb12b2476b595f9358c5161aa467c2438859caa136dec86c26fdd2efe17b92"
[[package]]
name = "openxr"
version = "0.18.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3a03958eb34719625119448d483ebd2fe008a2128b6286f2a7138b7e48072053"
dependencies = [
"libc",
"libloading",
"ndk-context",
"openxr-sys",
]
[[package]]
name = "openxr-sys"
version = "0.10.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1534b2c14b56564e58b91f5015817e1d87bd43ca12a188eda6a9ea3859b0ec25"
dependencies = [
"libc",
]
[[package]]
name = "option-operations"
version = "0.5.0"
@ -7354,11 +7375,14 @@ dependencies = [
"gl_generator",
"gvr-sys",
"log",
"openxr",
"serde",
"sparkle",
"surfman",
"time 0.1.45",
"webxr-api",
"winapi",
"wio",
]
[[package]]