#[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 deserialize only.
impl<'de> Deserialize<'de> for ExternalTextureTransferFunction
Available on crate feature
deserialize 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 serialize only.
impl Serialize for ExternalTextureTransferFunction
Available on crate feature
serialize 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.