(source_ptr: *const u8)
| 1628 | /// surface is consistent — they're useless without the compile FFI. |
| 1629 | #[no_mangle] |
| 1630 | pub 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 |
nothing calls this directly
no test coverage detected