Support WarningWebGPU is currently only supported on Chrome starting with version 113, and only on desktop. If they don't work on your configuration, you can check the WebGL2 examples here.
//! This example illustrates how to create a custom diagnostic. use ; // All diagnostics should have a unique DiagnosticId. // For each new diagnostic, generate a new random number. pub const SYSTEM_ITERATION_COUNT: DiagnosticId = from_u128;