Files
wgpu/wgpu/examples/hello-windows
Kevin Reid 2209463a54 Return an error instead of panicking when canvas context is unavailable (#3052)
* Low-level error handling in canvas context creation (for WebGPU and WebGL 2).

Part of fixing #3017. This commit changes the handling of `web_sys`
errors and nulls from `expect()` to returning `Err`, but it doesn't
actually affect the public API — that will be done in the next commit.

* Breaking: Change type of `create_surface()` functions to expose canvas errors.

Part of fixing #3017.
2022-11-30 23:41:29 -05:00
..
2020-09-10 06:55:42 +07:00
2020-09-10 06:55:42 +07:00

hello-windows

This example renders a set of 16 windows, with a differently colored background

To Run

cargo run --example hello-windows

Screenshots

16 windows