summaryrefslogtreecommitdiffstats
path: root/drivers/vulkan/rendering_device_vulkan.h
diff options
context:
space:
mode:
authorreduz <reduzio@gmail.com>2021-07-07 18:06:06 -0300
committerreduz <reduzio@gmail.com>2021-07-07 18:06:06 -0300
commit24efb13f7e376dce33e8ab7baae120a1359a9a24 (patch)
tree336a62f10179dddd03af2f3ab2f191693127bbe7 /drivers/vulkan/rendering_device_vulkan.h
parent56d712686496845cab3bfd6a6ed67e4efc2c39d5 (diff)
downloadredot-engine-24efb13f7e376dce33e8ab7baae120a1359a9a24.tar.gz
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.
Diffstat (limited to 'drivers/vulkan/rendering_device_vulkan.h')
-rw-r--r--drivers/vulkan/rendering_device_vulkan.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/vulkan/rendering_device_vulkan.h b/drivers/vulkan/rendering_device_vulkan.h
index 1f86fe9e48..1d6188018c 100644
--- a/drivers/vulkan/rendering_device_vulkan.h
+++ b/drivers/vulkan/rendering_device_vulkan.h
@@ -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 ****/