#[repr(C)]pub struct Hyperslice4DUniforms {Show 22 fields
pub camera_pos: [f32; 3],
pub _pad0: f32,
pub camera_forward: [f32; 3],
pub _pad1: f32,
pub camera_right: [f32; 3],
pub _pad2: f32,
pub camera_up: [f32; 3],
pub fov_y_tan: f32,
pub resolution: [f32; 2],
pub time: f32,
pub tick: f32,
pub w_slice: f32,
pub body_count: f32,
pub viewport_origin: [f32; 2],
pub params: [f32; 4],
pub near: f32,
pub body_offset: f32,
pub _pad3: [f32; 2],
pub sky_below: [f32; 3],
pub _pad4: f32,
pub sky_above: [f32; 3],
pub _pad5: f32,
}Expand description
Bind group 0, binding 0; matches the kernel’s Uniforms.
Fields§
§camera_pos: [f32; 3]§_pad0: f32§camera_forward: [f32; 3]§_pad1: f32§camera_right: [f32; 3]§_pad2: f32§camera_up: [f32; 3]§fov_y_tan: f32§resolution: [f32; 2]§time: f32§tick: f32§w_slice: f32§body_count: f32§viewport_origin: [f32; 2]Framebuffer pixel of the viewport’s top-left.
params: [f32; 4]§near: f32§body_offset: f32§_pad3: [f32; 2]§sky_below: [f32; 3]§_pad4: f32§sky_above: [f32; 3]§_pad5: f32Trait Implementations§
Source§impl Clone for Hyperslice4DUniforms
impl Clone for Hyperslice4DUniforms
Source§fn clone(&self) -> Hyperslice4DUniforms
fn clone(&self) -> Hyperslice4DUniforms
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 Hyperslice4DUniforms
impl Debug for Hyperslice4DUniforms
Source§impl Default for Hyperslice4DUniforms
impl Default for Hyperslice4DUniforms
impl Copy for Hyperslice4DUniforms
impl Pod for Hyperslice4DUniforms
Auto Trait Implementations§
impl Freeze for Hyperslice4DUniforms
impl RefUnwindSafe for Hyperslice4DUniforms
impl Send for Hyperslice4DUniforms
impl Sync for Hyperslice4DUniforms
impl Unpin for Hyperslice4DUniforms
impl UnsafeUnpin for Hyperslice4DUniforms
impl UnwindSafe for Hyperslice4DUniforms
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
§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.