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

Function bloom_compile_material_refractive

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

Source from the content-addressed store, hash-verified

868
869#[no_mangle]
870pub extern "C" fn bloom_compile_material_refractive(source_ptr: *const u8) -> f64 {
871 use bloom_shared::renderer::material_pipeline::{FragmentProfile, Bucket};
872 let source = str_from_header(source_ptr);
873 match engine().renderer.compile_material_with_options(
874 source, FragmentProfile::Translucent, Bucket::Refractive, true, false,
875 ) {
876 Ok(handle) => handle as f64,
877 Err(e) => { eprintln!("[refractive] compile failed: {:?}", e); 0.0 }
878 }
879}
880
881#[no_mangle]
882pub extern "C" fn bloom_compile_material_transparent(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