This example is running in WebGL2 and should work in most browsers. You can check the WebGPU examples here.
//! This example illustrates how to create UI text and update it in a system. //! //! It displays the current FPS in the top left corner, as well as text that changes color //! in the bottom right. For text within a scene, please see the text2d example. use ; // A unit struct to help identify the FPS UI component, since there may be many Text components ; // A unit struct to help identify the color-changing Text component ;