1
0
Fork 0
forked from wry/wry

gfx: attach color descriptions

This commit is contained in:
Julian Orth 2025-03-01 14:06:42 +01:00
parent 82085a3858
commit a174881138
24 changed files with 291 additions and 62 deletions

View file

@ -44,11 +44,9 @@ pub struct LinearColorDescription {
#[derive(Debug)]
pub struct ColorDescription {
pub id: ColorDescriptionId,
#[expect(dead_code)]
pub linear: Rc<LinearColorDescription>,
#[expect(dead_code)]
pub named_primaries: Option<NamedPrimaries>,
#[expect(dead_code)]
pub transfer_function: TransferFunction,
pub(super) shared: Rc<Shared>,
}

View file

@ -92,12 +92,10 @@ impl ColorManager {
})
}
#[expect(dead_code)]
pub fn srgb_srgb(&self) -> &Rc<ColorDescription> {
&self.srgb_srgb
}
#[expect(dead_code)]
pub fn srgb_linear(&self) -> &Rc<ColorDescription> {
&self.srgb_linear
}