pub struct MaterialProperty { /* private fields */ }Implementations§
Source§impl MaterialProperty
impl MaterialProperty
pub fn info(&self) -> Result<MaterialPropertyInfo>
pub fn texture(&self) -> Option<Texture>
pub fn set_float(&self, value: f32)
pub fn set_float2(&self, value: [f32; 2])
pub fn set_float3(&self, value: [f32; 3])
pub fn set_float4(&self, value: [f32; 4])
pub fn set_matrix4x4(&self, value: [f32; 16])
pub fn set_string(&self, value: Option<&str>) -> Result<()>
pub fn set_url(&self, path: Option<impl AsRef<Path>>) -> Result<()>
pub fn set_color(&self, color: [f32; 4])
pub fn set_luminance(&self, value: f32)
Trait Implementations§
Source§impl Clone for MaterialProperty
impl Clone for MaterialProperty
Source§fn clone(&self) -> MaterialProperty
fn clone(&self) -> MaterialProperty
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 moreAuto Trait Implementations§
impl Freeze for MaterialProperty
impl RefUnwindSafe for MaterialProperty
impl !Send for MaterialProperty
impl !Sync for MaterialProperty
impl Unpin for MaterialProperty
impl UnsafeUnpin for MaterialProperty
impl UnwindSafe for MaterialProperty
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