pub struct MeshletLodConfig {
pub max_meshlets_per_object: u32,
pub lod_distances: Vec<f32>,
pub max_vertices_per_meshlet: u32,
pub max_triangles_per_meshlet: u32,
}Expand description
Meshlet LOD configuration for GPU-driven rendering.
Fields§
§max_meshlets_per_object: u32Maximum meshlets per object. Default: 1024.
lod_distances: Vec<f32>LOD distance thresholds (world units).
max_vertices_per_meshlet: u32Maximum vertices per meshlet. Default: 64.
max_triangles_per_meshlet: u32Maximum triangles per meshlet. Default: 126.
Trait Implementations§
Source§impl Clone for MeshletLodConfig
impl Clone for MeshletLodConfig
Source§fn clone(&self) -> MeshletLodConfig
fn clone(&self) -> MeshletLodConfig
Returns a duplicate 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 MeshletLodConfig
impl Debug for MeshletLodConfig
Source§impl Default for MeshletLodConfig
impl Default for MeshletLodConfig
Source§impl<'de> Deserialize<'de> for MeshletLodConfig
impl<'de> Deserialize<'de> for MeshletLodConfig
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 Freeze for MeshletLodConfig
impl RefUnwindSafe for MeshletLodConfig
impl Send for MeshletLodConfig
impl Sync for MeshletLodConfig
impl Unpin for MeshletLodConfig
impl UnsafeUnpin for MeshletLodConfig
impl UnwindSafe for MeshletLodConfig
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