#[repr(C)]pub struct RaymarchView {
pub vp: [[f32; 4]; 4],
pub inv_vp: [[f32; 4]; 4],
pub cam_pos: [f32; 3],
pub _pad0: f32,
pub viewport: [f32; 2],
pub time: f32,
pub prefilter_mip_count: f32,
}Expand description
The raymarch pass per-frame RaymarchView cbuffer (b0, 160 bytes; aligned to
256 for the D3D12 cbuffer). Mirrors the Metal RaymarchView.
Fields§
§vp: [[f32; 4]; 4]View-projection matrix, column-major.
inv_vp: [[f32; 4]; 4]Inverse view-projection matrix, column-major.
cam_pos: [f32; 3]World-space camera position.
_pad0: f32Padding so the field layout matches the shader-side struct.
viewport: [f32; 2]Render-target size in pixels.
time: f32Seconds since the world started.
prefilter_mip_count: f32IBL cubemap mip count; 0 when there is no IBL.
Trait Implementations§
Source§impl Clone for RaymarchView
impl Clone for RaymarchView
Source§fn clone(&self) -> RaymarchView
fn clone(&self) -> RaymarchView
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 RaymarchView
Auto Trait Implementations§
impl Freeze for RaymarchView
impl RefUnwindSafe for RaymarchView
impl Send for RaymarchView
impl Sync for RaymarchView
impl Unpin for RaymarchView
impl UnsafeUnpin for RaymarchView
impl UnwindSafe for RaymarchView
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