Skip to content

Comments

Fix vertex attribute robustness#3706

Merged
baldurk merged 2 commits intobaldurk:v1.xfrom
zack-mason-blaug:fix-vertex-attribute-robustness
Sep 30, 2025
Merged

Fix vertex attribute robustness#3706
baldurk merged 2 commits intobaldurk:v1.xfrom
zack-mason-blaug:fix-vertex-attribute-robustness

Conversation

@zack-mason-blaug
Copy link
Contributor

This PR fixes a crash that occurs when replaying Vulkan applications using vertex attribute robustness. For draw calls that rely on vertex attribute robustness, vk_postvs will generate SPIR-V which attempts to read from SSBOs that are not bound which will cause the device to be lost. To fix this, when a vertex input variable that does not have corresponding vertex attribute is detected, a constant value of (0,0,0,0) or (0,0,0,1) is loaded instead. I have also added support for VK_EXT_vertex_attribute_robustness.

@baldurk baldurk merged commit 30f5a40 into baldurk:v1.x Sep 30, 2025
16 checks passed
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 10, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants