1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-12 13:20:55 +00:00

Fix threaded update for textures

* Previews and other stuff now works again.
* Not the best solution, will have to be improved in the future usinc async queues where supported.
This commit is contained in:
reduz
2021-07-07 18:06:06 -03:00
parent 56d7126864
commit 24efb13f7e
3 changed files with 10 additions and 7 deletions

View File

@@ -156,6 +156,7 @@ class RenderingDeviceVulkan : public RenderingDevice {
uint32_t texture_upload_region_size_px = 0;
Vector<uint8_t> _texture_get_data_from_image(Texture *tex, VkImage p_image, VmaAllocation p_allocation, uint32_t p_layer, bool p_2d = false);
Error _texture_update(RID p_texture, uint32_t p_layer, const Vector<uint8_t> &p_data, uint32_t p_post_barrier, bool p_use_setup_queue);
/*****************/
/**** SAMPLER ****/