(source: &str)
| 969 | |
| 970 | #[wasm_bindgen] |
| 971 | pub fn bloom_compile_material_instanced_str(source: &str) -> f64 { |
| 972 | match engine().renderer.compile_material_instanced(source) { |
| 973 | Ok(handle) => handle as f64, |
| 974 | Err(e) => { |
| 975 | web_sys::console::error_1(&format!("[material] instanced compile failed: {:?}", e).into()); |
| 976 | 0.0 |
| 977 | } |
| 978 | } |
| 979 | } |
| 980 | |
| 981 | #[wasm_bindgen] |
| 982 | pub fn bloom_create_instance_buffer(_data_ptr: f64, _instance_count: f64) -> f64 { |
nothing calls this directly
no test coverage detected