pub struct Model {
pub vertices: Vec<Vertex>,
pub transform: Matrix4<f32>,
pub gpu_data: GpuData,
pub is_dirty: bool,
}
Expand description
Data structure with vertex data and underlying GPU representation, shared among all instances.
Fields§
§vertices: Vec<Vertex>
The vertex data
transform: Matrix4<f32>
A static per-model (not per-instance) transform
gpu_data: GpuData
The params which are sent through the pipeline to the shader program
is_dirty: bool
Flag to indicate the model gpu data needs to be refreshed
Implementations§
Auto Trait Implementations§
impl Freeze for Model
impl !RefUnwindSafe for Model
impl Send for Model
impl Sync for Model
impl Unpin for Model
impl !UnwindSafe for Model
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