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

Deal with "missing" descriptor sets in ShaderSet::assignDescriptor #878

Conversation

timoore
Copy link
Contributor

@timoore timoore commented Jul 19, 2023

Also, add a comment to createPipelineLayout

I found some of the same problems as @robertosfield did last night. The fix to assignDescriptor is necessary for vsgCs' usage.

Also, add a comment to createPipelineLayout
descriptorSets.resize(set + 1);
for (auto i = currentSize; i <= set; i++)
{
if (!descriptorSets[i])
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The descriptorSets[i] will always be null in this case so this check can be removed,

@robertosfield robertosfield merged commit 3ba3955 into vsg-dev:MultiDescriptorSetConfiguration Jul 19, 2023
8 checks passed
@robertosfield
Copy link
Collaborator

I've merged but I'll now simplify the code a bit.

@robertosfield
Copy link
Collaborator

Small simplification: 4199833

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants