mirror of
https://github.com/sotrh/learn-wgpu.git
synced 2024-11-04 06:00:47 +00:00
Merge pull request #355 from lidongjies/fix/showcase-windowless
Fix windowless showcase
This commit is contained in:
commit
718123dede
@ -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]]
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user