pub struct MaterialPropertyInfo {Show 13 fields
pub name: String,
pub semantic: u32,
pub property_type: u32,
pub string_value: Option<String>,
pub url_value: Option<String>,
pub float_value: Option<f32>,
pub float2_value: Option<[f32; 2]>,
pub float3_value: Option<[f32; 3]>,
pub float4_value: Option<[f32; 4]>,
pub matrix4x4: Option<[f32; 16]>,
pub color: Option<[f32; 4]>,
pub luminance: Option<f32>,
pub texture: Option<TextureInfo>,
}Fields§
§name: String§semantic: u32§property_type: u32§string_value: Option<String>§url_value: Option<String>§float_value: Option<f32>§float2_value: Option<[f32; 2]>§float3_value: Option<[f32; 3]>§float4_value: Option<[f32; 4]>§matrix4x4: Option<[f32; 16]>§color: Option<[f32; 4]>§luminance: Option<f32>§texture: Option<TextureInfo>Implementations§
Source§impl MaterialPropertyInfo
impl MaterialPropertyInfo
pub fn semantic_enum(&self) -> Option<MaterialSemantic>
pub fn property_type_enum(&self) -> Option<MaterialPropertyType>
Trait Implementations§
Source§impl Clone for MaterialPropertyInfo
impl Clone for MaterialPropertyInfo
Source§fn clone(&self) -> MaterialPropertyInfo
fn clone(&self) -> MaterialPropertyInfo
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MaterialPropertyInfo
impl Debug for MaterialPropertyInfo
Source§impl<'de> Deserialize<'de> for MaterialPropertyInfo
impl<'de> Deserialize<'de> for MaterialPropertyInfo
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
Auto Trait Implementations§
impl Freeze for MaterialPropertyInfo
impl RefUnwindSafe for MaterialPropertyInfo
impl Send for MaterialPropertyInfo
impl Sync for MaterialPropertyInfo
impl Unpin for MaterialPropertyInfo
impl UnsafeUnpin for MaterialPropertyInfo
impl UnwindSafe for MaterialPropertyInfo
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