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
|
|
@ -203,7 +203,7 @@ pub const Image = struct {
|
|||
}
|
||||
};
|
||||
|
||||
pub const PackUASTCFlags = packed struct {
|
||||
pub const PackUASTCFlags = packed struct(u32) {
|
||||
fastest: bool = false,
|
||||
faster: bool = false,
|
||||
default: bool = false,
|
||||
|
|
|
|||
|
|
@ -117,7 +117,7 @@ pub const Transcoder = struct {
|
|||
block_count: u32,
|
||||
};
|
||||
|
||||
pub const DecodeFlags = packed struct {
|
||||
pub const DecodeFlags = packed struct(u32) {
|
||||
_padding: u1 = 0,
|
||||
pvrtc_decode_to_next_pow_2: bool = false,
|
||||
transcode_alpha_data_to_opaque_formats: bool = false,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue