MCPcopy Create free account
hub / github.com/Bloom-Engine/engine / bloom_compile_material_instanced_str

Function bloom_compile_material_instanced_str

native/web/src/lib.rs:971–979  ·  view source on GitHub ↗
(source: &str)

Source from the content-addressed store, hash-verified

969
970#[wasm_bindgen]
971pub 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]
982pub fn bloom_create_instance_buffer(_data_ptr: f64, _instance_count: f64) -> f64 {

Callers

nothing calls this directly

Calls 2

engineFunction · 0.70

Tested by

no test coverage detected