Skip to content

Commit

Permalink
Fix demos compile error on Linux & Android
Browse files Browse the repository at this point in the history
  • Loading branch information
Zorro666 committed Nov 5, 2023
1 parent c93c265 commit b196652
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions util/test/demos/vk/vk_descriptor_index.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ void main()
VK_DESCRIPTOR_BINDING_VARIABLE_DESCRIPTOR_COUNT_BIT_EXT,
};

descFlags.bindingCount = ARRAYSIZE(bindFlags);
descFlags.bindingCount = ARRAY_COUNT(bindFlags);
descFlags.pBindingFlags = bindFlags;

VkDescriptorSetLayout setlayout = createDescriptorSetLayout(
Expand Down Expand Up @@ -500,7 +500,7 @@ void main()
}),
NULL, &descpool));

const static uint32_t numDescriptorSets = ARRAYSIZE(descset);
const static uint32_t numDescriptorSets = ARRAY_COUNT(descset);
std::vector<VkDescriptorSetLayout> setLayouts(numDescriptorSets, setlayout);
std::vector<uint32_t> counts(numDescriptorSets, DESC_ARRAY3_SIZE);

Expand Down

0 comments on commit b196652

Please sign in to comment.