learn-wgpu
learn-wgpu copied to clipboard
Guide for using gfx-rs's wgpu library.
The alternative code path missed the 0.13 update.
You talk about bytemuck problems with #[repr(C, align(16))] here: https://sotrh.github.io/learn-wgpu/showcase/alignment/#alignment-of-vertex-and-index-buffers This might be solved as per: https://github.com/Lokathor/bytemuck/issues/129 Just a FYI. Thanks for your excellent 'learn-wgpu'!
Thanks for the excellent tutorial on wgpu! While going through the tutorial, I noticed that the unimplemented `input` method is called in the sample code after the explanation of the...
In load_model, it is presumed that the mesh has normal's. If a model is loaded which doesn't have them it panics with an out of bounds exception. ``` let vertices...
Apparently winit-0.28.7 resolves a problem where an invalid resize request would happen on macOS Sonoma. This resolves issue #533 See here for details: https://github.com/rust-windowing/winit/issues/2876
According to winit’s developers, it’s not permitted to create a surface on many platforms (Mac and android for example) until the Event::Resumed winit event is posted. This is a bummer...
It looks like there's a resize call with invalid dimensions that happens soon after the program starts up. The messages starting with "Creating depth texture..." are from a `println!` I...
You pass in `wgpu::Backends::all()` will creating your instance. However, this creates Vulkan, DirectX12 and OpenGL backends on Windows and causes a crash on shutdown on the lastest WGPU. I think...
The `glam` crate is a replacement for the functionality provided by the abandoned `cgmath` crate. It has the advantages of using WebGPU perspective conventions as well as implementing `bytemuck` traits....
The current [Wgpu without a window](https://sotrh.github.io/learn-wgpu/showcase/windowless/) code example does not work when compiling to wasm and running in a browser. Specially, copying data from the buffer using futures_intrusive::channel::shared::oneshot_channel() seems to...