learn-wgpu
learn-wgpu copied to clipboard
Guide for using gfx-rs's wgpu library.
https://github.com/sotrh/learn-wgpu/blob/11820796f5e1dbce42fb1119f04ddeb4b167d2a0/docs/beginner/tutorial4-buffer/README.md?plain=1#L432 Web colors are in srgb. So #BC00BC is not decimal (188, 0, 188) in rgb, but in srgb. The shown formula for transformation transforms srgb to linear rgb. Note...
In the Surface chapter, when explaining `power_preference`, the last sentence is not clear: > * `power_preference` has two variants: `LowPower`, and `HighPerformance`. `LowPower` will pick an adapter that favors battery...
I have been working from the base work of @whoisryosuke's [play/gltf-r2](https://github.com/whoisryosuke/wgpu-hello-world/tree/play/gltf-r2) on loading assets of .glb format and .gltf format I think it works quite well and if you'd like...
Would be cool to show how to go from mouse click to 3d point and ray direction so that if people wanted to select something in 3d they could. This...
Since the Remove of `WindowBuilder` in Winit 0.30.0, the complete section https://sotrh.github.io/learn-wgpu/beginner/tutorial1-window/#the-code is no longer working. Instead the complete Initialization process needs to be updated. e.g. this minimal implementation works...
The sample code didn't compile without these being added.
### ScaleFactorChanged ScaleFactorChanged doesn't have the same signature. The default implementation as of `winit "0.29"` automatically resizes the window and triggers a Resized event on ScaleFactorChanged. See https://docs.rs/winit/latest/winit/event/enum.WindowEvent.html#variant.ScaleFactorChanged ### MainEventsCleared...
Bumps [ws](https://github.com/websockets/ws) from 6.2.2 to 6.2.3. Release notes Sourced from ws's releases. 6.2.3 Bug fixes Backported e55e5106 to the 6.x release line (eeb76d31). Commits d87f3b6 [dist] 6.2.3 eeb76d3 [security] Fix...
I am using winit version 0.29 and when I write the following code following the tutorial called "The Surface": ```rust event_loop .run(move |event, control_flow| { match event { Event::WindowEvent {...