Minimal (non-wasm32) wgpu example?

I need minimal code that runs wgpu on x86_64 (clear screen, draw triangle).

I use to be using this tutorial: Dependencies and the window | Learn Wgpu which was great for wasm32, but not working for me on x86_64 (creates window, but does not clear screen, and draws nothing).

Googling, there is this outdated example:

Is there a minimal example elsewhere, or is the above hello-triangle/main.rs the way to go ?

Thanks!

[ just need a minimal wgpu clear screen + draw triangle on x86_64 to work, so I can port other code over ]

Something like the hello-triangle example?

https://github.com/gfx-rs/wgpu/tree/trunk/examples/hello-triangle

1 Like

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.