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

A few more small fixes around images and descriptor sets. #2090

Merged
merged 1 commit into from
Jul 25, 2018

Conversation

AWoloszyn
Copy link
Contributor

It is valid to call VkAllocateDescriptorSets even in the cases
where it will fail. (1025 sets in a 1024 set pool).

Clean up some warnings that the validation layers were throwing
from the state rebuilder.

It is valid to call VkAllocateDescriptorSets even in the cases
where it will fail. (1025 sets in a 1024 set pool).

Clean up some warnings that the validation layers were throwing
from the state rebuilder.
@AWoloszyn AWoloszyn requested review from Qining and ben-clayton July 25, 2018 20:16
@@ -2405,11 +2405,12 @@ func (sb *stateBuilder) createDescriptorPoolAndAllocateDescriptorSets(dp Descrip
descSetHandles := make([]VkDescriptorSet, 0, dp.DescriptorSets().Len())
descSetLayoutHandles := make([]VkDescriptorSetLayout, 0, dp.DescriptorSets().Len())
for vkDescSet, descSetObj := range dp.DescriptorSets().All() {
if sb.s.DescriptorSets().Contains(vkDescSet) {
if vkDescSet != VkDescriptorSet(0) && sb.s.DescriptorSets().Contains(vkDescSet) && sb.s.DescriptorSetLayouts().Contains(descSetObj.Layout().VulkanHandle()) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: no need to cast literals. VkDescriptorSet(0) becomes 0

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