Track and accumulate pipeline flags for render passes.

(Information that will later let us make some interesting optimizations)
This commit is contained in:
Henrik Rydgård committed 2020-10-11 12:22:25 +02:00
1 parent 4ff059d3d8
commit 5ece3de8ba
10 files changed
+75 -34

No files matched your search

+2 -2
View File
@@ -839,7 +839,7 @@ void DrawEngineVulkan::DoFlush() {
lastRenderStepId_ = curRenderStepId;
}
renderManager->BindPipeline(pipeline->pipeline);
renderManager->BindPipeline(pipeline->pipeline, (PipelineFlags)pipeline->flags);
if (pipeline != lastPipeline_) {
if (lastPipeline_ && !(lastPipeline_->UsesBlendConstant() && pipeline->UsesBlendConstant())) {
gstate_c.Dirty(DIRTY_BLEND_STATE);
@@ -964,7 +964,7 @@ void DrawEngineVulkan::DoFlush() {
lastRenderStepId_ = curRenderStepId;
}
renderManager->BindPipeline(pipeline->pipeline);
renderManager->BindPipeline(pipeline->pipeline, (PipelineFlags)pipeline->flags);
if (pipeline != lastPipeline_) {
if (lastPipeline_ && !lastPipeline_->UsesBlendConstant() && pipeline->UsesBlendConstant()) {
gstate_c.Dirty(DIRTY_BLEND_STATE);