You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Validation errors in vsgviewer with recent Vulkan SDK #1771
Validation Error: [ VUID-VkDeviceCreateInfo-enabledLayerCount-12384 ] | MessageID = 0x5aab58fb
vkCreateDevice(): pCreateInfo->enabledLayerCount is 1 (not zero).
Device Layers have never worked since Vulkan 1.0 and only Instance Layers should be used instead: https://docs.vulkan.org/spec/latest/appendices/legacy.html#legacy-devicelayers.
The Vulkan spec states: enabledLayerCount must be 0 (https://docs.vulkan.org/spec/latest/chapters/devsandqueues.html#VUID-VkDeviceCreateInfo-enabledLayerCount-12384)
Objects: 1
[0] VkPhysicalDevice 0x1f8d4287780
I have refactored vsg::Device constructor to remove the layers parameter and have had to update vsgExamples as well to mirror this. I am on the fence of whether to leave the old constructor parameters in place. This API change is under version 1.1.17.
Activity
robertosfield commentedon Nov 17, 2026
I've looked into the validation error and turns out that a feature I implemented as per the spec back in 2018 is now legacy:
https://docs.vulkan.org/spec/latest/appendices/legacy.html#legacy-devicelayers
I have refactored vsg::Device constructor to remove the layers parameter and have had to update vsgExamples as well to mirror this. I am on the fence of whether to leave the old constructor parameters in place. This API change is under version 1.1.17.
https://github.com/vsg-dev/VulkanSceneGraph/tree/RemoveLegacyDeviceLayersAssignment
https://github.com/vsg-dev/vsgExamples/tree/RemoveLegacyDeviceLayersAssignment
robertosfield commentedon Nov 17, 2026
I have checked in the fix to VSG master with PR #1777
FYI, I have also resolved the Exception warning with PR #1776