| 198 | |
| 199 | template <typename T> |
| 200 | static inline void TouchResource(VulkanContext* context, T* resource) |
| 201 | { |
| 202 | resource->m_Handle.m_LastUsedFrame = context->m_CurrentFrameInFlight; |
| 203 | |
| 204 | if (resource->GetType() == RESOURCE_TYPE_TEXTURE) |
| 205 | { |
| 206 | VulkanTexture* texture = (VulkanTexture*) resource; |
| 207 | TouchResource(context, &texture->m_DeviceBuffer); |
| 208 | } |
| 209 | } |
| 210 | |
| 211 | template <typename T> |
| 212 | static void DestroyResourceDeferred(VulkanContext* context, T* resource) |
no test coverage detected