Browse Source

Update vulkan bindings for to work with the new keyword `bit_field`

gingerBill 1 year ago
parent
commit
b12ba1508e
2 changed files with 15 additions and 15 deletions
  1. 1 1
      vendor/vulkan/_gen/create_vulkan_odin_wrapper.py
  2. 14 14
      vendor/vulkan/structs.odin

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

@@ -565,7 +565,7 @@ def parse_structs(f):
                 # The second way has many fields that are each 1 bit
                 # The second way has many fields that are each 1 bit
                 elif int(fname) == 1:
                 elif int(fname) == 1:
                     bit_field_type = do_type(bit_field[0], prev_name, fname)
                     bit_field_type = do_type(bit_field[0], prev_name, fname)
-                    ffields.append(tuple(["bit_field", bit_field_type, comment]))
+                    ffields.append(tuple(["bitfield", bit_field_type, comment]))
                     break
                     break
                     
                     
 
 

+ 14 - 14
vendor/vulkan/structs.odin

@@ -7032,7 +7032,7 @@ WaylandSurfaceCreateInfoKHR :: struct {
 }
 }
 
 
 VideoH264SpsVuiFlags :: struct {
 VideoH264SpsVuiFlags :: struct {
-	bit_field: u32,
+	bitfield: u32,
 }
 }
 
 
 VideoH264HrdParameters :: struct {
 VideoH264HrdParameters :: struct {
@@ -7069,7 +7069,7 @@ VideoH264SequenceParameterSetVui :: struct {
 }
 }
 
 
 VideoH264SpsFlags :: struct {
 VideoH264SpsFlags :: struct {
-	bit_field: u32,
+	bitfield: u32,
 }
 }
 
 
 VideoH264ScalingLists :: struct {
 VideoH264ScalingLists :: struct {
@@ -7108,7 +7108,7 @@ VideoH264SequenceParameterSet :: struct {
 }
 }
 
 
 VideoH264PpsFlags :: struct {
 VideoH264PpsFlags :: struct {
-	bit_field: u32,
+	bitfield: u32,
 }
 }
 
 
 VideoH264PictureParameterSet :: struct {
 VideoH264PictureParameterSet :: struct {
@@ -7140,7 +7140,7 @@ VideoH265SubLayerHrdParameters :: struct {
 }
 }
 
 
 VideoH265HrdFlags :: struct {
 VideoH265HrdFlags :: struct {
-	bit_field: u32,
+	bitfield: u32,
 }
 }
 
 
 VideoH265HrdParameters :: struct {
 VideoH265HrdParameters :: struct {
@@ -7162,11 +7162,11 @@ VideoH265HrdParameters :: struct {
 }
 }
 
 
 VideoH265VpsFlags :: struct {
 VideoH265VpsFlags :: struct {
-	bit_field: u32,
+	bitfield: u32,
 }
 }
 
 
 VideoH265ProfileTierLevelFlags :: struct {
 VideoH265ProfileTierLevelFlags :: struct {
-	bit_field: u32,
+	bitfield: u32,
 }
 }
 
 
 VideoH265ProfileTierLevel :: struct {
 VideoH265ProfileTierLevel :: struct {
@@ -7200,7 +7200,7 @@ VideoH265ScalingLists :: struct {
 }
 }
 
 
 VideoH265SpsVuiFlags :: struct {
 VideoH265SpsVuiFlags :: struct {
-	bit_field: u32,
+	bitfield: u32,
 }
 }
 
 
 VideoH265SequenceParameterSetVui :: struct {
 VideoH265SequenceParameterSetVui :: struct {
@@ -7237,11 +7237,11 @@ VideoH265PredictorPaletteEntries :: struct {
 }
 }
 
 
 VideoH265SpsFlags :: struct {
 VideoH265SpsFlags :: struct {
-	bit_field: u32,
+	bitfield: u32,
 }
 }
 
 
 VideoH265ShortTermRefPicSetFlags :: struct {
 VideoH265ShortTermRefPicSetFlags :: struct {
-	bit_field: u32,
+	bitfield: u32,
 }
 }
 
 
 VideoH265ShortTermRefPicSet :: struct {
 VideoH265ShortTermRefPicSet :: struct {
@@ -7309,7 +7309,7 @@ VideoH265SequenceParameterSet :: struct {
 }
 }
 
 
 VideoH265PpsFlags :: struct {
 VideoH265PpsFlags :: struct {
-	bit_field: u32,
+	bitfield: u32,
 }
 }
 
 
 VideoH265PictureParameterSet :: struct {
 VideoH265PictureParameterSet :: struct {
@@ -7352,7 +7352,7 @@ VideoH265PictureParameterSet :: struct {
 }
 }
 
 
 VideoDecodeH264PictureInfoFlags :: struct {
 VideoDecodeH264PictureInfoFlags :: struct {
-	bit_field: u32,
+	bitfield: u32,
 }
 }
 
 
 VideoDecodeH264PictureInfo :: struct {
 VideoDecodeH264PictureInfo :: struct {
@@ -7367,7 +7367,7 @@ VideoDecodeH264PictureInfo :: struct {
 }
 }
 
 
 VideoDecodeH264ReferenceInfoFlags :: struct {
 VideoDecodeH264ReferenceInfoFlags :: struct {
-	bit_field: u32,
+	bitfield: u32,
 }
 }
 
 
 VideoDecodeH264ReferenceInfo :: struct {
 VideoDecodeH264ReferenceInfo :: struct {
@@ -7378,7 +7378,7 @@ VideoDecodeH264ReferenceInfo :: struct {
 }
 }
 
 
 VideoDecodeH265PictureInfoFlags :: struct {
 VideoDecodeH265PictureInfoFlags :: struct {
-	bit_field: u32,
+	bitfield: u32,
 }
 }
 
 
 VideoDecodeH265PictureInfo :: struct {
 VideoDecodeH265PictureInfo :: struct {
@@ -7396,7 +7396,7 @@ VideoDecodeH265PictureInfo :: struct {
 }
 }
 
 
 VideoDecodeH265ReferenceInfoFlags :: struct {
 VideoDecodeH265ReferenceInfoFlags :: struct {
-	bit_field: u32,
+	bitfield: u32,
 }
 }
 
 
 VideoDecodeH265ReferenceInfo :: struct {
 VideoDecodeH265ReferenceInfo :: struct {