| 76 | } |
| 77 | |
| 78 | inline bool validate_flags(vkb::core::PhysicalDeviceC const &gpu, |
| 79 | const std::vector<VkDescriptorSetLayoutBinding> &bindings, |
| 80 | const std::vector<VkDescriptorBindingFlagsEXT> &flags) |
| 81 | { |
| 82 | // Assume bindings are valid if there are no flags |
| 83 | if (flags.empty()) |
| 84 | { |
| 85 | return true; |
| 86 | } |
| 87 | |
| 88 | // Binding count has to equal flag count as its a 1:1 mapping |
| 89 | if (bindings.size() != flags.size()) |
| 90 | { |
| 91 | LOGE("Binding count has to be equal to flag count."); |
| 92 | return false; |
| 93 | } |
| 94 | |
| 95 | return true; |
| 96 | } |
| 97 | } // namespace |
| 98 | |
| 99 | DescriptorSetLayout::DescriptorSetLayout(vkb::core::DeviceC &device, |
no test coverage detected