Merge main into M12.7 (environment background layers keep their 3D runs on the CPU path)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Brandon Thomas
2026-10-03 03:03:21 -04:00
co-authored by Claude Opus 5.5
46 changed files with 3916 additions and 128 deletions
+7 -5
View File
@@ -155,11 +155,13 @@ pub fn quantize(e: &mut Enc, img: &GpuImage, levels: f32) -> GpuImage {
}
fn curve_id(s: Option<effectcraft_color::ColorSpace>) -> u32 {
use effectcraft_color::ColorSpace::*;
match s {
None => 0,
Some(Srgb | DisplayP3) => 1,
Some(Rec709 | Rec2020) => 2,
use effectcraft_color::space::Curve;
match s.map(|s| s.curve()) {
None | Some(Curve::Linear) => 0,
Some(Curve::Srgb) => 1,
Some(Curve::Gamma24) => 2,
Some(Curve::Pq) => 3,
Some(Curve::Hlg) => 4,
}
}