feat: resolve frame out surface formats

Amp-Thread-ID: https://ampcode.com/threads/T-019f9d91-77c1-7206-a60f-ed6554ce92ab

Co-authored-by: Heaust Azure <heaust.azure@gmail.com>
This commit is contained in:
Amp
2026-07-28 17:55:20 +00:00
co-authored by heaust
parent fd85b3d051
commit c7ffb0543e
10 changed files with 802 additions and 111 deletions
+2
View File
@@ -40,6 +40,7 @@ struct PipelineParameters {
#[serde(deny_unknown_fields)]
#[serde(rename_all = "camelCase")]
struct FrameOutParameters {
surface_format: SurfaceFormatRequest,
hdr_enabled: bool,
tone_mapper: ToneMapper,
exposure_stops: f32,
@@ -544,6 +545,7 @@ fn decode(node: &Node, i: usize) -> Result<NormalizedParameters, GraphError> {
&format!("{base}.backgroundColor"),
)?;
NormalizedParameters::FrameOut {
surface_format: p.surface_format,
dynamic_range: if p.hdr_enabled {
FrameDynamicRange::Hdr {
tone_mapper: p.tone_mapper,