pub struct Mesh<D: Device> {
pub vb: D::Buffer,
pub ib: D::Buffer,
pub num_indices: u32,
pub aabb_min: Vec3f,
pub aabb_max: Vec3f,
}
Expand description
Compact mesh representation referincing and index buffer, vertex buffer and num index count
Fields§
§vb: D::Buffer
Vertex buffer
ib: D::Buffer
§num_indices: u32
Number of indices to draw from the index buffer
aabb_min: Vec3f
Bounding aabb min
aabb_max: Vec3f
Bounding aabb mix
Trait Implementations§
Auto Trait Implementations§
impl<D> Freeze for Mesh<D>
impl<D> RefUnwindSafe for Mesh<D>
impl<D> Send for Mesh<D>
impl<D> Sync for Mesh<D>
impl<D> Unpin for Mesh<D>
impl<D> UnwindSafe for Mesh<D>
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