Skip to content
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

vk_push_descriptors hits a validation error #512

Open
Keenuts opened this issue Sep 2, 2024 · 1 comment
Open

vk_push_descriptors hits a validation error #512

Keenuts opened this issue Sep 2, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@Keenuts
Copy link
Member

Keenuts commented Sep 2, 2024

tested commit (main today): 595e8f8

$ ./build/bin/vk_push_descriptors
*** VULKAN VALIDATION ERROR MESSAGE ***
Severity : ERROR
Type     : [VALIDATION]
Objects  : [0]: <UNNAMED OBJECT>
Message  : Validation Error: [ VUID-vkCmdDraw-None-02699 ] Object 0: VK_NULL_HANDLE, type = VK_OBJECT_TYPE_DESCRIPTOR_SET; | MessageID = 0x1608dec0 | Descriptor set VkDescriptorSet 0x0[] encountered the following validation error at vkCmdDraw time: Descriptor in binding #1 index 1 is being used in draw but has never been updated via vkUpdateDescriptorSets() or a similar call. The Vulkan spec states: Descriptors in each bound descriptor set, specified via vkCmdBindDescriptorSets, must be valid as described by descriptor validity if they are statically used by a bound shader (https://www.khronos.org/registry/vulkan/specs/1.3-khr-extensions/html/vkspec.html#VUID-vkCmdDraw-None-02699)
@Keenuts Keenuts changed the title vk_push_descriptor hits a validation error vk_push_descriptors hits a validation error Sep 2, 2024
@Keenuts Keenuts added the bug Something isn't working label Sep 2, 2024
@Keenuts
Copy link
Member Author

Keenuts commented Sep 2, 2024

More recent SDK provides a better validation error:

*** VULKAN VALIDATION ERROR MESSAGE ***
Severity : ERROR
Type     : [VALIDATION]
Message  : Validation Error: [ VUID-vkCmdDraw-None-08114 ] | MessageID = 0x2ba3a98e | vkCmdDraw():  the descriptor VkDescriptorSet 0x0[] [Set 0, Binding 1, Index 1, variable "Texture0"] is being used in draw but has never been updated via vkUpdateDescriptorSets() or a similar call. The Vulkan spec states: Descriptors in each bound descriptor set, specified via vkCmdBindDescriptorSets, must be valid as described by descriptor validity if they are statically used by the VkPipeline bound to the pipeline bind point used by this command and the bound VkPipeline was not created with VK_PIPELINE_CREATE_DESCRIPTOR_BUFFER_BIT_EXT (https://vulkan.lunarg.com/doc/view/1.3.290.0/linux/1.3-extensions/vkspec.html#VUID-vkCmdDraw-None-08114)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant