(
material: f64, mesh_handle: f64, mesh_idx: f64,
instance_buffer: f64, instance_count: f64,
)
| 1661 | /// the Perry-ARM64 9th-arg garbling quirk. |
| 1662 | #[no_mangle] |
| 1663 | pub extern "C" fn bloom_submit_material_draw_instanced( |
| 1664 | material: f64, mesh_handle: f64, mesh_idx: f64, |
| 1665 | instance_buffer: f64, instance_count: f64, |
| 1666 | ) { |
| 1667 | let eng = engine(); |
| 1668 | let handle_bits = mesh_handle.to_bits(); |
| 1669 | if let Some(model) = eng.models.get(mesh_handle) { |
| 1670 | eng.renderer.cache_model_if_static(handle_bits, &model.meshes); |
| 1671 | } |
| 1672 | eng.renderer.submit_material_draw_instanced( |
| 1673 | material as u32, |
| 1674 | handle_bits, |
| 1675 | mesh_idx as usize, |
| 1676 | instance_buffer as u32, |
| 1677 | instance_count as u32, |
| 1678 | ); |
| 1679 | } |
| 1680 | |
| 1681 | /// EN-001 — release the GPU memory backing an instance buffer. The |
| 1682 | /// slot stays `None` so previously-issued handles can never alias a |
nothing calls this directly
no test coverage detected