Mention include_wgsl!

pull/298/head
Hiroaki Yutani 2 years ago
parent eaeb7931a1
commit 2dcbfbe01e

@ -146,6 +146,17 @@ let shader = device.create_shader_module(&wgpu::ShaderModuleDescriptor {
});
```
<div class="note">
You can also use `include_wgsl!` macro as a small shortcut to create the `ShaderModuleDescriptor`.
```rust
let shader = device.create_shader_module(&include_wgsl!("shader.wgsl"));
```
</div>
One more thing, we need to create a `PipelineLayout`. We'll get more into this after we cover `Buffer`s.
```rust

Loading…
Cancel
Save