mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 14:58:14 +00:00
Minor refactor of ShaderWriter flags. Extracted from the stereo PR
This commit is contained in:
1 parent
a13ab3f76b
commit
ecf2797173
7 files changed
+39
-33
No files matched your search
@@ -161,7 +161,7 @@ Draw2DPipelineInfo GenerateReinterpretFragmentShader(ShaderWriter &writer, GEBuf
|
||||
}
|
||||
}
|
||||
|
||||
writer.BeginFSMain(g_draw2Duniforms, varyings, FSFLAG_NONE);
|
||||
writer.BeginFSMain(g_draw2Duniforms, varyings);
|
||||
|
||||
if (IsBufferFormat16Bit(from) && IsBufferFormat16Bit(to)) {
|
||||
writer.C(" vec4 val = ").SampleTexture2D("tex", "v_texcoord.xy").C(";\n");
|
||||
@@ -182,7 +182,7 @@ Draw2DPipelineInfo GenerateReinterpretFragmentShader(ShaderWriter &writer, GEBuf
|
||||
writer.C(" vec4 outColor = unpackColor(u == 0.0 ? packColor(val.rg) : packColor(val.ba));\n");
|
||||
}
|
||||
|
||||
writer.EndFSMain("outColor", FSFLAG_NONE);
|
||||
writer.EndFSMain("outColor");
|
||||
|
||||
return Draw2DPipelineInfo{
|
||||
"reinterpret",
|
||||
|
||||
Reference in new issue
Block a user