Struct ark_api::render::RenderMeshInstance
source · [−]#[repr(C, align(16))]pub struct RenderMeshInstance {
pub world_transform: [f32; 16],
pub mesh: u64,
pub style: RenderMeshStyle,
pub instance_id: u64,
pub materials_offset: u32,
pub materials_len: u32,
pub _pad: [u8; 8],
}
Fields
world_transform: [f32; 16]
mesh: u64
style: RenderMeshStyle
instance_id: u64
Stable instance ID for identifying an instance over frame.
Value of 0 is treated as no instance ID is used.
materials_offset: u32
The offset used when indexing into an materials overrides array.
materials_len: u32
_pad: [u8; 8]
Trait Implementations
sourceimpl Clone for RenderMeshInstance2
impl Clone for RenderMeshInstance2
sourcefn clone(&self) -> RenderMeshInstance2
fn clone(&self) -> RenderMeshInstance2
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 RenderMeshInstance2
impl Debug for RenderMeshInstance2
impl Copy for RenderMeshInstance2
impl Pod for RenderMeshInstance2
Auto Trait Implementations
impl RefUnwindSafe for RenderMeshInstance2
impl Send for RenderMeshInstance2
impl Sync for RenderMeshInstance2
impl Unpin for RenderMeshInstance2
impl UnwindSafe for RenderMeshInstance2
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