mirror of
https://github.com/odin-lang/Odin.git
synced 2026-02-14 07:13:14 +00:00
bit_field type fix
This commit is contained in:
@@ -647,8 +647,8 @@ def parse_structs(f):
|
||||
if not bitfield:
|
||||
bitfield = Bitfield(field_type)
|
||||
|
||||
# Add the field to the bitfield
|
||||
bitfield.add_field(bf_field[1], 'bool' if bitsize == 1 else field_type, bitsize)
|
||||
# Add the field to the bitfield
|
||||
bitfield.add_field(bf_field[1], field_type, bitsize)
|
||||
continue
|
||||
|
||||
# Close the bitfield because this is not a field
|
||||
|
||||
14
vendor/vulkan/structs.odin
vendored
14
vendor/vulkan/structs.odin
vendored
@@ -10013,13 +10013,13 @@ VideoH265SubLayerHrdParameters :: struct {
|
||||
}
|
||||
|
||||
VideoH265HrdFlags :: bit_field u32 {
|
||||
nal_hrd_parameters_present_flag: bool | 1,
|
||||
vcl_hrd_parameters_present_flag: bool | 1,
|
||||
sub_pic_hrd_params_present_flag: bool | 1,
|
||||
sub_pic_cpb_params_in_pic_timing_sei_flag: bool | 1,
|
||||
fixed_pic_rate_general_flag: u32 | 8,
|
||||
fixed_pic_rate_within_cvs_flag: u32 | 8,
|
||||
low_delay_hrd_flag: u32 | 8,
|
||||
nal_hrd_parameters_present_flag: u32 | 1,
|
||||
vcl_hrd_parameters_present_flag: u32 | 1,
|
||||
sub_pic_hrd_params_present_flag: u32 | 1,
|
||||
sub_pic_cpb_params_in_pic_timing_sei_flag: u32 | 1,
|
||||
fixed_pic_rate_general_flag: u32 | 8,
|
||||
fixed_pic_rate_within_cvs_flag: u32 | 8,
|
||||
low_delay_hrd_flag: u32 | 8,
|
||||
}
|
||||
|
||||
VideoH265HrdParameters :: struct {
|
||||
|
||||
Reference in New Issue
Block a user