#[repr(C)]pub struct ParticleView {
pub vp: [[f32; 4]; 4],
pub cam_right: [f32; 3],
pub _pad0: f32,
pub cam_up: [f32; 3],
pub _pad1: f32,
}Expand description
Per-frame view inputs to the particle render pass. Matches ParticleView in
shaders/particle.slang. 96 bytes.
Fields§
§vp: [[f32; 4]; 4]View-projection matrix used by the main pass.
cam_right: [f32; 3]World-space camera right vector: drives the first billboard axis. The shader reads a float4 whose trailing component is unused padding.
_pad0: f32Padding so the field layout matches the shader-side struct.
cam_up: [f32; 3]World-space camera up vector: drives the second billboard axis.
_pad1: f32Padding so the field layout matches the shader-side struct.
Trait Implementations§
Source§impl Clone for ParticleView
impl Clone for ParticleView
Source§fn clone(&self) -> ParticleView
fn clone(&self) -> ParticleView
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 ParticleView
impl NoUninit for ParticleView
Auto Trait Implementations§
impl Freeze for ParticleView
impl RefUnwindSafe for ParticleView
impl Send for ParticleView
impl Sync for ParticleView
impl Unpin for ParticleView
impl UnsafeUnpin for ParticleView
impl UnwindSafe for ParticleView
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