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

Function bloom_compile_material_instanced

native/linux/src/lib.rs:1309–1315  ·  view source on GitHub ↗
(source_ptr: *const u8)

Source from the content-addressed store, hash-verified

1307
1308#[no_mangle]
1309pub extern "C" fn bloom_compile_material_instanced(source_ptr: *const u8) -> f64 {
1310 let source = str_from_header(source_ptr);
1311 match engine().renderer.compile_material_instanced(source) {
1312 Ok(handle) => handle as f64,
1313 Err(e) => { eprintln!("[material] instanced compile failed: {:?}", e); 0.0 }
1314 }
1315}
1316
1317#[no_mangle]
1318pub extern "C" fn bloom_create_instance_buffer(

Callers

nothing calls this directly

Calls 3

str_from_headerFunction · 0.85
engineFunction · 0.70

Tested by

no test coverage detected