(staging_handle: f64)
| 1596 | |
| 1597 | #[no_mangle] |
| 1598 | pub extern "C" fn bloom_commit_texture(staging_handle: f64) -> f64 { |
| 1599 | let staged = match bloom_shared::staging::take_texture(staging_handle) { |
| 1600 | Some(s) => s, |
| 1601 | None => return 0.0, |
| 1602 | }; |
| 1603 | let eng = engine(); |
| 1604 | let bind_group_idx = eng.renderer.register_texture(staged.width, staged.height, &staged.data); |
| 1605 | eng.textures.textures.alloc(bloom_shared::textures::TextureData { |
| 1606 | bind_group_idx, width: staged.width, height: staged.height, |
| 1607 | }) |
| 1608 | } |
| 1609 | |
| 1610 | #[no_mangle] |
| 1611 | pub extern "C" fn bloom_commit_model(staging_handle: f64) -> f64 { |
nothing calls this directly
no test coverage detected