Skip to content

rust: Port plugins/obs-nvenc load_cuda_lib/init_cuda to obs-nvenc behind ENABLE_RUST_LIBOBS #524

Closed

Description

@zackees

Follow-up (a) from #520 phase 1.

rust/obs-nvenc now has the safe loader core (candidate search, typed LoadError, cuda_functions[] table) with Tier 1 and Tier 3 tests, but no C symbol is replaced.

Scope:

  • Extract load_cuda_lib/init_cuda_internal (and load_nvenc_lib) into their own C files first (behaviour-neutral, per testing-policy "Extracting a function before porting it").
  • Add a C shim in rust/obs-nvenc/src/ffi/ that fills CudaFunctions from CudaDriver, re-export through libobs-rust (or the plugin's own link, to be decided), guard the C file with ENABLE_RUST_LIBOBS.
  • Tier 2: plugin loads and the existing tests pass with the option ON and OFF; map LoadError to the existing [NVENC] Test process failed: cuda_lib log strings.

Refs #520, #498.

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

    claimed

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions