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

Function bloom_compile_material_additive

native/android/src/lib.rs:894–903  ·  view source on GitHub ↗
(source_ptr: *const u8)

Source from the content-addressed store, hash-verified

892
893#[no_mangle]
894pub extern "C" fn bloom_compile_material_additive(source_ptr: *const u8) -> f64 {
895 use bloom_shared::renderer::material_pipeline::{FragmentProfile, Bucket};
896 let source = str_from_header(source_ptr);
897 match engine().renderer.compile_material_with_options(
898 source, FragmentProfile::Translucent, Bucket::Additive, false, false,
899 ) {
900 Ok(handle) => handle as f64,
901 Err(e) => { eprintln!("[material] compile failed: {:?}", e); 0.0 }
902 }
903}
904
905#[no_mangle]
906pub extern "C" fn bloom_compile_material_cutout(source_ptr: *const u8) -> f64 {

Callers

nothing calls this directly

Calls 3

str_from_headerFunction · 0.85
engineFunction · 0.70

Tested by

no test coverage detected