(source_ptr: *const u8)
| 880 | |
| 881 | #[no_mangle] |
| 882 | pub 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] |
| 894 | pub extern "C" fn bloom_compile_material_additive(source_ptr: *const u8) -> f64 { |
nothing calls this directly
no test coverage detected