diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2023-02-11 14:33:00 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2023-02-11 14:33:00 +0100 |
commit | db60704c8fc5d6071fc97519ca01a98fd48ac255 (patch) | |
tree | 692810c50fd0beec9a37816c06b15ab8c8af8de6 /drivers | |
parent | f2a87f8df693cdf96f2d4e127b6ba0d21aba608b (diff) | |
parent | 089dbecef4083d8b4c06f05632a24c242810b36d (diff) |
Merge pull request #73057 from sakrel/draw-command-label-thread-safety
RenderingDeviceVulkan: Make draw command labels thread safe
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/vulkan/rendering_device_vulkan.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/vulkan/rendering_device_vulkan.cpp b/drivers/vulkan/rendering_device_vulkan.cpp index 327f067e65..91a746636a 100644 --- a/drivers/vulkan/rendering_device_vulkan.cpp +++ b/drivers/vulkan/rendering_device_vulkan.cpp @@ -8462,14 +8462,17 @@ void RenderingDeviceVulkan::set_resource_name(RID p_id, const String p_name) { } void RenderingDeviceVulkan::draw_command_begin_label(String p_label_name, const Color p_color) { + _THREAD_SAFE_METHOD_ context->command_begin_label(frames[frame].draw_command_buffer, p_label_name, p_color); } void RenderingDeviceVulkan::draw_command_insert_label(String p_label_name, const Color p_color) { + _THREAD_SAFE_METHOD_ context->command_insert_label(frames[frame].draw_command_buffer, p_label_name, p_color); } void RenderingDeviceVulkan::draw_command_end_label() { + _THREAD_SAFE_METHOD_ context->command_end_label(frames[frame].draw_command_buffer); } |