pub struct ColourProperty {
pub name: String,
pub flags: u32,
}Expand description
A colour property a shader declares (m_ParsedForm.m_PropInfo.m_Props, type 0) and its m_Flags (Unity’s
ShaderPropertyFlags).
Fields§
§name: StringThe property’s name (_BaseColor).
flags: u32Its m_Flags (ShaderPropertyFlags; PROPERTY_HDR is [HDR]).
Implementations§
Source§impl ColourProperty
impl ColourProperty
Sourcepub fn hdr(&self) -> bool
pub fn hdr(&self) -> bool
Whether the property is declared [HDR] (PROPERTY_HDR). In a linear colour space player Unity hands an HDR
colour’s stored value to the programs as it is, and converts any other colour from gamma to linear.
Trait Implementations§
Source§impl Clone for ColourProperty
impl Clone for ColourProperty
Source§impl Debug for ColourProperty
impl Debug for ColourProperty
impl Eq for ColourProperty
Source§impl PartialEq for ColourProperty
impl PartialEq for ColourProperty
impl StructuralPartialEq for ColourProperty
Auto Trait Implementations§
impl Freeze for ColourProperty
impl RefUnwindSafe for ColourProperty
impl Send for ColourProperty
impl Sync for ColourProperty
impl Unpin for ColourProperty
impl UnsafeUnpin for ColourProperty
impl UnwindSafe for ColourProperty
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.