From 40af2b7be4bd2feed7c08f271feab8996fa20759 Mon Sep 17 00:00:00 2001 From: Jeroen Bakker Date: Fri, 9 May 2025 13:40:34 +0200 Subject: [PATCH] Vulkan: Add debug name for pipeline layouts --- source/blender/gpu/vulkan/vk_shader.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/blender/gpu/vulkan/vk_shader.cc b/source/blender/gpu/vulkan/vk_shader.cc index 0b36e6be1b7..27f70222e10 100644 --- a/source/blender/gpu/vulkan/vk_shader.cc +++ b/source/blender/gpu/vulkan/vk_shader.cc @@ -707,6 +707,8 @@ bool VKShader::finalize_pipeline_layout(VkDevice vk_device, return false; }; + debug::object_label(vk_pipeline_layout, name_get()); + return true; } @@ -1312,6 +1314,7 @@ VkPipeline VKShader::ensure_and_get_compute_pipeline() VkPipeline vk_pipeline = device.pipelines.get_or_create_compute_pipeline( compute_info, is_static_shader_, vk_pipeline_base_); if (vk_pipeline_base_ == VK_NULL_HANDLE) { + debug::object_label(vk_pipeline, name_get()); vk_pipeline_base_ = vk_pipeline; } return vk_pipeline; @@ -1362,6 +1365,7 @@ VkPipeline VKShader::ensure_and_get_graphics_pipeline(GPUPrimType primitive, VkPipeline vk_pipeline = device.pipelines.get_or_create_graphics_pipeline( graphics_info, is_static_shader_, vk_pipeline_base_); if (vk_pipeline_base_ == VK_NULL_HANDLE) { + debug::object_label(vk_pipeline, name_get()); vk_pipeline_base_ = vk_pipeline; } return vk_pipeline;