Merge pull request #355 from lidongjies/fix/showcase-windowless

Fix windowless showcase
This commit is contained in:
sotrh 2022-05-14 12:44:50 -06:00 committed by GitHub
commit 718123dede
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 4 deletions

View File

@ -8,11 +8,8 @@ edition = "2018"
[dependencies]
image = "0.23"
raw-window-handle = "0.3"
winit = "0.26"
shaderc = "0.7"
cgmath = "0.18"
wgpu = "0.12"
wgpu = { version = "0.12", features = ["spirv"] }
pollster = "0.2"
[[bin]]

View File

@ -94,6 +94,16 @@ void main() {
}
```
Update dependencies to support SPIR-V module.
```toml
[dependencies]
image = "0.23"
shaderc = "0.7"
wgpu = { version = "0.12", features = ["spirv"] }
pollster = "0.2"
```
Using that we'll create a simple `RenderPipeline`.
```rust