Struct CullUniformsGpu
#[repr(C)]pub struct CullUniformsGpu {
pub view_proj: [[f32; 4]; 4],
pub view_matrix: [[f32; 4]; 4],
pub frustum_planes: [[f32; 4]; 6],
pub camera_pos_and_focal_px: [f32; 4],
pub viewport_and_hzb_dims: [f32; 4],
pub lod_thresholds_px: [f32; 4],
pub counts_and_flags: [u32; 4],
}Expand description
Uniform buffer layout for instance_cull_indirect.wgsl (288 bytes).
Fields§
§view_proj: [[f32; 4]; 4]§view_matrix: [[f32; 4]; 4]§frustum_planes: [[f32; 4]; 6]§camera_pos_and_focal_px: [f32; 4]xyz = camera world position, w = cot(fov_y * 0.5) * 0.5 * viewport_height.
viewport_and_hzb_dims: [f32; 4]xy = viewport (w, h), zw = HZB mip 0 (w, h).
lod_thresholds_px: [f32; 4]x = LOD0 (128px), y = LOD1 (48px), z = LOD2 (16px), w = min cull px (1.5px).
counts_and_flags: [u32; 4]x = instance_count, y = hzb_mip_count, z = enable_hzb (0/1), w = reserved.
Trait Implementations§
§impl Clone for CullUniformsGpu
impl Clone for CullUniformsGpu
§fn clone(&self) -> CullUniformsGpu
fn clone(&self) -> CullUniformsGpu
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 CullUniformsGpu
§impl Debug for CullUniformsGpu
impl Debug for CullUniformsGpu
impl Pod for CullUniformsGpu
Auto Trait Implementations§
impl Freeze for CullUniformsGpu
impl RefUnwindSafe for CullUniformsGpu
impl Send for CullUniformsGpu
impl Sync for CullUniformsGpu
impl Unpin for CullUniformsGpu
impl UnsafeUnpin for CullUniformsGpu
impl UnwindSafe for CullUniformsGpu
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
impl<T> AnyBitPattern for Twhere
T: Pod,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
§type Bits = T
type Bits = T
Self must have the same layout as the specified Bits except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern.§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self.Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
impl<T> Interleave for Twhere
T: Pod,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more