Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Conversation

tadeohepperle
Copy link
Contributor

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.

@gingerBill gingerBill merged commit 521182a into odin-lang:master Jun 27, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Invalid Function Signature of proc CmdSetBlendConstants in vendor:vulkan
2 participants