diff options
| author | gingerBill <bill@gingerbill.org> | 2021-10-20 11:42:06 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2021-10-20 11:42:06 +0100 |
| commit | 07bf64ae5243d3e2f38da9cf9da81ef7a99a6f44 (patch) | |
| tree | 1f910e4d60fb1744246f608e3f73db3df6abbb65 | |
| parent | cee45c1b155fcc917c2b0f9cfdbfa060304255e1 (diff) | |
Transform `matrix` to `mat` identifier for Vulkan
| -rw-r--r-- | vendor/vulkan/_gen/create_vulkan_odin_wrapper.py | 4 | ||||
| -rw-r--r-- | vendor/vulkan/enums.odin | 2 | ||||
| -rw-r--r-- | vendor/vulkan/procedures.odin | 2 | ||||
| -rw-r--r-- | vendor/vulkan/structs.odin | 4 |
4 files changed, 3 insertions, 9 deletions
diff --git a/vendor/vulkan/_gen/create_vulkan_odin_wrapper.py b/vendor/vulkan/_gen/create_vulkan_odin_wrapper.py index 4f4477812..6ea2c3717 100644 --- a/vendor/vulkan/_gen/create_vulkan_odin_wrapper.py +++ b/vendor/vulkan/_gen/create_vulkan_odin_wrapper.py @@ -405,8 +405,8 @@ def parse_structs(f): if "Flag_Bits" in type_: comment = " // only single bit set" t = do_type(type_, prev_name, fname) - if t == "Structure_Type" and n == "type": - n = "s_type" + if n == "matrix": + n = "mat" ffields.append(tuple([n, t, comment])) prev_name = fname diff --git a/vendor/vulkan/enums.odin b/vendor/vulkan/enums.odin index be6691ab4..d468e7fa1 100644 --- a/vendor/vulkan/enums.odin +++ b/vendor/vulkan/enums.odin @@ -3,8 +3,6 @@ // package vulkan -import "core:c" - // Enums AccelerationStructureBuildTypeKHR :: enum c.int { HOST = 0, diff --git a/vendor/vulkan/procedures.odin b/vendor/vulkan/procedures.odin index b40523b6d..f585215e4 100644 --- a/vendor/vulkan/procedures.odin +++ b/vendor/vulkan/procedures.odin @@ -3,8 +3,6 @@ // package vulkan -import "core:c" - // Procedure Types ProcAllocationFunction :: #type proc "system" (pUserData: rawptr, size: int, alignment: int, allocationScope: SystemAllocationScope) -> rawptr diff --git a/vendor/vulkan/structs.odin b/vendor/vulkan/structs.odin index 24d47489a..ece398cde 100644 --- a/vendor/vulkan/structs.odin +++ b/vendor/vulkan/structs.odin @@ -3,8 +3,6 @@ // package vulkan -import "core:c" - when ODIN_OS == "windows" { import win32 "core:sys/windows" @@ -3750,7 +3748,7 @@ PhysicalDeviceRayTracingPropertiesNV :: struct { } TransformMatrixKHR :: struct { - matrix: [3][4]f32, + mat: [3][4]f32, } AabbPositionsKHR :: struct { |