Turn the debug assert in BindPipeline into a proper one to try to get some more context in the logs

Shouldn't be too expensive.
This commit is contained in:
Henrik Rydgård committed 2023-09-11 16:57:38 +02:00
1 parent 4ffea9f900
commit ec33bcfce3
1 file changed
+1 -2
+1 -2
View File
@@ -241,8 +241,7 @@ public:
}
void BindPipeline(VKRGraphicsPipeline *pipeline, PipelineFlags flags, VkPipelineLayout pipelineLayout) {
_dbg_assert_(curRenderStep_ && curRenderStep_->stepType == VKRStepType::RENDER);
_dbg_assert_(pipeline != nullptr);
_assert_(curRenderStep_ && curRenderStep_->stepType == VKRStepType::RENDER && pipeline != nullptr);
VkRenderData &data = curRenderStep_->commands.push_uninitialized();
data.cmd = VKRRenderCommand::BIND_GRAPHICS_PIPELINE;
pipelinesToCheck_.push_back(pipeline);