odin-lang / Odin

Odin Programming Language
https://odin-lang.org
BSD 3-Clause "New" or "Revised" License
6.1k stars 550 forks source link

Fix `vender:vulkan` codegen for procedures with fixed size arrays are arguments #3813

Closed tadeohepperle closed 4 days ago

tadeohepperle commented 5 days ago

Fixes #3799

Previously, fixed sized arrays have not been parsed correctly when generating the Odin interface for Vulkan. For example this signature: typedef void (VKAPI_PTR *PFN_vkCmdSetBlendConstants)(VkCommandBuffer commandBuffer, const float blendConstants[4]); was transformed into ProcCmdSetBlendConstants :: #type proc "system" (commandBuffer: CommandBuffer) instead of ProcCmdSetBlendConstants :: #type proc "system" (commandBuffer: CommandBuffer, blendConstants: ^[4]f32).

This PR adjusts the python script which generates the Odin Code. 3 Vulkan functions have been affected and now have the missing argument.