pub struct WindLayer {
pub texels: [u32; 2],
pub rgba8: Vec<u8>,
}Expand description
One authored wind layer, as the texels crcbl_wind encodes them into.
Here rather than in a module of its own, because grass is the field’s
only GPU consumer at this rung: docs/plan/56-wind.md’s decision 6 gives the
GPU copy one bind group, and that bind group is bindings 0 to 3 of
grass_gen.slang. The moment a second consumer wants it — trees at T1,
water at a later rung — it becomes a holder of its own, and docs/backlog.md
carries that.
The bytes are the same RGBA8 a crcbl_wind::DirectionLayer or
crcbl_wind::IntensityLayer was built from, so a caller hands one
description to both copies rather than encoding it twice.
Fields§
§texels: [u32; 2]Texels along +X and along +Z.
rgba8: Vec<u8>texels[0] · texels[1] · 4 bytes of RGBA8.
Trait Implementations§
impl Eq for WindLayer
impl StructuralPartialEq for WindLayer
Auto Trait Implementations§
impl Freeze for WindLayer
impl RefUnwindSafe for WindLayer
impl Send for WindLayer
impl Sync for WindLayer
impl Unpin for WindLayer
impl UnsafeUnpin for WindLayer
impl UnwindSafe for WindLayer
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