MCPcopy Create free account
hub / github.com/comaps/comaps / Reset

Method Reset

libs/drape/vulkan/vulkan_mesh_object_impl.cpp:93–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91 }
92
93 void Reset() override
94 {
95 m_descriptorUpdater.Destroy();
96 for (auto const & b : m_geometryBuffers)
97 m_objectManager->DestroyObject(b);
98 m_geometryBuffers.clear();
99
100 if (m_indexBuffer.m_buffer != VK_NULL_HANDLE)
101 m_objectManager->DestroyObject(m_indexBuffer);
102 }
103
104 void UpdateBuffer(ref_ptr<dp::GraphicsContext> context, uint32_t bufferInd) override
105 {

Callers

nothing calls this directly

Calls 3

DestroyObjectMethod · 0.80
DestroyMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected