Closed trevex closed 1 year ago
I reproduced the issue using the image example here: https://github.com/trevex/vulkano/blob/reproduce-descriptor-set-issue/examples/src/bin/image/main.rs
However I stumbled upon the runtime descriptor array feature that was required and an now looking into the provided example. I expect the issue above to resolve itself after studying https://github.com/trevex/vulkano/blob/reproduce-descriptor-set-issue/examples/src/bin/runtime_array/main.rs.
Closing for now.
Leveraging the runtime array features indeed fixes the issue.
Template
If you dont understand something just leave it. If you can provide more detailed information than the template allows for, please ignore the template and present all of your findings.
Issue
I recently started using vulkano and am currently testing and playing around with it. Unfortunately I ran into an asserting failing when creating a
PersistentDescriptorSet
and I fail to understand why. The code is very similar to theimmutable_image
example. Basically the first descriptor set I am trying to create fails:Interestingly if I swap the two code blocks above, it will still panic creating the
texture_set
. So it seems to heavily to be related to how I create it, but I do not recognize something wrong with it. Just for context the shader definitions for them from vertex shader and fragment shader respectively:The failed assertion with stacktrace looks as follows:
Any help is appreciated. I assume I am doing something stupid or unintended, but am not able to find the issue.