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

Method reset

framework/core/descriptor_set.cpp:40–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38}
39
40void 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
58void DescriptorSet::prepare()
59{

Callers

nothing calls this directly

Calls 2

emptyMethod · 0.80
clearMethod · 0.45

Tested by

no test coverage detected