#[repr(C)]pub struct RayMarchUniforms {Show 15 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 params: [f32; 4],
pub eye_inverse: [[f32; 4]; 4],
pub near: f32,
pub _pad3: [f32; 3],
}Expand description
Bind group 0, binding 0, std140: every vec3 pads to 16 bytes.
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§params: [f32; 4]Four scalar knobs; semantics are up to the user shader.
eye_inverse: [[f32; 4]; 4]Inverse of the eye’s isometry on the domain’s embedding; the view map composes it first.
near: f32Near distance of the root projection; see crate::view.
_pad3: [f32; 3]Trait Implementations§
Source§impl Clone for RayMarchUniforms
impl Clone for RayMarchUniforms
Source§fn clone(&self) -> RayMarchUniforms
fn clone(&self) -> RayMarchUniforms
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 RayMarchUniforms
impl Debug for RayMarchUniforms
Source§impl Default for RayMarchUniforms
impl Default for RayMarchUniforms
impl Copy for RayMarchUniforms
impl Pod for RayMarchUniforms
Auto Trait Implementations§
impl Freeze for RayMarchUniforms
impl RefUnwindSafe for RayMarchUniforms
impl Send for RayMarchUniforms
impl Sync for RayMarchUniforms
impl Unpin for RayMarchUniforms
impl UnsafeUnpin for RayMarchUniforms
impl UnwindSafe for RayMarchUniforms
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.