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

Function bloom_compile_material_instanced

native/macos/src/lib.rs:1630–1636  ·  view source on GitHub ↗
(source_ptr: *const u8)

Source from the content-addressed store, hash-verified

1628/// surface is consistent — they're useless without the compile FFI.
1629#[no_mangle]
1630pub extern "C" fn bloom_compile_material_instanced(source_ptr: *const u8) -> f64 {
1631 let source = str_from_header(source_ptr);
1632 match engine().renderer.compile_material_instanced(source) {
1633 Ok(handle) => handle as f64,
1634 Err(e) => { eprintln!("[material] instanced compile failed: {:?}", e); 0.0 }
1635 }
1636}
1637
1638/// EN-001 — upload a flat per-instance buffer to GPU memory. Perry's
1639/// `number[]` is f64-laid-out in memory; this FFI takes the pointer

Callers

nothing calls this directly

Calls 3

str_from_headerFunction · 0.85
engineFunction · 0.70

Tested by

no test coverage detected