#[repr(C, align(16))]pub struct PerObjectDataAbi {
pub model_view: Mat4,
pub model_view_proj: Mat4,
pub material_idx: u32,
pub pad0: [u8; 12],
pub inv_squared_scale: Vec3,
}
Expand description
The input structure that the culling shaders/functions output and drawing shaders read.
Fields§
§model_view: Mat4
§model_view_proj: Mat4
§material_idx: u32
§pad0: [u8; 12]
§inv_squared_scale: Vec3
Trait Implementations§
Source§impl Clone for PerObjectDataAbi
impl Clone for PerObjectDataAbi
Source§fn clone(&self) -> PerObjectDataAbi
fn clone(&self) -> PerObjectDataAbi
Returns a duplicate 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 PerObjectDataAbi
impl Debug for PerObjectDataAbi
impl Copy for PerObjectDataAbi
impl Pod for PerObjectDataAbi
Auto Trait Implementations§
impl Freeze for PerObjectDataAbi
impl RefUnwindSafe for PerObjectDataAbi
impl Send for PerObjectDataAbi
impl Sync for PerObjectDataAbi
impl Unpin for PerObjectDataAbi
impl UnwindSafe for PerObjectDataAbi
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
Source§impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
Source§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
.