#[repr(C, align(16))]pub struct PackedMaterial {Show 16 fields
pub base_roughness: [f32; 4],
pub metal_spec_coat: [f32; 4],
pub sheen_trans_ior_disp: [f32; 4],
pub thick_sub_film: [f32; 4],
pub tint_absorption: [f32; 4],
pub emission_film: [f32; 4],
pub normal_maps: [f32; 4],
pub maps_content: [f32; 4],
pub age_a: [f32; 4],
pub age_b: [f32; 4],
pub layer0: [f32; 4],
pub layer1: [f32; 4],
pub layer2: [f32; 4],
pub layer3: [f32; 4],
pub tail: [f32; 4],
pub params: [[f32; 4]; 16],
}Fields§
§base_roughness: [f32; 4]§metal_spec_coat: [f32; 4]§sheen_trans_ior_disp: [f32; 4]§thick_sub_film: [f32; 4]§tint_absorption: [f32; 4]§emission_film: [f32; 4]§normal_maps: [f32; 4]§maps_content: [f32; 4]§age_a: [f32; 4]§age_b: [f32; 4]§layer0: [f32; 4]§layer1: [f32; 4]§layer2: [f32; 4]§layer3: [f32; 4]§tail: [f32; 4]§params: [[f32; 4]; 16]Implementations§
Trait Implementations§
Source§impl Clone for PackedMaterial
impl Clone for PackedMaterial
Source§fn clone(&self) -> PackedMaterial
fn clone(&self) -> PackedMaterial
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 moreimpl Copy for PackedMaterial
impl Pod for PackedMaterial
Auto Trait Implementations§
impl Freeze for PackedMaterial
impl RefUnwindSafe for PackedMaterial
impl Send for PackedMaterial
impl Sync for PackedMaterial
impl Unpin for PackedMaterial
impl UnsafeUnpin for PackedMaterial
impl UnwindSafe for PackedMaterial
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
§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.§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.