pub struct MeshletBounds {
pub sphere: [f32; 4],
pub aabb_min: [f32; 3],
pub aabb_max: [f32; 3],
pub cone: [f32; 4],
}Expand description
单个簇的渲染剔除包围体。
Fields§
§sphere: [f32; 4]包围球 [cx, cy, cz, r],半径为保守 f32(向上含 1 ulp 余量)。
aabb_min: [f32; 3]AABB 最小角点。
aabb_max: [f32; 3]AABB 最大角点。
cone: [f32; 4]法向锥 [nx, ny, nz, cutoff];cutoff 为 -1 表示锥剔除禁用。
Implementations§
Trait Implementations§
Source§impl Clone for MeshletBounds
impl Clone for MeshletBounds
impl Copy for MeshletBounds
Source§impl Debug for MeshletBounds
impl Debug for MeshletBounds
Source§impl PartialEq for MeshletBounds
impl PartialEq for MeshletBounds
impl StructuralPartialEq for MeshletBounds
Auto Trait Implementations§
impl Freeze for MeshletBounds
impl RefUnwindSafe for MeshletBounds
impl Send for MeshletBounds
impl Sync for MeshletBounds
impl Unpin for MeshletBounds
impl UnsafeUnpin for MeshletBounds
impl UnwindSafe for MeshletBounds
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