Called on thread where we update (which should be the main thread)
| 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 | { |
nothing calls this directly
no test coverage detected