Fix "DebugAnnotate" (not used, but I used it temporarily to investigate #17014)

See #17014
This commit is contained in:
Henrik Rydgård 2023-02-27 10:39:49 +01:00
parent bdc271385b
commit ca8af6f4c7

View File

@ -416,8 +416,10 @@ public:
// These can be useful both when inspecting in RenderDoc, and when manually inspecting recorded commands
// in the debugger.
void DebugAnnotate(const char *annotation) {
_dbg_assert_(curRenderStep_);
VkRenderData data{ VKRRenderCommand::DEBUG_ANNOTATION };
data.debugAnnotation.annotation = annotation;
curRenderStep_->commands.push_back(data);
}
VkCommandBuffer GetInitCmd();