pub(crate) const WEBGPU_STATUS_INITIALIZING: &str = "Initializing...";
pub(crate) const WEBGPU_STATUS_ACTIVE: &str = "WebGPU Active";
pub(crate) const WEBGPU_STATUS_NEEDS_HTTPS_OR_LOCALHOST: &str = "WebGPU needs HTTPS or localhost";
pub(crate) const WEBGPU_STATUS_ADAPTER_UNAVAILABLE: &str = "WebGPU adapter unavailable";
pub(crate) const WEBGPU_STATUS_DEVICE_UNAVAILABLE: &str = "WebGPU device unavailable (driver?)";
pub(crate) const WEBGPU_STATUS_CANVAS_NOT_FOUND: &str = "Canvas element missing in DOM";
pub(crate) const WEBGPU_STATUS_CANVAS_CONTEXT_UNAVAILABLE: &str =
"Canvas already using another context";
pub(crate) const WEBGPU_STATUS_INIT_FAILED_BROWSER_API: &str = "WebGPU init failed (browser API)";
pub(crate) const WEBGPU_STATUS_NOT_SUPPORTED: &str = "WebGPU Not Supported";
pub(crate) const WEBGPU_CODE_NAVIGATOR_GPU_MISSING: &str = "WEBGPU_NAVIGATOR_GPU_MISSING";
pub(crate) const WEBGPU_CODE_ADAPTER_UNAVAILABLE: &str = "WEBGPU_ADAPTER_UNAVAILABLE";
pub(crate) const WEBGPU_CODE_ADAPTER_PROMISE: &str = "WEBGPU_ADAPTER_PROMISE";
pub(crate) const WEBGPU_CODE_DEVICE_UNAVAILABLE: &str = "WEBGPU_DEVICE_UNAVAILABLE";
pub(crate) const WEBGPU_CODE_DEVICE_PROMISE: &str = "WEBGPU_DEVICE_PROMISE";
pub(crate) const WEBGPU_CODE_CANVAS_NOT_FOUND: &str = "WEBGPU_CANVAS_NOT_FOUND";
pub(crate) const WEBGPU_CODE_CANVAS_CONTEXT_UNAVAILABLE: &str = "WEBGPU_CANVAS_CONTEXT_UNAVAILABLE";
pub(crate) const WEBGPU_CODE_API_FAILURE: &[&str] = &[
"WEBGPU_REQUEST_ADAPTER_LOOKUP",
"WEBGPU_REQUEST_ADAPTER_CALL",
"WEBGPU_REQUEST_DEVICE_LOOKUP",
"WEBGPU_REQUEST_DEVICE_CALL",
"WEBGPU_PREFERRED_FORMAT_LOOKUP",
"WEBGPU_PREFERRED_FORMAT_CALL",
"WEBGPU_PREFERRED_FORMAT_TYPE",
"WEBGPU_CONFIGURE_LOOKUP",
"WEBGPU_QUEUE_LOOKUP",
"WEBGPU_CANVAS_QUERY",
"WEBGPU_NAVIGATOR_LOOKUP",
];