This example is running in WebGL2 and should work in most browsers. You can check the WebGPU examples here.
custom_diagnostic.rs:
//! This example illustrates how to create a custom diagnostic.
use ;
// All diagnostics should have a unique DiagnosticPath.
const SYSTEM_ITERATION_COUNT: DiagnosticPath = const_new;