pub struct DagOptions {
pub levels: Option<u32>,
pub max_triangles: Option<u32>,
pub max_vertices: Option<u32>,
pub output_triangle_budget: Option<u64>,
}Expand description
DAG 构建选项(与 TS MeshletDagOptions 对应)。
Fields§
§levels: Option<u32>层级数(含原始层),钳制到 1..=8;缺省 4。
max_triangles: Option<u32>簇最大三角形数,透传簇划分;缺省 64。
max_vertices: Option<u32>簇最大顶点数;缺省 64。
output_triangle_budget: Option<u64>输出三角总量预算,防失控;缺省 8,000,000。
Trait Implementations§
Source§impl Clone for DagOptions
impl Clone for DagOptions
Source§impl Debug for DagOptions
impl Debug for DagOptions
Auto Trait Implementations§
impl Freeze for DagOptions
impl RefUnwindSafe for DagOptions
impl Send for DagOptions
impl Sync for DagOptions
impl Unpin for DagOptions
impl UnsafeUnpin for DagOptions
impl UnwindSafe for DagOptions
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