#[repr(C)]pub struct ExternalTextureTransferFunction {
pub a: f32,
pub b: f32,
pub g: f32,
pub k: f32,
}Expand description
Parameters describing a gamma encoding transfer function in the form tf = { k * linear | linear < b { a * pow(linear, 1/g) - (a-1) | linear >= b
Fields§
§a: f32§b: f32§g: f32§k: f32Trait Implementations§
impl Copy for ExternalTextureTransferFunction
Source§impl<'de> Deserialize<'de> for ExternalTextureTransferFunction
Available on crate feature serde only.
impl<'de> Deserialize<'de> for ExternalTextureTransferFunction
Available on crate feature
serde only.Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Pod for ExternalTextureTransferFunction
Source§impl Serialize for ExternalTextureTransferFunction
Available on crate feature serde only.
impl Serialize for ExternalTextureTransferFunction
Available on crate feature
serde only.impl StructuralPartialEq for ExternalTextureTransferFunction
Auto Trait Implementations§
impl Forget for ExternalTextureTransferFunction
impl Freeze for ExternalTextureTransferFunction
impl Move for ExternalTextureTransferFunction
impl RefUnwindSafe for ExternalTextureTransferFunction
impl Send for ExternalTextureTransferFunction
impl Sync for ExternalTextureTransferFunction
impl Unpin for ExternalTextureTransferFunction
impl UnsafeUnpin for ExternalTextureTransferFunction
impl UnwindSafe for ExternalTextureTransferFunction
Blanket Implementations§
impl<T> AnyBitPattern for Twhere
T: Pod,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
Source§type Bits = T
type Bits = T
Self must have the same layout as the specified Bits except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern.Source§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self.Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more