1
0
Fork 0
forked from wry/wry

vulkan: apply color space transforms to colors

This commit is contained in:
Julian Orth 2025-03-01 15:58:02 +01:00
parent b5044d7fe7
commit c4d0fdd4bb
4 changed files with 73 additions and 13 deletions

View file

@ -52,7 +52,6 @@ pub struct ColorDescription {
}
impl LinearColorDescription {
#[expect(dead_code)]
pub fn color_transform(&self, target: &Self) -> ColorMatrix {
let mut mat = target.local_from_xyz;
if self.luminance != target.luminance {