#[repr(C)]pub struct GBufferView {
pub jittered_vp: [[f32; 4]; 4],
pub cur_vp: [[f32; 4]; 4],
pub prev_vp: [[f32; 4]; 4],
pub view: [[f32; 4]; 4],
}Expand description
Per-frame view inputs to the unified G-buffer pre-pass. The jittered current
VP drives the rasterised position (matching the main pass); view takes the
normal + position into view space (where SSR / SSAO / SSGI / RT work); the
un-jittered cur/prev VPs derive a jitter-free motion vector. Matches GbView
in shaders/gbuffer_prepass.slang. 256 bytes (four float4x4, all naturally
16-aligned, no padding).
Fields§
§jittered_vp: [[f32; 4]; 4]View-projection with this frame’s TAA jitter applied.
cur_vp: [[f32; 4]; 4]This frame’s unjittered view-projection.
prev_vp: [[f32; 4]; 4]The previous frame’s unjittered view-projection.
view: [[f32; 4]; 4]View matrix, column-major.
Trait Implementations§
Source§impl Clone for GBufferView
impl Clone for GBufferView
Source§fn clone(&self) -> GBufferView
fn clone(&self) -> GBufferView
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 GBufferView
impl NoUninit for GBufferView
Auto Trait Implementations§
impl Freeze for GBufferView
impl RefUnwindSafe for GBufferView
impl Send for GBufferView
impl Sync for GBufferView
impl Unpin for GBufferView
impl UnsafeUnpin for GBufferView
impl UnwindSafe for GBufferView
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