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

Handle empty bind group layouts #240

Closed
kvark opened this issue Jun 27, 2019 · 4 comments
Closed

Handle empty bind group layouts #240

kvark opened this issue Jun 27, 2019 · 4 comments
Labels
area: validation Issues related to validation, diagnostics, and error handling help required We need community help to make this happen. type: bug Something isn't working

Comments

@kvark
Copy link
Member

kvark commented Jun 27, 2019

Example code:

        let bind_group_layout =
            device.create_bind_group_layout(&wgpu::BindGroupLayoutDescriptor { bindings: &[] });
        let bind_group = device.create_bind_group(&wgpu::BindGroupDescriptor {
            layout: &bind_group_layout,
            bindings: &[],
        });

We are currently getting this validation error:

ERROR gfx_backend_vulkan >
VALIDATION [VUID-VkDescriptorPoolCreateInfo-poolSizeCount-arraylength (0)] : vkCreateDescriptorPool: parameter pCreateInfo->poolSizeCount must be greater than 0. The Vulkan spec states: poolSizeCount must be greater than 0 (https://www.khronos.org/registry/vulkan/specs/1.1-extensions/html/vkspec.html#VUID-VkDescriptorPoolCreateInfo-poolSizeCount-arraylength)
object info: (type: UNKNOWN, hndl: 0)

Not sure yet if it's to be addressed at our level or in rendy-descriptor (cc @omni-viral ).

@GabrielMajeri
Copy link
Contributor

Where should this be validated in the end? Here, in wgpu-rs, somewhere else?

@kvark
Copy link
Member Author

kvark commented Aug 13, 2020

I'm thinking it should be handled in gfx-descriptor

@cwfitzgerald
Copy link
Member

Should test if this is still an issue under gpu-descriptor

@kvark
Copy link
Member Author

kvark commented May 21, 2021

Fixed in gpu-descriptor now

@kvark kvark closed this as completed May 21, 2021
Patryk27 pushed a commit to Patryk27/wgpu that referenced this issue Nov 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: validation Issues related to validation, diagnostics, and error handling 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.

3 participants