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