This example is running in WebGL2 and should work in most browsers. You can check the WebGPU examples here.
//! This example illustrates how to resize windows, and how to respond to a window being resized. use ; /// Marker component for the text that displays the current resolution. ; /// Stores the various window-resolutions we can select between. // Spawns the camera that draws UI // Spawns the UI /// This system shows how to request the window to a new resolution /// This system shows how to respond to a window being resized. /// Whenever the window is resized, the text will update with the new resolution.