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

Method Reset

engine/graphics/src/vulkan/graphics_vulkan_device.cpp:237–249  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

235 }
236
237 void DescriptorAllocator::Reset(VkDevice vk_device)
238 {
239 if (m_DescriptorSetIndex > 0)
240 {
241 for (int i = 0; i < m_DescriptorPools.Size(); ++i)
242 {
243 vkResetDescriptorPool(vk_device, m_DescriptorPools[i].m_DescriptorPool, 0);
244 m_DescriptorPools[i].m_DescriptorCount = 0;
245 }
246 m_DescriptorSetIndex = 0;
247 m_DescriptorPoolIndex = 0;
248 }
249 }
250
251 VkResult DeviceBuffer::MapMemory(VkDevice vk_device, uint32_t offset, uint32_t size)
252 {

Callers 1

ResetScratchBufferFunction · 0.45

Calls 1

SizeMethod · 0.45

Tested by

no test coverage detected