You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
rust: Port the scene blend lookups in obs-scene.c to obs-scene-blend #1520
Port the scene blend lookups in libobs/obs-scene.c.h to a new crate rust/obs-scene-blend: the blend-mode table (blend mode → blend function/operation and the effect technique) and the Darken clear colour (from #1406). They are pure lookups.
Phase and position
Phase 6, entered by function extraction (testing-policy.md). Crate per naming.md's one-crate-per-component pattern, like rust/obs-scene-bounds; whether obs-scene units later share one crate is the maintainer's layout call (#444), cheap to fold later.
Dependencies and existing tests
No dependencies beyond the graphics enums. test_darken_transparent (#1406) covers the Darken path end to end. A dedicated characterization of every blend mode's mapping comes first.
Plan
Function extraction PR: move the lookups verbatim into their own file (same unity group), plus a characterization test of every blend mode and the clear colour. Existing tests unchanged.
Port PR after 1 lands: Rust in obs-scene-blend, shim swap under ENABLE_RUST_LIBOBS=ON, Tier 1, layout, Tier 3 parity, Tier 2 OFF/ON unchanged.
Scope note: #1521 moves only the blend-mode table (obs_blend_mode_params). The Darken clear colour is an inline condition in render_item() and the technique choice doesn't depend on the blend mode, so neither is a function that can move verbatim; extracting them would need new helpers, so they stay in obs-scene.c.h for now (test_darken_transparent still covers the clear colour). The port PR will cover the table.
Activity
rdoupe commentedon Oct 20, 2026
Claiming: #1520
First PR expected today.
rdoupe commentedon Oct 20, 2026
Scope note: #1521 moves only the blend-mode table (
obs_blend_mode_params). The Darken clear colour is an inline condition inrender_item()and the technique choice doesn't depend on the blend mode, so neither is a function that can move verbatim; extracting them would need new helpers, so they stay inobs-scene.c.hfor now (test_darken_transparentstill covers the clear colour). The port PR will cover the table.libobs: Move the scene blend mode table into obs-scene-blend.c (obs-r…
libobs: Port the scene blend mode table to obs-scene-blend (obs-rust#…