Skip to content

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

Merged
robertosfield merged 1 commit intovsg-dev:MultiDescriptorSetConfigurationfrom
timoore:MultiDescriptorSetConfiguration
Jul 19, 2023
Merged

Deal with "missing" descriptor sets in ShaderSet::assignDescriptor#878
robertosfield merged 1 commit intovsg-dev:MultiDescriptorSetConfigurationfrom
timoore:MultiDescriptorSetConfiguration

Conversation

@timoore
Copy link
Copy Markdown
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
Copy Markdown
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
@robertosfield
Copy link
Copy Markdown
Collaborator

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

@robertosfield
Copy link
Copy Markdown
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