mirror of
https://github.com/storytold/filmcraft.git
synced 2026-12-03 12:35:51 -05:00
With GPU Rendering on, opaque SDR exports take the renderer's 8-bit frame instead of reading back
Rgba16Float and converting it on the CPU (f16 -> f32 -> 12-bit sRGB table).
- gpu: render_export_rgba8_prepared composites layers, Push transitions, and adjustment layers
into the Rgba16Float accumulator and resolves into Rgba8Unorm through an export-only shader
backed by filmcraft_color::linear_to_srgb_u8_table() (4096-entry LUT), leaving composite.wgsl
untouched and preserving byte-for-byte parity with Image::over_black_rgba8() (Stage A of #1284)
- gpu: reuse the output readback buffer across frames and retire it on failed wait; wait_mapped
waits on its own submission; f16_rows_to_f32 helper on the remaining float path
- export: FrameRenderer::render_rgba8 (default render + over_black_rgba8); Pipeline::frame uses it
when nothing after the render needs float pixels, falling back to the float path otherwise
GPU Rendering off and on are both byte-identical to the f16 accumulator + 4096-entry LUT contract.
1080p HEVC NVENC, 3138 frames: 17.6 s -> 11.1 s on main 8309f21a.