#[repr(C)]pub struct SsrPrepassMat {
pub roughness: f32,
pub _pad: [f32; 3],
}Expand description
Per-draw material roughness pushed to the SSR pre-pass fragment at
buffer(0). Layout matches the PpMat struct in the SSR pre-pass MSL.
Fields§
§roughness: f32Perceptual roughness [0, 1] of this draw’s material.
_pad: [f32; 3]Padding so the field layout matches the shader-side struct.
Trait Implementations§
Source§impl Clone for SsrPrepassMat
impl Clone for SsrPrepassMat
Source§fn clone(&self) -> SsrPrepassMat
fn clone(&self) -> SsrPrepassMat
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 SsrPrepassMat
impl NoUninit for SsrPrepassMat
Auto Trait Implementations§
impl Freeze for SsrPrepassMat
impl RefUnwindSafe for SsrPrepassMat
impl Send for SsrPrepassMat
impl Sync for SsrPrepassMat
impl Unpin for SsrPrepassMat
impl UnsafeUnpin for SsrPrepassMat
impl UnwindSafe for SsrPrepassMat
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