pub struct MeshPoolDesc<'a> {
pub label: Option<&'a str>,
pub vertex_capacity: u32,
pub index_capacity: u32,
pub mesh_capacity: u32,
}Expand description
How large a MeshPool’s two buffers are, and what to call them.
Fields§
§label: Option<&'a str>Debug name; the two buffers and the semaphore are named after it.
vertex_capacity: u32Vertices the pool can hold. Fixed — see the module docs.
index_capacity: u32Indices the pool can hold.
mesh_capacity: u32Meshes the pool can hold at once, which is the length of the mesh table.
Counted in meshes rather than in bytes, so it is the largest
MeshPool::table_index plus one and the number an instance’s mesh id
must stay below.
Trait Implementations§
Source§impl<'a> Clone for MeshPoolDesc<'a>
impl<'a> Clone for MeshPoolDesc<'a>
impl<'a> Copy for MeshPoolDesc<'a>
Source§impl<'a> Debug for MeshPoolDesc<'a>
impl<'a> Debug for MeshPoolDesc<'a>
impl<'a> Eq for MeshPoolDesc<'a>
Source§impl<'a> PartialEq for MeshPoolDesc<'a>
impl<'a> PartialEq for MeshPoolDesc<'a>
impl<'a> StructuralPartialEq for MeshPoolDesc<'a>
Auto Trait Implementations§
impl<'a> Forget for MeshPoolDesc<'a>
impl<'a> Freeze for MeshPoolDesc<'a>
impl<'a> RefUnwindSafe for MeshPoolDesc<'a>
impl<'a> Send for MeshPoolDesc<'a>
impl<'a> Sync for MeshPoolDesc<'a>
impl<'a> Unpin for MeshPoolDesc<'a>
impl<'a> UnsafeUnpin for MeshPoolDesc<'a>
impl<'a> UnwindSafe for MeshPoolDesc<'a>
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