Files
wgpu/examples/features/src/hello_triangle
Kamil Jarosz 43eb6c99b0 examples: Call pre_present_notify before presenting (#7074)
According to winit docs, pre_present_notify() should be called right
before calling present().

This actually prevents some issues on Wayland, like freezing the whole
application when the window is not visible (ask me how I know).
2025-02-10 08:19:54 +00:00
..
2025-01-20 18:07:22 -05:00
2025-01-20 18:07:22 -05:00
2025-01-20 18:07:22 -05:00

hello_triangle

This example renders a triangle to a window.

To Run

cargo run --bin wgpu-examples hello_triangle

Screenshots

Triangle window