Struct ark_api::world::MaterialDesc
source · 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§
source§impl Clone for MaterialDesc
impl Clone for MaterialDesc
source§fn clone(&self) -> MaterialDesc
fn clone(&self) -> MaterialDesc
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 Debug for MaterialDesc
impl Debug for MaterialDesc
source§impl Default for MaterialDesc
impl Default for MaterialDesc
source§fn default() -> MaterialDesc
fn default() -> MaterialDesc
Returns the “default value” for a type. Read more
source§impl PartialEq<MaterialDesc> for MaterialDesc
impl PartialEq<MaterialDesc> for MaterialDesc
source§fn 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 ==.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§
source§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.source§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.