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

Function AsyncCompleteCallback

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

Called on thread where we update (which should be the main thread)

Source from the content-addressed store, hash-verified

5161
5162 // Called on thread where we update (which should be the main thread)
5163 static void AsyncCompleteCallback(HJobContext, HJob job, JobSystemStatus status, void* _context, void* data, int result)
5164 {
5165 VulkanContext* context = (VulkanContext*) _context;
5166 uint16_t param_array_index = (uint16_t) (size_t) data;
5167 SetTextureAsyncParams ap = GetSetTextureAsyncParams(context->m_SetTextureAsyncState, param_array_index);
5168
5169 if (ap.m_Callback)
5170 {
5171 ap.m_Callback(ap.m_Texture, ap.m_UserData);
5172 }
5173
5174 ReturnSetTextureAsyncIndex(context->m_SetTextureAsyncState, param_array_index);
5175 }
5176
5177 static void PrepareTextureForUploading(VulkanContext* context, VulkanTexture* texture, const TextureParams& params)
5178 {

Callers

nothing calls this directly

Calls 2

GetSetTextureAsyncParamsFunction · 0.85

Tested by

no test coverage detected