(staging_handle: f64)
| 2143 | |
| 2144 | #[no_mangle] |
| 2145 | pub extern "C" fn bloom_commit_texture(staging_handle: f64) -> f64 { |
| 2146 | let staged = match bloom_shared::staging::take_texture(staging_handle) { |
| 2147 | Some(s) => s, |
| 2148 | None => return 0.0, |
| 2149 | }; |
| 2150 | let eng = engine(); |
| 2151 | let bind_group_idx = eng.renderer.register_texture(staged.width, staged.height, &staged.data); |
| 2152 | eng.textures.textures.alloc(bloom_shared::textures::TextureData { |
| 2153 | bind_group_idx, width: staged.width, height: staged.height, |
| 2154 | }) |
| 2155 | } |
| 2156 | |
| 2157 | #[no_mangle] |
| 2158 | pub extern "C" fn bloom_commit_model(staging_handle: f64) -> f64 { |
no test coverage detected