mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Merge pull request #16120 from hrydgard/better-pass-naming
Vulkan: Better debug names for RENDER passes.
This commit is contained in:
commit
ebbd17540c
2 changed files with 8 additions and 2 deletions
|
@ -559,7 +559,13 @@ void VulkanQueueRunner::RunSteps(std::vector<VKRStep *> &steps, FrameData &frame
|
|||
|
||||
if (emitLabels) {
|
||||
VkDebugUtilsLabelEXT labelInfo{ VK_STRUCTURE_TYPE_DEBUG_UTILS_LABEL_EXT };
|
||||
labelInfo.pLabelName = step.tag;
|
||||
char temp[128];
|
||||
if (step.stepType == VKRStepType::RENDER && step.render.framebuffer) {
|
||||
snprintf(temp, sizeof(temp), "%s: %s", step.tag, step.render.framebuffer->Tag());
|
||||
labelInfo.pLabelName = temp;
|
||||
} else {
|
||||
labelInfo.pLabelName = step.tag;
|
||||
}
|
||||
vkCmdBeginDebugUtilsLabelEXT(frameData.mainCmd, &labelInfo);
|
||||
}
|
||||
|
||||
|
|
|
@ -964,7 +964,7 @@ void FramebufferManagerCommon::NotifyRenderFramebufferSwitched(VirtualFramebuffe
|
|||
if (useBufferedRendering_) {
|
||||
if (vfb->fbo) {
|
||||
shaderManager_->DirtyLastShader();
|
||||
draw_->BindFramebufferAsRenderTarget(vfb->fbo, { Draw::RPAction::KEEP, Draw::RPAction::KEEP, Draw::RPAction::KEEP }, "FramebufferSwitch");
|
||||
draw_->BindFramebufferAsRenderTarget(vfb->fbo, { Draw::RPAction::KEEP, Draw::RPAction::KEEP, Draw::RPAction::KEEP }, "FBSwitch");
|
||||
} else {
|
||||
// This should only happen very briefly when toggling useBufferedRendering_.
|
||||
ResizeFramebufFBO(vfb, vfb->width, vfb->height, true);
|
||||
|
|
Loading…
Add table
Reference in a new issue