DescriptorSet::compile() #1641
-
|
Hello @robertosfield, The function here seems a bit suspicious. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
|
Could you provide an example/model that illustrates the crash. If the scene graph that you are compiling is valid then I'll need to review all the code to make sure a null descriptorSetLayout is permissible, if not then we'll need to add a higher level check for this case a emit a warning/throw an error. |
Beta Was this translation helpful? Give feedback.
-
|
I have tried out your modified vsgdraw.cpp and was able to reproduce the error conditions and as the problem combinations of DescriptorSet/DescriptorSetLayout are related to invalid setup I've added a checked for a null setLayouts and the DescriptorSetLayout.bindigs and the DescriptorSets.descriptor sizes not being equal, when an erroneous condition is found exceptions are throw. Changes merged with VSG master with PR #1643 These changes will be part of the next 1.1.13 dev releases. |
Beta Was this translation helpful? Give feedback.
I have tried out your modified vsgdraw.cpp and was able to reproduce the error conditions and as the problem combinations of DescriptorSet/DescriptorSetLayout are related to invalid setup I've added a checked for a null setLayouts and the DescriptorSetLayout.bindigs and the DescriptorSets.descriptor sizes not being equal, when an erroneous condition is found exceptions are throw.
Changes merged with VSG master with PR #1643
These changes will be part of the next 1.1.13 dev releases.