#[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: f32
Trait Implementations§
Source§impl Clone for ExternalTextureTransferFunction
impl Clone for ExternalTextureTransferFunction
Source§fn clone(&self) -> ExternalTextureTransferFunction
fn clone(&self) -> ExternalTextureTransferFunction
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Default for ExternalTextureTransferFunction
impl Default for ExternalTextureTransferFunction
Source§fn default() -> ExternalTextureTransferFunction
fn default() -> ExternalTextureTransferFunction
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ExternalTextureTransferFunction
impl<'de> Deserialize<'de> for ExternalTextureTransferFunction
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ExternalTextureTransferFunction, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ExternalTextureTransferFunction, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ExternalTextureTransferFunction
impl PartialEq for ExternalTextureTransferFunction
Source§fn eq(&self, other: &ExternalTextureTransferFunction) -> bool
fn eq(&self, other: &ExternalTextureTransferFunction) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.Source§impl Serialize for ExternalTextureTransferFunction
impl Serialize for ExternalTextureTransferFunction
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for ExternalTextureTransferFunction
impl Pod for ExternalTextureTransferFunction
impl StructuralPartialEq for ExternalTextureTransferFunction
Auto Trait Implementations§
impl Freeze for ExternalTextureTransferFunction
impl RefUnwindSafe for ExternalTextureTransferFunction
impl Send for ExternalTextureTransferFunction
impl Sync for ExternalTextureTransferFunction
impl Unpin for ExternalTextureTransferFunction
impl UnwindSafe for ExternalTextureTransferFunction
Blanket Implementations§
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
§impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
§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
.§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
.