| 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 | { |
no test coverage detected