Răsfoiți Sursa

bit_field type fix

Reio Piller 5 luni în urmă
părinte
comite
942f990e50

+ 2 - 2
vendor/vulkan/_gen/create_vulkan_odin_wrapper.py

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

+ 7 - 7
vendor/vulkan/structs.odin

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