Skip to content

Commit 94ad8a5

Browse files
authored
Enable Vulkan for WGPU runner (#852)
* Enable Vulkan for WGPU runner Metal doesn't support SPIR-V shader passthrough, so on macOS using WGPU runner you get following error with any example: ``` Features SPIRV_SHADER_PASSTHROUGH are required but not enabled on the device ``` Vulkan supports shader passthrough, but requires compatibility layer of MoltenVK to work, which needs to be installed on the host machine. Currently this feature is only available on master. * Update examples Cargo lockfile
1 parent 4932a44 commit 94ad8a5

File tree

2 files changed

+13
-26
lines changed

2 files changed

+13
-26
lines changed

Cargo.lock

Lines changed: 11 additions & 25 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/runners/wgpu/Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ use-compiled-tools = ["spirv-builder/use-compiled-tools"]
1919
cfg-if = "1.0.0"
2020
shared = { path = "../../shaders/shared" }
2121
futures = { version = "0.3", default-features = false, features = ["std", "executor"] }
22-
wgpu = { version = "0.12", features = ["spirv"] }
22+
# Vulkan SDK or MoltenVK needs to be installed for `vulkan-portability` to work on macOS
23+
wgpu = { git = "https://github.com/gfx-rs/wgpu", features = ["spirv", "vulkan-portability"] }
2324
winit = { version = "0.26" }
2425
structopt = "0.3"
2526
strum = { version = "0.23.0", default_features = false, features = ["std", "derive"] }

0 commit comments

Comments
 (0)