mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-24 08:21:25 +01:00
Use repr(transparent) for shader flags
This allows cbindgen to generate bindings for shader flags in wgpu-native
This commit is contained in:
1 parent
2287ae3f8a
commit
45b5ddcb83
1 file changed
+1
@@ -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))]
|
||||
|
||||
Reference in new issue
Block a user