MCPcopy Create free account
hub / github.com/Bloom-Engine/engine / bloom_enable_postfx

Function bloom_enable_postfx

native/web/src/lib.rs:1639–1647  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1637
1638#[wasm_bindgen]
1639pub fn bloom_enable_postfx() {
1640 let eng = engine();
1641 let w = eng.renderer.width();
1642 let h = eng.renderer.height();
1643 let fmt = eng.renderer.surface_format();
1644 eng.postfx = Some(bloom_shared::postfx::PostFxPipeline::new(
1645 &eng.renderer.device, w, h, fmt,
1646 ));
1647}
1648
1649#[wasm_bindgen]
1650pub fn bloom_disable_postfx() {

Callers

nothing calls this directly

Calls 4

surface_formatMethod · 0.80
engineFunction · 0.70
widthMethod · 0.45
heightMethod · 0.45

Tested by

no test coverage detected