pub struct PackedGeometry {
pub vertices: Vec<PackedVertex>,
pub index_bytes: Vec<u8>,
pub index_count: u32,
pub index_format: GpuIndexFormat,
pub aabb: Aabb,
}Expand description
CPU-packed geometry ready for GPU upload.
Fields§
§vertices: Vec<PackedVertex>Interleaved vertices.
index_bytes: Vec<u8>Raw index bytes in index_format.
index_count: u32Number of indices.
index_format: GpuIndexFormatIndex storage format.
aabb: AabbLocal-space geometry bounds.
Trait Implementations§
Source§impl Clone for PackedGeometry
impl Clone for PackedGeometry
Source§fn clone(&self) -> PackedGeometry
fn clone(&self) -> PackedGeometry
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 moreSource§impl Debug for PackedGeometry
impl Debug for PackedGeometry
Source§impl PartialEq for PackedGeometry
impl PartialEq for PackedGeometry
Source§fn eq(&self, other: &PackedGeometry) -> bool
fn eq(&self, other: &PackedGeometry) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PackedGeometry
Auto Trait Implementations§
impl Freeze for PackedGeometry
impl RefUnwindSafe for PackedGeometry
impl Send for PackedGeometry
impl Sync for PackedGeometry
impl Unpin for PackedGeometry
impl UnsafeUnpin for PackedGeometry
impl UnwindSafe for PackedGeometry
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