#[repr(C)]pub struct GbModelPush {
pub cur_model: [[f32; 4]; 4],
pub prev_model: [[f32; 4]; 4],
pub roughness: f32,
pub _pad: [f32; 3],
}Expand description
The G-buffer pre-pass push constant (shared GLSL PushBlock): cur_model then
prev_model (two column-major mat4) then roughness, plus a trailing pad to
16-byte alignment. The motion vector reads cur/prev model; the fragment reads
roughness.
Fields§
§cur_model: [[f32; 4]; 4]This frame’s model matrix, column-major.
prev_model: [[f32; 4]; 4]The previous frame’s model matrix, for velocity.
roughness: f32Perceptual roughness in [0, 1].
_pad: [f32; 3]Padding so the field layout matches the shader-side struct.
Trait Implementations§
Source§impl Clone for GbModelPush
impl Clone for GbModelPush
Source§fn clone(&self) -> GbModelPush
fn clone(&self) -> GbModelPush
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 GbModelPush
Auto Trait Implementations§
impl Freeze for GbModelPush
impl RefUnwindSafe for GbModelPush
impl Send for GbModelPush
impl Sync for GbModelPush
impl Unpin for GbModelPush
impl UnsafeUnpin for GbModelPush
impl UnwindSafe for GbModelPush
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