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

Function TouchResource

engine/graphics/src/vulkan/graphics_vulkan.cpp:200–209  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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)

Callers 6

BeginRenderPassFunction · 0.85
UpdateImageDescriptorFunction · 0.85
UpdateDescriptorSetsFunction · 0.85
DrawSetupFunction · 0.85
VulkanReadPixelsFunction · 0.85

Calls 1

GetTypeMethod · 0.45

Tested by

no test coverage detected