| 23 | namespace vkb |
| 24 | { |
| 25 | DescriptorSet::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 | |
| 40 | void DescriptorSet::reset(const BindingMap<VkDescriptorBufferInfo> &new_buffer_infos, const BindingMap<VkDescriptorImageInfo> &new_image_infos) |
| 41 | { |