mirror of
https://github.com/libretro/RetroArch.git
synced 2026-11-21 12:29:43 -10:00
Connect the admitted desktop Vulkan encode queue to viewport recording through an asynchronous worker. Capture GPU pixels in the renderer submission, publish only successful submissions, and retain source/device resources through stop, resize and deferred video reinitialization. Refuse unsupported devices, HDR, formats and audio layouts before creating output. Start after the first core frame so admission uses its actual audio layout. Hold PCM on the existing worker queue until encoded video establishes its clock limit. Trim trailing queued PCM at video EOS before AC-3 padding and publish the actual consumed count after worker retirement. This prevents a threaded resize from leaving audio beyond the last captured picture. Add no producer locks, waits, pixel readbacks or pacing logs. Configure selects the driver on desktop Vulkan builds with its dependencies; existing default driver priority is retained. Add frontend admission/lifetime, delayed-video PCM, terminal-result publication and native isolated-window resize/reinit/stop regression coverage. Validation: GCC/Clang ASan+UBSan frontend contracts, Vulkan encode contracts, recording output/session/dispatch contracts and independent MP4 A/V checks. Windows native recording passes threaded/direct multichannel float PCM at 32/44.1/48 kHz, plus resize, reinit and stop with Khronos sync validation. Desktop Linux and Windows frontends build with automatic feature selection. Native Linux GPU acceptance remains open. The unrelated extended RSLC unsized uniform-buffer fixture is rejected by the installed standalone SPIR-V validator; that check is retained as a failure, not reported as an extended-suite pass.