https://github.com/niklaskorz/rustlab2024-wgpu
Exercise templates for my wgpu workshop at RustLab 2024
https://github.com/niklaskorz/rustlab2024-wgpu
Last synced: 10 months ago
JSON representation
Exercise templates for my wgpu workshop at RustLab 2024
- Host: GitHub
- URL: https://github.com/niklaskorz/rustlab2024-wgpu
- Owner: niklaskorz
- License: mit
- Created: 2024-11-02T10:19:55.000Z (over 1 year ago)
- Default Branch: ch1
- Last Pushed: 2024-11-09T17:31:31.000Z (over 1 year ago)
- Last Synced: 2025-01-11T03:54:02.822Z (over 1 year ago)
- Language: Rust
- Homepage:
- Size: 45.9 KB
- Stars: 5
- Watchers: 2
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# RustLab 2024 wgpu workshop
Chapters:
1. Basics of wgpu
2. Tracing rays (with compute shaders)
3. Bringing it to the web (with WebAssembly)
Checkout the respective branch for the chapter you are currently working on (ch1, ch2 or ch3).
## Chapter 1
Tasks:
1. Try running the application with `cargo run` to ensure your setup is working.
2. Implement methods in `src/application.rs`
- `Application::new`
- `Application::render`
- `Application::resize`
- Every method has an enumerated list of tasks required to finish the implementation.
- After every method, try running your application to check for validation errors.
3. Implement the shader in `src/application.wgsl`
- The shader lists the required tasks that are needed to complete the implementation.
- Try to get creative and find out what else you can draw using just the fragment shader.