#[repr(C)]pub struct LineView {
pub vp: [[f32; 4]; 4],
pub occluded_alpha: f32,
pub _pad: [f32; 3],
}Expand description
Per-frame view inputs to the line pass. Matches LineView in
shaders/line.slang. 80 bytes.
Fields§
§vp: [[f32; 4]; 4]View-projection matrix used by the main pass (jittered when TAA is on), so a line lands on the same pixel the geometry it sits on did.
occluded_alpha: f32Alpha multiplier applied where a line falls behind scene geometry.
_pad: [f32; 3]Padding so the field layout matches the shader-side struct.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LineView
impl RefUnwindSafe for LineView
impl Send for LineView
impl Sync for LineView
impl Unpin for LineView
impl UnsafeUnpin for LineView
impl UnwindSafe for LineView
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