struct ArraySizeMember(Handle<GlobalVariable>);
Expand description
Wrapper for generating struct _mslBufferSizes
member names for
runtime-sized array lengths.
On Metal, wgpu_hal
passes the element counts for all runtime-sized arrays
as an argument to the entry point. This argument’s type in the MSL is
struct _mslBufferSizes
, a Naga-synthesized struct with a uint
member for
each global variable containing a runtime-sized array.
If global
is a Handle
for a GlobalVariable
that contains a
runtime-sized array, then the value ArraySize(global)
implements
std::fmt::Display
, formatting as the name of the struct member carrying
the number of elements in that runtime-sized array.
Tuple Fields§
§0: Handle<GlobalVariable>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ArraySizeMember
impl RefUnwindSafe for ArraySizeMember
impl Send for ArraySizeMember
impl Sync for ArraySizeMember
impl Unpin for ArraySizeMember
impl UnwindSafe for ArraySizeMember
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