#[repr(C)]pub struct MainPush {
pub model: [[f32; 4]; 4],
pub roughness: f32,
pub metallic: f32,
pub _mpad0: f32,
pub _mpad1: f32,
pub tint: [f32; 3],
pub _mpad2: f32,
pub emissive: [f32; 3],
pub _mpad3: f32,
}Expand description
The main-pass push constant (std430): the model matrix, roughness/metallic with two pads, then tint and emissive vec3s each followed by a pad (112 B total). Matches ModelUniforms(64) + MaterialUniforms(48) packed together.
Fields§
§model: [[f32; 4]; 4]Model matrix, column-major.
roughness: f32Perceptual roughness in [0, 1].
metallic: f32Metalness in [0, 1].
_mpad0: f32Padding so the field layout matches the shader-side struct.
_mpad1: f32Padding so the field layout matches the shader-side struct.
tint: [f32; 3]Linear RGB base-colour tint.
_mpad2: f32Padding so the field layout matches the shader-side struct.
emissive: [f32; 3]Linear RGB emissive radiance.
_mpad3: f32Padding so the field layout matches the shader-side struct.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MainPush
impl RefUnwindSafe for MainPush
impl Send for MainPush
impl Sync for MainPush
impl Unpin for MainPush
impl UnsafeUnpin for MainPush
impl UnwindSafe for MainPush
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