MCPcopy Create free account
hub / github.com/KhronosGroup/Vulkan-Samples / validate_flags

Function validate_flags

framework/core/descriptor_set_layout.cpp:78–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

76}
77
78inline 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
99DescriptorSetLayout::DescriptorSetLayout(vkb::core::DeviceC &device,

Callers 1

DescriptorSetLayoutMethod · 0.85

Calls 2

emptyMethod · 0.80
sizeMethod · 0.80

Tested by

no test coverage detected