all: use explicit backing integers for packed structs

This commit is contained in:
Ali Chraghi 2023-03-28 15:11:13 +03:30 committed by Stephen Gutekanst
parent 4ebf238c5e
commit 266b651b34
9 changed files with 18 additions and 18 deletions

View file

@ -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,

View file

@ -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,