(staging_handle: f64)
| 2994 | |
| 2995 | #[no_mangle] |
| 2996 | pub extern "C" fn bloom_commit_texture(staging_handle: f64) -> f64 { |
| 2997 | let staged = match bloom_shared::staging::take_texture(staging_handle) { |
| 2998 | Some(s) => s, |
| 2999 | None => return 0.0, |
| 3000 | }; |
| 3001 | let eng = engine(); |
| 3002 | let bind_group_idx = eng.renderer.register_texture(staged.width, staged.height, &staged.data); |
| 3003 | eng.textures.textures.alloc(bloom_shared::textures::TextureData { |
| 3004 | bind_group_idx, width: staged.width, height: staged.height, |
| 3005 | }) |
| 3006 | } |
| 3007 | |
| 3008 | #[no_mangle] |
| 3009 | pub extern "C" fn bloom_commit_model(staging_handle: f64) -> f64 { |
nothing calls this directly
no test coverage detected