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

Method get_layout_binding

framework/core/descriptor_set_layout.cpp:236–246  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

234}
235
236std::unique_ptr<VkDescriptorSetLayoutBinding> DescriptorSetLayout::get_layout_binding(uint32_t binding_index) const
237{
238 auto it = bindings_lookup.find(binding_index);
239
240 if (it == bindings_lookup.end())
241 {
242 return nullptr;
243 }
244
245 return std::make_unique<VkDescriptorSetLayoutBinding>(it->second);
246}
247
248std::unique_ptr<VkDescriptorSetLayoutBinding> DescriptorSetLayout::get_layout_binding(const std::string &name) const
249{

Callers 7

prepareMethod · 0.45
drawMethod · 0.45
drawMethod · 0.45
draw_submesh_implMethod · 0.45

Calls 1

endMethod · 0.80

Tested by

no test coverage detected