Make TypeInner::scalar_width return the width in bytes #5278
Labels
area: api
Issues related to API surface
naga
Shader Translator
type: enhancement
New feature or request
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
The text was updated successfully, but these errors were encountered: