Skip to content

Commit eb30aeb

Browse files
committed
Add more overloads for VulkanGraphicsTest::setName
1 parent 3d9099b commit eb30aeb

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

util/test/demos/vk/vk_test.cpp

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1055,6 +1055,12 @@ void VulkanGraphicsTest::setName(VkPipeline obj, const std::string &name)
10551055
setName(VK_OBJECT_TYPE_PIPELINE, (uint64_t)obj, name);
10561056
}
10571057

1058+
template <>
1059+
void VulkanGraphicsTest::setName(VkPipelineLayout obj, const std::string &name)
1060+
{
1061+
setName(VK_OBJECT_TYPE_PIPELINE_LAYOUT, (uint64_t)obj, name);
1062+
}
1063+
10581064
template <>
10591065
void VulkanGraphicsTest::setName(VkFramebuffer obj, const std::string &name)
10601066
{
@@ -1109,6 +1115,24 @@ void VulkanGraphicsTest::setName(VkAccelerationStructureKHR obj, const std::stri
11091115
setName(VK_OBJECT_TYPE_ACCELERATION_STRUCTURE_KHR, (uint64_t)obj, name);
11101116
}
11111117

1118+
template <>
1119+
void VulkanGraphicsTest::setName(VkDescriptorSetLayout obj, const std::string &name)
1120+
{
1121+
setName(VK_OBJECT_TYPE_DESCRIPTOR_SET_LAYOUT, (uint64_t)obj, name);
1122+
}
1123+
1124+
template <>
1125+
void VulkanGraphicsTest::setName(VkDescriptorSet obj, const std::string &name)
1126+
{
1127+
setName(VK_OBJECT_TYPE_DESCRIPTOR_SET, (uint64_t)obj, name);
1128+
}
1129+
1130+
template <>
1131+
void VulkanGraphicsTest::setName(VkRenderPass obj, const std::string &name)
1132+
{
1133+
setName(VK_OBJECT_TYPE_RENDER_PASS, (uint64_t)obj, name);
1134+
}
1135+
11121136
void VulkanGraphicsTest::setName(VkObjectType objType, uint64_t obj, const std::string &name)
11131137
{
11141138
if(vkSetDebugUtilsObjectNameEXT)

0 commit comments

Comments
 (0)