Skip to content

rust: Port video mix and conversion render passes to obs-core #4417

Closed

Description

@zackees

Phase 6 follow-up to prerequisite #4415: port draw_mix_texture and render_convert_plane from libobs/obs-video-render-passes.c.h into obs-core (video orchestration). Wait until the C-only characterization and extraction land; branch test/video-render-passes carries them in BRANCH-ONLY mode.

Keep texture lookup, effect operations and graphics state calls behind callbacks/adapters. Preserve the mix-reuse policy and keep set_render_size as an existing dependency (sibling #4358). Do not modify plugins/obs-websocket, public headers, existing C tests, test-graph.json or native.rs.

Tests: port every assertion from test/cmocka/test_video_render_passes.c into the existing core category binary; RED against Rust stubs then GREEN. Retain unchanged Tier 2 C characterization, make the replacement reachable so it tests the swap, and add Tier 3 differential recording-call traces against the original C for zero/one/multiple passes, mix identity, dimensions and technique selection, including ignored begin-pass failure and framebuffer reset to false. Prove a mutation fails. Tier 4 does not apply to these internal render helpers. Do not claim GPU image-quality coverage from a recording double.

The prerequisite tests currently characterize the real private C bodies only, independently of library selection; the follow-up must resolve Rust reachability rather than treating that as swap coverage. Put real adapter link support in a per-unit tests.d fragment if needed; no placeholder symbols/globals. Coordinate with #4410 graphics-task extraction and #4358 render-size extraction in obs-video.c.h.

Activity

  1. added
    enhancement
    port
    P2
    size:S
    ready
    on Nov 9, 2026
  2. zackees commented on Nov 9, 2026

    @zackees
    MemberAuthor

    Claiming: draw_mix_texture and render_convert_plane on branch port/4417-video-render-passes, stacked on branch test/video-render-passes at fa18c96. 1. Port characterization assertions into the existing Rust core category with RED stubs. 2. Implement safe render orchestration and thin adapters, retain unchanged C swap coverage and add differential C traces. 3. Run focused checks, mutation, formatting and full lint, then push branch-only for manager review; no PR while the prerequisite remains branch-only.

  3. moved this from In progress to Ready in obs-rust Multiviewon Nov 10, 2026
  4. zackees commented on Nov 16, 2026

    @zackees
    MemberAuthor

    Claiming: draw_mix_texture and render_convert_plane on port/4417-render-passes-stacked in obs-studio6, stacked on #4917 at 8eacf4f. 1. Resume and inspect the earlier branch, preserve RED then GREEN and port all characterization assertions. 2. Verify the safe Rust core, adapters, unchanged C swap reachability and differential mutation coverage. 3. Run focused tests and full lint once, publish an unarmed draft with the exact own-commit range while #4917 remains open. First draft expected this session.

  5. 2 remaining items

  6. zackees commented on Nov 18, 2026

    @zackees
    MemberAuthor

    Landed on master in #4922 (7f8d851); verified the merge is an ancestor of origin/master and rust/obs-core/src/ffi/video_render_passes.rs exists there.

  7. moved this from In progress to Done in obs-rust Multiviewon Nov 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2enhancementportreadysize:S

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions