Skip to content

Use VUL safe_struct #118

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

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open

Use VUL safe_struct #118

wants to merge 5 commits into from

Conversation

solidpixel
Copy link
Contributor

@solidpixel solidpixel commented Jun 20, 2025

The Vulkan API accepts a lot of const pointers to input structure trees, many of which have unstructured content due to the use of opaque pNext pointers to support extensions. Layers often want to change input data before calling down the stack, and the current code just uses const_cast on the inputs and modifies in place. This is obviously violating the API contract with the application so we need to fix it.

This PR will clone structure trees where needed, using the safe_struct library from the Vulkan Utility Libraries project.

Fixes #56

@solidpixel solidpixel marked this pull request as draft June 20, 2025 14:38
@solidpixel solidpixel marked this pull request as ready for review June 21, 2025 10:05
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.

Framework: Create generic structure tree cloner
1 participant