Skip to content

Comments

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

Merged
AWoloszyn merged 1 commit intogoogle:masterfrom
AWoloszyn:more-image-fixes
Jul 25, 2018
Merged

A few more small fixes around images and descriptor sets.#2090
AWoloszyn merged 1 commit intogoogle:masterfrom
AWoloszyn:more-image-fixes

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 ben-clayton and qining July 25, 2018 20:16
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