wgpu icon indicating copy to clipboard operation
wgpu copied to clipboard

Make TypeInner::scalar_width return the width in bytes

Open atlv24 opened this issue 1 year ago • 0 comments

TypeInner::scalar_width currently returns the scalar width in bits. This is counter-intuitive, when the width is stored in bytes and assumed to be bytes everywhere else. If the current functionality is to be maintained, it should be renamed to scalar_width_bits and documented.

https://github.com/gfx-rs/wgpu/blob/trunk/naga/src/proc/mod.rs#L267

atlv24 avatar Feb 21 '24 06:02 atlv24