Skip to content

Commit 4731e3b

Browse files
Added missing VK_ASSERT around setDebugObjectName()
1 parent 92a365a commit 4731e3b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lvk/vulkan/VulkanClasses.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1319,7 +1319,7 @@ lvk::VulkanImmediateCommands::VulkanImmediateCommands(VkDevice device, uint32_t
13191319
.queueFamilyIndex = queueFamilyIndex,
13201320
};
13211321
VK_ASSERT(vkCreateCommandPool(device, &ci, nullptr, &commandPool_));
1322-
lvk::setDebugObjectName(device, VK_OBJECT_TYPE_COMMAND_POOL, (uint64_t)commandPool_, debugName);
1322+
VK_ASSERT(lvk::setDebugObjectName(device, VK_OBJECT_TYPE_COMMAND_POOL, (uint64_t)commandPool_, debugName));
13231323

13241324
const VkCommandBufferAllocateInfo ai = {
13251325
.sType = VK_STRUCTURE_TYPE_COMMAND_BUFFER_ALLOCATE_INFO,
@@ -3697,7 +3697,7 @@ lvk::Holder<lvk::QueryPoolHandle> lvk::VulkanContext::createQueryPool(uint32_t n
36973697
}
36983698

36993699
if (debugName && *debugName) {
3700-
lvk::setDebugObjectName(vkDevice_, VK_OBJECT_TYPE_QUERY_POOL, (uint64_t)queryPool, debugName);
3700+
VK_ASSERT(lvk::setDebugObjectName(vkDevice_, VK_OBJECT_TYPE_QUERY_POOL, (uint64_t)queryPool, debugName));
37013701
}
37023702

37033703
lvk::QueryPoolHandle handle = queriesPool_.create(std::move(queryPool));
@@ -6631,8 +6631,8 @@ lvk::Result lvk::VulkanContext::initContext(const HWDeviceDesc& desc) {
66316631
.queueFamilyIndex = deviceQueues_.graphicsQueueFamilyIndex,
66326632
};
66336633
VK_ASSERT(vkCreateCommandPool(vkDevice_, &ciCommandPool, nullptr, &pimpl_->tracyCommandPool_));
6634-
lvk::setDebugObjectName(
6635-
vkDevice_, VK_OBJECT_TYPE_COMMAND_POOL, (uint64_t)pimpl_->tracyCommandPool_, "Command Pool: VulkanContextImpl::tracyCommandPool_");
6634+
VK_ASSERT(lvk::setDebugObjectName(
6635+
vkDevice_, VK_OBJECT_TYPE_COMMAND_POOL, (uint64_t)pimpl_->tracyCommandPool_, "Command Pool: VulkanContextImpl::tracyCommandPool_"));
66366636
const VkCommandBufferAllocateInfo aiCommandBuffer = {
66376637
.sType = VK_STRUCTURE_TYPE_COMMAND_BUFFER_ALLOCATE_INFO,
66386638
.commandPool = pimpl_->tracyCommandPool_,

0 commit comments

Comments
 (0)