-
-
Notifications
You must be signed in to change notification settings - Fork 93
Closed as not planned
Description
Lines 179 to 180 in d10fbfc
impl_contiguous! { | |
bool as u8 in [0, 1]; |
This assumes that a bool
takes values 0=false
, 1=true
, which is true on all platform Rust currently supports but is not necessarily globally true, see rust-lang/unsafe-code-guidelines#53.
This is quite minor but I did notice this crate goes out of its way to handle spirv correctly so it does seem worth at least documenting in code and perhaps adding additional runtime-optimizeable asserts for.
Metadata
Metadata
Assignees
Labels
No labels