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

Function AsyncCompleteCallback

engine/graphics/src/null/graphics_null.cpp:1899–1911  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1897
1898 // Called on thread where we update (which should be the main thread)
1899 static void AsyncCompleteCallback(HJobContext, HJob hjob, JobSystemStatus status, void* _context, void* data, int result)
1900 {
1901 NullContext* context = (NullContext*) _context;
1902 uint16_t param_array_index = (uint16_t) (size_t) data;
1903 SetTextureAsyncParams ap = GetSetTextureAsyncParams(context->m_SetTextureAsyncState, param_array_index);
1904
1905 if (ap.m_Callback)
1906 {
1907 ap.m_Callback(ap.m_Texture, ap.m_UserData);
1908 }
1909
1910 ReturnSetTextureAsyncIndex(context->m_SetTextureAsyncState, param_array_index);
1911 }
1912
1913 static void NullSetTextureAsync(HContext context, HTexture texture, const TextureParams& params, SetTextureAsyncCallback callback, void* user_data)
1914 {

Callers

nothing calls this directly

Calls 2

GetSetTextureAsyncParamsFunction · 0.85

Tested by

no test coverage detected