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