gsdx-ogl: update shader pipeline intertace to use vs/gs/ps triplet

Better to have 1 function calls with 3 parameters rather 3 functions call with 1 parameter.
This commit is contained in:
Gregory Hainaut committed 2016-04-10 14:14:30 +02:00
1 parent 53690cf9d0
commit 3f404c8edb
6 files changed
+27 -55

No files matched your search

+3 -5
View File
@@ -1022,9 +1022,7 @@ void GSRendererOGL::DrawPrims(GSTexture* rt, GSTexture* ds, GSTextureCache::Sour
#endif
gs_sel.sprite = m_vt.m_primclass == GS_SPRITE_CLASS;
dev->SetupVS(vs_sel);
dev->SetupGS(gs_sel);
dev->SetupPS(ps_sel);
dev->SetupPipeline(vs_sel, gs_sel, ps_sel);
// rs
@@ -1062,7 +1060,7 @@ void GSRendererOGL::DrawPrims(GSTexture* rt, GSTexture* ds, GSTextureCache::Sour
glDepthMask(GLState::depth_mask);
ps_sel.date = 3;
dev->SetupPS(ps_sel);
dev->SetupPipeline(vs_sel, gs_sel, ps_sel);
// Be sure that first pass is finished !
dev->Barrier(GL_SHADER_IMAGE_ACCESS_BARRIER_BIT);
@@ -1096,7 +1094,7 @@ void GSRendererOGL::DrawPrims(GSTexture* rt, GSTexture* ds, GSTextureCache::Sour
ps_sel.atst = 1;
}
dev->SetupPS(ps_sel);
dev->SetupPipeline(vs_sel, gs_sel, ps_sel);
bool z = om_dssel.zwe;
bool r = om_csel.wr;