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

Function bloom_submit_material_draw_instanced

native/macos/src/lib.rs:1663–1679  ·  view source on GitHub ↗
(
    material: f64, mesh_handle: f64, mesh_idx: f64,
    instance_buffer: f64, instance_count: f64,
)

Source from the content-addressed store, hash-verified

1661/// the Perry-ARM64 9th-arg garbling quirk.
1662#[no_mangle]
1663pub 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

Callers

nothing calls this directly

Calls 4

cache_model_if_staticMethod · 0.80
engineFunction · 0.70
getMethod · 0.45

Tested by

no test coverage detected