adding wgpu to fully qualify `include_wgsl!` macro as part of #423

pull/425/head
Benjamin Hansen 1 year ago
parent 3066150570
commit 714ea27bc2

7
.gitignore vendored

@ -12,4 +12,9 @@ output/
secrets.txt secrets.txt
tree.txt tree.txt
Chunk* Chunk*
.yarn/*
!.yarn/releases
!.yarn/plugins
.pnp.*

@ -0,0 +1 @@
nodeLinker: node-modules

@ -181,7 +181,7 @@ let shader = device.create_shader_module(wgpu::ShaderModuleDescriptor {
You can also use `include_wgsl!` macro as a small shortcut to create the `ShaderModuleDescriptor`. You can also use `include_wgsl!` macro as a small shortcut to create the `ShaderModuleDescriptor`.
```rust ```rust
let shader = device.create_shader_module(include_wgsl!("shader.wgsl")); let shader = device.create_shader_module(wgpu::include_wgsl!("shader.wgsl"));
``` ```
</div> </div>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 333 B

Loading…
Cancel
Save