| 38 | } |
| 39 | |
| 40 | void DescriptorSet::reset(const BindingMap<VkDescriptorBufferInfo> &new_buffer_infos, const BindingMap<VkDescriptorImageInfo> &new_image_infos) |
| 41 | { |
| 42 | if (!new_buffer_infos.empty() || !new_image_infos.empty()) |
| 43 | { |
| 44 | buffer_infos = new_buffer_infos; |
| 45 | image_infos = new_image_infos; |
| 46 | } |
| 47 | else |
| 48 | { |
| 49 | LOGW("Calling reset on Descriptor Set with no new buffer infos and no new image infos."); |
| 50 | } |
| 51 | |
| 52 | this->write_descriptor_sets.clear(); |
| 53 | this->updated_bindings.clear(); |
| 54 | |
| 55 | prepare(); |
| 56 | } |
| 57 | |
| 58 | void DescriptorSet::prepare() |
| 59 | { |