Struct colstodian::spaces::EncodedAcesCgSrgb [−][src]
pub struct EncodedAcesCgSrgb;
Expand description
A type representing the ACEScg color space encoded with the sRGB transfer functions.
This is useful to take advantage of many GPUs’ hardware support for encoding and decoding using the sRGB transfer functions. Using the sRGB transfer functions to encode ACEScg data is useful when trying to use 8-bit texture formats. The OETF “compresses” the data to give better bit distribution based on human color perception.
Trait Implementations
impl<SrcSpace, SrcAlpha> ColorAlphaConversionQuery<SrcSpace, SrcAlpha> for EncodedAcesCgSrgb where
SrcSpace: ColorSpace,
Self: ConvertFromRaw<SrcSpace>,
SrcAlpha: AlphaState,
impl<SrcSpace, SrcAlpha> ColorAlphaConversionQuery<SrcSpace, SrcAlpha> for EncodedAcesCgSrgb where
SrcSpace: ColorSpace,
Self: ConvertFromRaw<SrcSpace>,
SrcAlpha: AlphaState,
impl<SrcSpace, St> ColorConversionQuery<SrcSpace, St> for EncodedAcesCgSrgb where
SrcSpace: ColorSpace,
Self: ConvertFromRaw<SrcSpace>,
St: State,
impl<SrcSpace, St> ColorConversionQuery<SrcSpace, St> for EncodedAcesCgSrgb where
SrcSpace: ColorSpace,
Self: ConvertFromRaw<SrcSpace>,
St: State,
type DstSpace = Self
The DynamicColorSpace
that this type represents.
type LinearSpace = AcesCg
type LinearSpace = AcesCg
The closest linear color space to this space.
type ComponentStruct = Rgb
type ComponentStruct = Rgb
The ‘bag of components’ that this color space uses.
type DecodedSpace = AcesCg
Auto Trait Implementations
impl RefUnwindSafe for EncodedAcesCgSrgb
impl Send for EncodedAcesCgSrgb
impl Sync for EncodedAcesCgSrgb
impl Unpin for EncodedAcesCgSrgb
impl UnwindSafe for EncodedAcesCgSrgb
Blanket Implementations
Mutably borrows from an owned value. Read more
impl<SrcAlpha, DstAlpha> ConvertToAlphaRaw<DstAlpha> for SrcAlpha where
DstAlpha: ConvertFromAlphaRaw<SrcAlpha>,
impl<SrcAlpha, DstAlpha> ConvertToAlphaRaw<DstAlpha> for SrcAlpha where
DstAlpha: ConvertFromAlphaRaw<SrcAlpha>,
impl<SrcSpace, DstSpace> ConvertToRaw<DstSpace> for SrcSpace where
SrcSpace: ColorSpace,
DstSpace: ConvertFromRaw<SrcSpace>,
impl<SrcSpace, DstSpace> ConvertToRaw<DstSpace> for SrcSpace where
SrcSpace: ColorSpace,
DstSpace: ConvertFromRaw<SrcSpace>,