Files
wgpu/examples/hello-triangle
Joshua Groves 8d5ef65dcb Temporarily use BackendBit::PRIMARY in examples
`BackendBit::all()` allows GL/surfman to be used on macOS which appears
to prevent rendering with Metal (e.g. hello-triangle displays an empty
window).

surfman will be removed in later versions of gfx, which will allow us
to switch back to `BackendBit::all()` in the examples.
2020-11-20 23:33:10 -03:30
..
2020-04-26 18:59:48 -02:30
2020-04-26 18:59:48 -02:30

hello-triangle

This example renders a triangle to a window.

To Run

cargo run --example hello-triangle

Screenshots

Triangle window