wrend/buffers/
buffer_create_callback_js.rs1use js_sys::Function;
2use wasm_bindgen::prelude::wasm_bindgen;
3
4#[wasm_bindgen(typescript_custom_section)]
5const BUFFER_CREATE_CALLBACK_JS: &'static str = r#"
6type BufferCreateCallbackJs = (buffer_create_context: BufferCreateContext) => WebGLBuffer;
7"#;
8
9#[wasm_bindgen]
10extern "C" {
11 #[wasm_bindgen(extends = Function, is_type_of = JsValue::is_function, typescript_type = "BufferCreateCallbackJs")]
12 #[derive(Clone, Debug, PartialEq, Eq)]
13 pub type BufferCreateCallbackJs;
14}