shame
shame copied to clipboard
add explicit `#[gpu_repr(storage)]` attribute to `#[derive(GpuLayout)]`
Right now, the WGSL storage layout is the default layout applied to structs when #[derive(GpuLayout)] is used.
For consistency, and to allow maybe adding a #[gpu_repr(uniform)] in the future, the following changes need to be made:
- rename
TypeLayoutRules::WgsltoTypeLayoutRules::Storage - rename
TypeLayoutRulestoshame::mem::Repr - add a
shame::mem::Reprargument to conversions from their::Typefamily toTypeLayout - add a
#[gpu_repr(storage)]attribute similar to the existing#[gpu_repr(packed)]to#[derive(GpuLayout)]