Skip to content

Commit

Permalink
Added more profiling macros
Browse files Browse the repository at this point in the history
  • Loading branch information
corporateshark committed Aug 23, 2024
1 parent 1651e8a commit 1dd8c6a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lvk/vulkan/VulkanClasses.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1374,6 +1374,8 @@ const lvk::VulkanImmediateCommands::CommandBufferWrapper& lvk::VulkanImmediateCo
}

void lvk::VulkanImmediateCommands::wait(const SubmitHandle handle) {
LVK_PROFILER_FUNCTION_COLOR(LVK_PROFILER_COLOR_WAIT);

if (isReady(handle)) {
return;
}
Expand Down Expand Up @@ -5645,7 +5647,9 @@ void lvk::VulkanContext::checkAndUpdateDescriptorSets() {
LLOGL("vkUpdateDescriptorSets()\n");
#endif // LVK_VULKAN_PRINT_COMMANDS
immediate_->wait(immediate_->getLastSubmitHandle());
LVK_PROFILER_ZONE("vkUpdateDescriptorSets()", LVK_PROFILER_COLOR_PRESENT);
vkUpdateDescriptorSets(vkDevice_, numWrites, write, 0, nullptr);
LVK_PROFILER_ZONE_END();
}

awaitingCreation_ = false;
Expand Down

0 comments on commit 1dd8c6a

Please sign in to comment.