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

Function bloom_compile_material_transparent

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

Source from the content-addressed store, hash-verified

880
881#[no_mangle]
882pub extern "C" fn bloom_compile_material_transparent(source_ptr: *const u8) -> f64 {
883 use bloom_shared::renderer::material_pipeline::{FragmentProfile, Bucket};
884 let source = str_from_header(source_ptr);
885 match engine().renderer.compile_material_with_options(
886 source, FragmentProfile::Translucent, Bucket::Transparent, false, false,
887 ) {
888 Ok(handle) => handle as f64,
889 Err(e) => { eprintln!("[material] compile failed: {:?}", e); 0.0 }
890 }
891}
892
893#[no_mangle]
894pub extern "C" fn bloom_compile_material_additive(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