Skip to content

Conversation

@solidpixel
Copy link
Contributor

@solidpixel solidpixel commented Dec 4, 2025

When we refactored the code to use safe-struct to avoid const-casting in layer code we failed to change the chain info pointer, so kept modifying the original user chain info rather than modifying the the safe-struct clone. This passed all our tests because when you are using a single layer you talk directly to the driver, which doesn't use the chain info, but it fails as soon as you have multiple layers because the chain is never advanced as you call down the stack. The end result is an infinite recursion of vkCreateInstance/vkCreateDevice calls into the second layer in the stack of N layers.

Fixes #157

@solidpixel solidpixel merged commit 0e85325 into main Dec 4, 2025
6 checks passed
@solidpixel solidpixel deleted the issue_157 branch December 4, 2025 23:00
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.

Apps not working with multiple layers installed

2 participants