Merge pull request #73057 from sakrel/draw-command-label-thread-safety
RenderingDeviceVulkan: Make draw command labels thread safe
This commit is contained in:
commit
db60704c8f
1 changed files with 3 additions and 0 deletions
|
@ -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) {
|
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);
|
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) {
|
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);
|
context->command_insert_label(frames[frame].draw_command_buffer, p_label_name, p_color);
|
||||||
}
|
}
|
||||||
|
|
||||||
void RenderingDeviceVulkan::draw_command_end_label() {
|
void RenderingDeviceVulkan::draw_command_end_label() {
|
||||||
|
_THREAD_SAFE_METHOD_
|
||||||
context->command_end_label(frames[frame].draw_command_buffer);
|
context->command_end_label(frames[frame].draw_command_buffer);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue