pub struct UniformsField {
pub name: &'static str,
pub reader: UniformsReader,
pub perturb: fn(&mut FrameUniforms),
}Expand description
One field of mesh::FrameUniforms, or the lanes of one field that a
single reader owns, as the shadow atlas’s depth pass sees it.
Fields§
§name: &'static strThe field’s name, with the lanes after a dot where the field is split —
ambient.xyz and ambient.w.
reader: UniformsReaderWhich pass reads it.
perturb: fn(&mut FrameUniforms)Overwrites this field’s lanes of a block with a value no frame writes there, and leaves every other lane alone.
A UniformsReader::DepthPass entry’s overwrite is a nudge rather
than garbage — the view’s depth pushed by a fraction, a lane toggled — so
that a device test perturbing it still draws geometry into the atlas to
compare.
Trait Implementations§
Source§impl Clone for UniformsField
impl Clone for UniformsField
impl Copy for UniformsField
Auto Trait Implementations§
impl Forget for UniformsField
impl Freeze for UniformsField
impl Move for UniformsField
impl RefUnwindSafe for UniformsField
impl Send for UniformsField
impl Sync for UniformsField
impl Unpin for UniformsField
impl UnsafeUnpin for UniformsField
impl UnwindSafe for UniformsField
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