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

GetPipelinePropertiesEXT generates with compiler error under Vk 1.3 #4

Closed
bbredesen opened this issue Mar 6, 2023 · 0 comments · Fixed by #18
Closed

GetPipelinePropertiesEXT generates with compiler error under Vk 1.3 #4

bbredesen opened this issue Mar 6, 2023 · 0 comments · Fixed by #18
Assignees
Labels
bug/med Needs fixing but there is a possible workaround

Comments

@bbredesen
Copy link
Owner

GetPipelinePropertiesEXT includes a VkBaseOutStructure pointer as a parameter...only place in the API that does this. That struct is currently marked as an exception with "!ignore", to stop a recursive loop in Resolve().

The quick manual fix to be able to compile is replacing the parameter type with "!ignore" with "struct{}" after generation, but that will definitely cause a crash or undefined behavior if this function is called.

It is not totally clear from the spec how this is meant to work, but I suspect that this is a level of indirection where the base out struct's pNext pointer is written, and the developer has to check stype on the next struct to consume the data.

Fix TBD.

@bbredesen bbredesen added the bug/med Needs fixing but there is a possible workaround label Mar 6, 2023
@bbredesen bbredesen self-assigned this Mar 7, 2023
@bbredesen bbredesen linked a pull request Mar 7, 2023 that will close this issue
bbredesen added a commit that referenced this issue Mar 7, 2023
Solved basein/baseout recursion issue, issue #4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug/med Needs fixing but there is a possible workaround
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant