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

Enabling the PARTIALLY_BOUND_BINDING_ARRAY feature causes Vulkan Validation Error #3522

Closed
LPGhatguy opened this issue Feb 22, 2023 · 0 comments · Fixed by #3772
Closed

Enabling the PARTIALLY_BOUND_BINDING_ARRAY feature causes Vulkan Validation Error #3522

LPGhatguy opened this issue Feb 22, 2023 · 0 comments · Fixed by #3772
Labels
api: vulkan Issues with Vulkan help required We need community help to make this happen. type: bug Something isn't working

Comments

@LPGhatguy
Copy link
Contributor

Description
Requesting a device with the PARTIALLY_BOUND_BINDING_ARRAY feature and creating a bind group causes a Vulkan validation error:

VALIDATION [VUID-VkDescriptorSetLayoutBindingFlagsCreateInfo-descriptorBindingPartiallyBound-03013 (0x95331f1c)]
Validation Error: [ VUID-VkDescriptorSetLayoutBindingFlagsCreateInfo-descriptorBindingPartiallyBound-03013 ] Object 0: handle = 0x18d7125fc20, type = VK_OBJECT_TYPE_DEVICE; | MessageID = 0x95331f1c | vkCreateDescriptorSetLayout(): pBindings[11] can't have VK_DESCRIPTOR_BINDING_PARTIALLY_BOUND_BIT for VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE since descriptorBindingPartiallyBound is not enabled. The Vulkan spec states: If VkPhysicalDeviceDescriptorIndexingFeatures::descriptorBindingPartiallyBound is not enabled, all elements of pBindingFlags must not include VK_DESCRIPTOR_BINDING_PARTIALLY_BOUND_BIT (https://vulkan.lunarg.com/doc/view/1.3.216.0/windows/1.3-extensions/vkspec.html#VUID-VkDescriptorSetLayoutBindingFlagsCreateInfo-descriptorBindingPartiallyBound-03013)

Repro steps
Creating an adapter with Features::TEXTURE_BINDING_ARRAY | Features::PARTIALLY_BOUND_BINDING_ARRAY and then creating a BindGroup with a texture array appears to cause this validation error.

Expected vs observed behavior
wgpu should enable this Vulkan feature, but does not.

Platform

  • wgpu 0.15.1
  • Windows 10
  • Vulkan SDK 1.3.216.0
@teoxoy teoxoy added type: bug Something isn't working help required We need community help to make this happen. api: vulkan Issues with Vulkan labels Feb 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: vulkan Issues with Vulkan help required We need community help to make this happen. type: bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants