(staging_handle: f64)
| 2398 | |
| 2399 | #[no_mangle] |
| 2400 | pub extern "C" fn bloom_commit_texture(staging_handle: f64) -> f64 { |
| 2401 | let staged = match bloom_shared::staging::take_texture(staging_handle) { |
| 2402 | Some(s) => s, |
| 2403 | None => return 0.0, |
| 2404 | }; |
| 2405 | let eng = engine(); |
| 2406 | let bind_group_idx = eng.renderer.register_texture(staged.width, staged.height, &staged.data); |
| 2407 | eng.textures.textures.alloc(bloom_shared::textures::TextureData { |
| 2408 | bind_group_idx, width: staged.width, height: staged.height, |
| 2409 | }) |
| 2410 | } |
| 2411 | |
| 2412 | #[no_mangle] |
| 2413 | pub extern "C" fn bloom_commit_model(staging_handle: f64) -> f64 { |
nothing calls this directly
no test coverage detected