pub struct MeshParams {
pub hint: MeshHint,
pub layout: VertexLayout,
pub index_format: IndexFormat,
pub primitive: MeshPrimitive,
pub num_verts: usize,
pub num_idxes: usize,
pub sub_mesh_offsets: SmallVec<[usize; 8]>,
pub aabb: Aabb3<f32>,
}
Expand description
The setup parameters of mesh object.
Fields§
§hint: MeshHint
Usage hints.
layout: VertexLayout
How a single vertex structure looks like.
index_format: IndexFormat
Index format
primitive: MeshPrimitive
How the input vertex data is used to assemble primitives.
num_verts: usize
The number of vertices in this mesh.
num_idxes: usize
The number of indices in this mesh.
sub_mesh_offsets: SmallVec<[usize; 8]>
The start indices of sub-meshes.
aabb: Aabb3<f32>
Trivial bounding box of vertices.
Implementations§
source§impl MeshParams
impl MeshParams
Trait Implementations§
source§impl Clone for MeshParams
impl Clone for MeshParams
source§fn clone(&self) -> MeshParams
fn clone(&self) -> MeshParams
Returns a copy 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 MeshParams
impl Debug for MeshParams
source§impl Default for MeshParams
impl Default for MeshParams
source§impl<'de> Deserialize<'de> for MeshParams
impl<'de> Deserialize<'de> for MeshParams
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl RefUnwindSafe for MeshParams
impl Send for MeshParams
impl Sync for MeshParams
impl Unpin for MeshParams
impl UnwindSafe for MeshParams
Blanket Implementations§
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
. Read more§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
. Read more§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s. Read more§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s. Read more