rt: add debug markers to see that uploading lights takes >35ms

This commit is contained in:
Ivan 'provod' Avdeev 2022-08-07 10:32:46 -07:00 committed by Ivan Avdeev
parent 1d2e763baf
commit 0f0a58d1aa

View File

@ -1218,6 +1218,7 @@ vk_lights_bindings_t VK_LightsUpload( VkCommandBuffer cmdbuf ) {
}
{
DEBUG_BEGIN(cmdbuf, "upload lights");
const VkBufferCopy regions[] = {
{
.srcOffset = 0,
@ -1239,6 +1240,7 @@ vk_lights_bindings_t VK_LightsUpload( VkCommandBuffer cmdbuf ) {
VK_PIPELINE_STAGE_TRANSFER_BIT,
VK_PIPELINE_STAGE_RAY_TRACING_SHADER_BIT_KHR,
0, 0, NULL, ARRAYSIZE(bmb), bmb, 0, NULL);
DEBUG_END(cmdbuf);
}
return (vk_lights_bindings_t){