From 07bf64ae5243d3e2f38da9cf9da81ef7a99a6f44 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Wed, 20 Oct 2021 11:42:06 +0100 Subject: [PATCH] Transform `matrix` to `mat` identifier for Vulkan --- vendor/vulkan/_gen/create_vulkan_odin_wrapper.py | 4 ++-- vendor/vulkan/enums.odin | 2 -- vendor/vulkan/procedures.odin | 2 -- 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 {