#![allow(clippy::wildcard_imports)]
#![allow(clippy::exhaustive_enums)]
#![allow(clippy::must_use_candidate)]
#![allow(clippy::missing_inline_in_public_items)]
#![allow(clippy::implicit_return)]
#![allow(clippy::missing_errors_doc)]
#![allow(clippy::min_ident_chars)]
#![allow(clippy::uninlined_format_args)]
#![allow(clippy::let_and_return)]
#![allow(clippy::return_self_not_must_use)]
#![allow(clippy::doc_markdown)]
#![allow(clippy::elidable_lifetime_names)]
#![allow(clippy::needless_borrow)]
#![allow(clippy::cast_precision_loss)]
#![allow(clippy::new_without_default)]
#![allow(clippy::should_implement_trait)]
#![allow(clippy::inconsistent_struct_constructor)]
#![allow(clippy::exhaustive_structs)]
#![allow(clippy::len_zero)]
#![allow(clippy::explicit_counter_loop)]
#![allow(clippy::explicit_iter_loop)]
#![allow(clippy::std_instead_of_core)]
#![allow(clippy::missing_panics_doc)]
#![allow(clippy::redundant_closure_for_method_calls)]
#[ cfg( all( feature = "enabled", target_arch = "wasm32" ) ) ]
pub use mingl::mod_interface;
#[ cfg( all( feature = "enabled", target_arch = "wasm32" ) ) ]
mod private {}
#[ cfg( all( feature = "enabled", target_arch = "wasm32" ) ) ]
mod_interface!
{
own use ::wasm_bindgen;
own use ::web_sys;
own use ::js_sys;
own use ::wasm_bindgen::JsValue;
layer error;
layer canvas;
layer browser;
layer exec_loop;
#[ cfg( feature = "future" ) ]
layer future;
layer dom;
layer texture;
layer descriptor;
layer context;
layer webgpu;
layer sampler;
layer model;
#[ cfg( feature = "file" ) ]
layer file;
layer layout;
layer state;
layer shader;
layer binding_type;
layer render_pipeline;
layer render_pass;
layer queue;
layer bind_group;
layer bind_group_entry;
layer transform;
layer buffer;
layer mem;
layer log;
#[ cfg( feature = "math" ) ]
layer math;
layer compute_pipeline;
}
#[ cfg( all( feature = "enabled", not( target_arch = "wasm32" ) ) ) ]
pub mod stub {
#[derive(Debug)]
pub struct WebGPUNotAvailableError;
impl std::fmt::Display for WebGPUNotAvailableError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "WebGPU functionality is only available on WebAssembly targets")
}
}
impl std::error::Error for WebGPUNotAvailableError {}
}
#[ cfg( all( feature = "enabled", not( target_arch = "wasm32" ) ) ) ]
pub use stub::*;