all: use explicit backing integers for packed structs
This commit is contained in:
parent
4ebf238c5e
commit
266b651b34
9 changed files with 18 additions and 18 deletions
|
|
@ -29,7 +29,7 @@ pub const Buffer = opaque {
|
|||
unmapped_before_callback = 0x00000005,
|
||||
};
|
||||
|
||||
pub const UsageFlags = packed struct {
|
||||
pub const UsageFlags = packed struct(u32) {
|
||||
map_read: bool = false,
|
||||
map_write: bool = false,
|
||||
copy_src: bool = false,
|
||||
|
|
|
|||
|
|
@ -136,7 +136,7 @@ pub const Texture = opaque {
|
|||
uint = 0x00000005,
|
||||
};
|
||||
|
||||
pub const UsageFlags = packed struct {
|
||||
pub const UsageFlags = packed struct(u32) {
|
||||
copy_src: bool = false,
|
||||
copy_dst: bool = false,
|
||||
texture_binding: bool = false,
|
||||
|
|
|
|||
|
|
@ -410,7 +410,7 @@ pub const VertexStepMode = enum(u32) {
|
|||
vertex_buffer_not_used = 0x00000002,
|
||||
};
|
||||
|
||||
pub const ColorWriteMaskFlags = packed struct {
|
||||
pub const ColorWriteMaskFlags = packed struct(u32) {
|
||||
red: bool = false,
|
||||
green: bool = false,
|
||||
blue: bool = false,
|
||||
|
|
@ -437,7 +437,7 @@ pub const ColorWriteMaskFlags = packed struct {
|
|||
}
|
||||
};
|
||||
|
||||
pub const MapModeFlags = packed struct {
|
||||
pub const MapModeFlags = packed struct(u32) {
|
||||
read: bool = false,
|
||||
write: bool = false,
|
||||
|
||||
|
|
@ -457,7 +457,7 @@ pub const MapModeFlags = packed struct {
|
|||
}
|
||||
};
|
||||
|
||||
pub const ShaderStageFlags = packed struct {
|
||||
pub const ShaderStageFlags = packed struct(u32) {
|
||||
vertex: bool = false,
|
||||
fragment: bool = false,
|
||||
compute: bool = false,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue