#[repr(C)]pub struct CullHizParams {
pub prev_view_proj: [[f32; 4]; 4],
pub hiz_size: [f32; 2],
pub hiz_mip_count: u32,
pub hiz_enabled: u32,
}Expand description
Cull-side Hi-Z uniforms (cull.comp, std140, 80 bytes): the previous frame’s un-jittered view-projection, the Hi-Z mip-0 dimensions, the mip count, and an enable flag. Mirrors the Metal / DirectX CullUniforms tail.
Fields§
§prev_view_proj: [[f32; 4]; 4]Previous frame’s un-jittered view-projection. Projects each AABB into the
depth space the Hi-Z pyramid was reduced from (M * v).
hiz_size: [f32; 2]Hi-Z mip-0 dimensions (in texels).
hiz_mip_count: u32How many mip levels live in the bound texture.
hiz_enabled: u320 skips the Hi-Z test entirely (first frame / after a resize, before a valid pyramid exists).
Trait Implementations§
Source§impl Clone for CullHizParams
impl Clone for CullHizParams
Source§fn clone(&self) -> CullHizParams
fn clone(&self) -> CullHizParams
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CullHizParams
Auto Trait Implementations§
impl Freeze for CullHizParams
impl RefUnwindSafe for CullHizParams
impl Send for CullHizParams
impl Sync for CullHizParams
impl Unpin for CullHizParams
impl UnsafeUnpin for CullHizParams
impl UnwindSafe for CullHizParams
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