mirror of
https://github.com/gfx-rs/wgpu.git
synced 2025-02-20 19:02:57 +00:00
Use repr(transparent)
for shader flags
This allows cbindgen to generate bindings for shader flags in wgpu-native
This commit is contained in:
parent
2287ae3f8a
commit
45b5ddcb83
@ -483,6 +483,7 @@ bitflags::bitflags! {
|
||||
}
|
||||
|
||||
bitflags::bitflags! {
|
||||
#[repr(transparent)]
|
||||
#[derive(Default)]
|
||||
#[cfg_attr(feature = "trace", derive(serde::Serialize))]
|
||||
#[cfg_attr(feature = "replay", derive(serde::Deserialize))]
|
||||
|
Loading…
Reference in New Issue
Block a user