Skip to content

Validation errors in vsgviewer with recent Vulkan SDK #1771

Closed

Description

@AnyOldName3

Running vsgviewer -d path/to/glTF-Sample-Assets/Models/ABeautifulGame/glTF\ABeautifulGame.gltf emits:

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

on launch.

This check was added with KhronosGroup/Vulkan-ValidationLayers@f60f0a0, first present in 1.4.348.

Activity

  1. robertosfield commented on Nov 17, 2026

    @robertosfield
    Collaborator

    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

  2. robertosfield commented on Nov 17, 2026

    @robertosfield
    Collaborator

    I have checked in the fix to VSG master with PR #1777

    FYI, I have also resolved the Exception warning with PR #1776

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions