mirror of
https://github.com/odin-lang/Odin.git
synced 2025-12-29 17:34:34 +00:00
Transform matrix to mat identifier for Vulkan
This commit is contained in:
@@ -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
|
||||
|
||||
2
vendor/vulkan/enums.odin
vendored
2
vendor/vulkan/enums.odin
vendored
@@ -3,8 +3,6 @@
|
||||
//
|
||||
package vulkan
|
||||
|
||||
import "core:c"
|
||||
|
||||
// Enums
|
||||
AccelerationStructureBuildTypeKHR :: enum c.int {
|
||||
HOST = 0,
|
||||
|
||||
2
vendor/vulkan/procedures.odin
vendored
2
vendor/vulkan/procedures.odin
vendored
@@ -3,8 +3,6 @@
|
||||
//
|
||||
package vulkan
|
||||
|
||||
import "core:c"
|
||||
|
||||
// Procedure Types
|
||||
|
||||
ProcAllocationFunction :: #type proc "system" (pUserData: rawptr, size: int, alignment: int, allocationScope: SystemAllocationScope) -> rawptr
|
||||
|
||||
4
vendor/vulkan/structs.odin
vendored
4
vendor/vulkan/structs.odin
vendored
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user