Struct ark_api::world::MaterialDesc
source · [−]#[repr(C)]pub struct MaterialDesc {
pub diffuse_albedo: [f32; 3],
pub alpha: f32,
pub emissive_color: [f32; 3],
pub metallic: f32,
pub perceptual_roughness: f32,
pub reserved: [f32; 16],
}
Fields
diffuse_albedo: [f32; 3]
alpha: f32
emissive_color: [f32; 3]
metallic: f32
perceptual_roughness: f32
reserved: [f32; 16]
Trait Implementations
sourceimpl Clone for MaterialDesc
impl Clone for MaterialDesc
sourcefn clone(&self) -> MaterialDesc
fn clone(&self) -> MaterialDesc
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for MaterialDesc
impl Debug for MaterialDesc
sourceimpl Default for MaterialDesc
impl Default for MaterialDesc
sourcefn default() -> MaterialDesc
fn default() -> MaterialDesc
Returns the “default value” for a type. Read more
sourceimpl PartialEq<MaterialDesc> for MaterialDesc
impl PartialEq<MaterialDesc> for MaterialDesc
sourcefn eq(&self, other: &MaterialDesc) -> bool
fn eq(&self, other: &MaterialDesc) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
impl Copy for MaterialDesc
impl Pod for MaterialDesc
impl StructuralPartialEq for MaterialDesc
Auto Trait Implementations
impl RefUnwindSafe for MaterialDesc
impl Send for MaterialDesc
impl Sync for MaterialDesc
impl Unpin for MaterialDesc
impl UnwindSafe for MaterialDesc
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> CheckedBitPattern for T where
T: AnyBitPattern,
impl<T> CheckedBitPattern for T where
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
. Read more
sourcefn 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
. Read more