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

Method DescriptorSet

framework/core/descriptor_set.cpp:25–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23namespace vkb
24{
25DescriptorSet::DescriptorSet(vkb::core::DeviceC &device,
26 const DescriptorSetLayout &descriptor_set_layout,
27 DescriptorPool &descriptor_pool,
28 const BindingMap<VkDescriptorBufferInfo> &buffer_infos,
29 const BindingMap<VkDescriptorImageInfo> &image_infos) :
30 device{device},
31 descriptor_set_layout{descriptor_set_layout},
32 descriptor_pool{descriptor_pool},
33 buffer_infos{buffer_infos},
34 image_infos{image_infos},
35 handle{descriptor_pool.allocate()}
36{
37 prepare();
38}
39
40void DescriptorSet::reset(const BindingMap<VkDescriptorBufferInfo> &new_buffer_infos, const BindingMap<VkDescriptorImageInfo> &new_image_infos)
41{

Callers

nothing calls this directly

Calls 1

allocateMethod · 0.45

Tested by

no test coverage detected