(staging_handle: f64)
| 1709 | |
| 1710 | #[no_mangle] |
| 1711 | pub extern "C" fn bloom_commit_texture(staging_handle: f64) -> f64 { |
| 1712 | let staged = match bloom_shared::staging::take_texture(staging_handle) { |
| 1713 | Some(s) => s, |
| 1714 | None => return 0.0, |
| 1715 | }; |
| 1716 | let eng = engine(); |
| 1717 | let bind_group_idx = eng.renderer.register_texture(staged.width, staged.height, &staged.data); |
| 1718 | eng.textures.textures.alloc(bloom_shared::textures::TextureData { |
| 1719 | bind_group_idx, width: staged.width, height: staged.height, |
| 1720 | }) |
| 1721 | } |
| 1722 | |
| 1723 | #[no_mangle] |
| 1724 | pub extern "C" fn bloom_commit_model(staging_handle: f64) -> f64 { |
nothing calls this directly
no test coverage detected