Struct ark_api::render::RenderMaterial
source · [−]#[repr(C, align(16))]pub struct RenderMaterial {
pub diffuse_albedo: [f32; 3],
pub alpha: f32,
pub emissive_color: [f32; 3],
pub metallic: f32,
pub perceptual_roughness: f32,
pub reserved: [f32; 23],
}
Fields
diffuse_albedo: [f32; 3]
alpha: f32
emissive_color: [f32; 3]
metallic: f32
perceptual_roughness: f32
reserved: [f32; 23]
Trait Implementations
sourceimpl Clone for RenderMaterial
impl Clone for RenderMaterial
sourcefn clone(&self) -> RenderMaterial
fn clone(&self) -> RenderMaterial
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 RenderMaterial
impl Debug for RenderMaterial
sourceimpl Default for RenderMaterial
impl Default for RenderMaterial
sourcefn default() -> RenderMaterial
fn default() -> RenderMaterial
Returns the “default value” for a type. Read more
impl Copy for RenderMaterial
impl Pod for RenderMaterial
Auto Trait Implementations
impl RefUnwindSafe for RenderMaterial
impl Send for RenderMaterial
impl Sync for RenderMaterial
impl Unpin for RenderMaterial
impl UnwindSafe for RenderMaterial
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