M13.23: GPU colour management (LUTs, OCIO, Color Profile Converter, Lumetri LUT/look)

Apply Color LUT, OCIO CDL / Color Space / Display / File / Look Transform and
Color Profile Converter compile to colour programs (effects::color_program,
built next to the CPU effects) that fx_lut.wgsl interprets per pixel; LUTs
(1D, 3D, cineSpace shapers, inverses) are read from the storage buffer with the
CPU's nearest / trilinear / tetrahedral interpolation. Lumetri's Input LUT and
Look no longer force the CPU. Custom .ocio configs stay on the CPU.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Brandon Thomas
2026-10-03 17:43:24 -04:00
co-authored by Claude Opus 5.5
parent 6b91afc087
commit e3e35a7ec2
13 changed files with 1052 additions and 14 deletions
+10
View File
@@ -99,6 +99,8 @@ pub use time_fx::{posterized_time, time_frames};
pub use ocio::color_stabilizer_maps;
// GPU effects, part B (3D Channel, Immersive Video, colour management, simulation render passes).
pub use channel3d::{CRYPTO_LAYERS, id_color, selection_hashes};
pub use ocio::{ColorOp, Straight, Tf, color_program};
pub use utility::{Lut, load_lut};
/// Effect categories in Effects & Presets order.
pub const CATEGORIES: &[&str] = &[
@@ -942,6 +944,14 @@ pub const GPU_EFFECTS: &[&str] = &[
"ec.3d.fog3d",
"ec.3d.idmatte",
"ec.3d.identifier",
// Colour management.
"ec.utility.applylut",
"ec.color.ociocdl",
"ec.color.ociocolorspace",
"ec.color.ociodisplay",
"ec.color.ociofile",
"ec.color.ociolook",
"ec.utility.colorprofileconverter",
];
/// Effects whose output depends on [`EffectCtx::time`] directly (not only through animated