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/ the way to go ?


[ 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?

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.