#[repr(C)]pub struct DecalParams {
pub model: [[f32; 4]; 4],
pub inv_model: [[f32; 4]; 4],
pub tint: [f32; 4],
pub fade_pow: f32,
pub _pad0: f32,
pub _pad1: f32,
pub _pad2: f32,
}Expand description
Per-decal uniforms uploaded before each draw. Matches DecalParams in
shaders/decal.slang. 160 bytes (two float4x4s, a float4 tint, four scalars).
Fields§
§model: [[f32; 4]; 4]Model matrix, column-major.
inv_model: [[f32; 4]; 4]Inverse model matrix, column-major.
tint: [f32; 4]Linear RGBA tint multiplied into the sampled image.
fade_pow: f32Exponent of the edge fade curve.
_pad0: f32Padding so the field layout matches the shader-side struct.
_pad1: f32Padding so the field layout matches the shader-side struct.
_pad2: f32Padding so the field layout matches the shader-side struct.
Trait Implementations§
Source§impl Clone for DecalParams
impl Clone for DecalParams
Source§fn clone(&self) -> DecalParams
fn clone(&self) -> DecalParams
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 DecalParams
impl NoUninit for DecalParams
Auto Trait Implementations§
impl Freeze for DecalParams
impl RefUnwindSafe for DecalParams
impl Send for DecalParams
impl Sync for DecalParams
impl Unpin for DecalParams
impl UnsafeUnpin for DecalParams
impl UnwindSafe for DecalParams
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