Skip to content
This repository was archived by the owner on Jun 18, 2021. It is now read-only.

Add bindings for raw vulkan types #919

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,6 @@ Cargo.lock

# Output from capture example
red.png

# OpenXR loader runtime for VR examples
openxr_loader.dll
13 changes: 7 additions & 6 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,24 +25,22 @@ cross = ["wgc/cross"]

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.wgc]
package = "wgpu-core"
git = "https://github.com/gfx-rs/wgpu"
rev = "7ce535cc97958d8e224247764f3d57c162594504"
path = "../wgpu/wgpu-core"
features = ["raw-window-handle"]

[target.'cfg(target_arch = "wasm32")'.dependencies.wgc]
package = "wgpu-core"
git = "https://github.com/gfx-rs/wgpu"
rev = "7ce535cc97958d8e224247764f3d57c162594504"
path = "../wgpu/wgpu-core"
features = ["raw-window-handle"]
optional = true

[dependencies.wgt]
package = "wgpu-types"
git = "https://github.com/gfx-rs/wgpu"
rev = "7ce535cc97958d8e224247764f3d57c162594504"
path = "../wgpu/wgpu-types"

[dependencies]
arrayvec = "0.5"
ash = "0.32"
log = "0.4"
parking_lot = "0.11"
raw-window-handle = "0.3"
Expand All @@ -59,6 +57,9 @@ obj = "0.10"
png = "0.16"
rand = { version = "0.7.2", features = ["wasm-bindgen"] }
winit = { version = "0.24", features = ["web-sys"] }
# used in vr examples
ash = "0.32"
openxr = "0.14"

[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies]
async-executor = "1.0"
Expand Down
11 changes: 11 additions & 0 deletions examples/hello-vr-triangle/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# hello-vr-triangle

This example renders a triangle to a VR HMD and window.

## To Run

[Download](https://github.com/KhronosGroup/OpenXR-SDK/releases) and place openxr_loader.dll in workspace root.

```
cargo run --example hello-vr-triangle
```
Loading