Skip to content
Permalink
Browse files

FramebufferShaderGen: Don't emit SV_SampleIndex when not using SSAA

  • Loading branch information...
stenzek committed Apr 28, 2019
1 parent 906ccdb commit 51154d6907f44768f8cc2680fb5c5148c0f19808
Showing with 7 additions and 4 deletions.
  1. +7 −4 Source/Core/VideoCommon/FramebufferShaderGen.cpp
@@ -410,10 +410,13 @@ std::string GenerateFormatConversionShader(EFBReinterpretType convtype, u32 samp
{
std::stringstream ss;
EmitSamplerDeclarations(ss, 0, 1, samples > 1);
EmitPixelMainDeclaration(ss, 1, 0, "float4",
GetAPIType() == APIType::D3D ?
"in float4 ipos : SV_Position, in uint isample : SV_SampleIndex, " :
"");
EmitPixelMainDeclaration(
ss, 1, 0, "float4",
GetAPIType() == APIType::D3D ?
(g_ActiveConfig.bSSAA ?
"in float4 ipos : SV_Position, in uint isample : SV_SampleIndex, " :
"in float4 ipos : SV_Position, ") :
"");
ss << "{\n";
ss << " int layer = int(v_tex0.z);\n";
if (GetAPIType() == APIType::D3D)

0 comments on commit 51154d6

Please sign in to comment.
You can’t perform that action at this time.