Skip to content

Commit d7c4aff

Browse files
committed
WIP
1 parent e528fcd commit d7c4aff

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

extensions/pl_graphics_vulkan.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3672,7 +3672,10 @@ pl_create_swapchain(plDevice* ptDevice, plSurface* ptSurface, const plSwapchainI
36723672
.sType = VK_STRUCTURE_TYPE_SEMAPHORE_CREATE_INFO
36733673
};
36743674
for (uint32_t i = 0; i < gptGraphics->uFramesInFlight; i++)
3675+
{
36753676
PL_VULKAN(vkCreateSemaphore(ptDevice->tLogicalDevice, &tSemaphoreInfo, gptGraphics->ptAllocationCallbacks, &ptSwap->atImageAvailable[i]));
3677+
pl__set_vulkan_object_name(ptDevice, (uint64_t)ptSwap->atImageAvailable[i], VK_DEBUG_REPORT_OBJECT_TYPE_SEMAPHORE_EXT, "image available");
3678+
}
36763679
return ptSwap;
36773680
}
36783681

@@ -3817,6 +3820,7 @@ pl_present(plCommandBuffer* ptCmdBuffer, const plSubmitInfo* ptSubmitInfo, plSwa
38173820
};
38183821
vkDestroySemaphore(ptDevice->tLogicalDevice, ptSwaps[0]->sbtRenderFinish[ptSwaps[0]->uCurrentImageIndex], gptGraphics->ptAllocationCallbacks);
38193822
PL_VULKAN(vkCreateSemaphore(ptDevice->tLogicalDevice, &tSemaphoreInfo, gptGraphics->ptAllocationCallbacks, &ptSwaps[0]->sbtRenderFinish[ptSwaps[0]->uCurrentImageIndex]));
3823+
pl__set_vulkan_object_name(ptDevice, (uint64_t)&ptSwaps[0]->sbtRenderFinish[ptSwaps[0]->uCurrentImageIndex], VK_DEBUG_REPORT_OBJECT_TYPE_SEMAPHORE_EXT, "new render finish");
38203824
pl_sb_push(ptCmdBuffer->ptPool->sbtPendingCommandBuffers, ptCmdBuffer->tCmdBuffer);
38213825
pl_end_cpu_sample(gptProfile, 0);
38223826
return false;
@@ -5200,6 +5204,7 @@ pl__create_swapchain(uint32_t uWidth, uint32_t uHeight, plSwapchain* ptSwap)
52005204
{
52015205
pl_sb_add(ptSwap->sbtRenderFinish);
52025206
PL_VULKAN(vkCreateSemaphore(ptDevice->tLogicalDevice, &tSemaphoreInfo, gptGraphics->ptAllocationCallbacks, &pl_sb_top(ptSwap->sbtRenderFinish)));
5207+
pl__set_vulkan_object_name(ptDevice, (uint64_t)pl_sb_top(ptSwap->sbtRenderFinish), VK_DEBUG_REPORT_OBJECT_TYPE_SEMAPHORE_EXT, "render finish");
52035208
}
52045209

52055210
for (uint32_t i = 0; i < ptSwap->uImageCount; i++)

0 commit comments

Comments
 (0)