summaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
authorMarkus Wick <markus+github@selfnet.de>2014-12-19 12:41:10 +0100
committerMarkus Wick <markus+github@selfnet.de>2014-12-19 12:41:10 +0100
commitca18e51450a8155bb66cf0816f25057717a792c6 (patch)
tree440f0d67426269554e01bdcab2ab2cf86e7236d4 /Source
parent02f22152bedc292101d15fb89856fa89b861bfde (diff)
parentcdd9e0752216735d712c84d0f7308a1081682f8e (diff)
Merge pull request #1715 from Armada651/geom-interface
VideoCommon: Add in/out qualifiers to centroid storage qualifier.
Diffstat (limited to 'Source')
-rw-r--r--Source/Core/VideoCommon/GeometryShaderGen.cpp4
-rw-r--r--Source/Core/VideoCommon/PixelShaderGen.cpp2
-rw-r--r--Source/Core/VideoCommon/VertexShaderGen.cpp2
3 files changed, 4 insertions, 4 deletions
diff --git a/Source/Core/VideoCommon/GeometryShaderGen.cpp b/Source/Core/VideoCommon/GeometryShaderGen.cpp
index cabdfea191..bcd7758fba 100644
--- a/Source/Core/VideoCommon/GeometryShaderGen.cpp
+++ b/Source/Core/VideoCommon/GeometryShaderGen.cpp
@@ -88,11 +88,11 @@ static inline void GenerateGeometryShader(T& out, u32 primitive_type, API_TYPE A
out.Write("#define InstanceID gl_InvocationID\n");
out.Write("in VertexData {\n");
- out.Write("\tcentroid VS_OUTPUT o;\n");
+ out.Write("\tcentroid in VS_OUTPUT o;\n");
out.Write("} vs[%d];\n", vertex_in);
out.Write("out VertexData {\n");
- out.Write("\tcentroid VS_OUTPUT o;\n");
+ out.Write("\tcentroid out VS_OUTPUT o;\n");
if (g_ActiveConfig.iStereoMode > 0)
out.Write("\tflat int layer;\n");
diff --git a/Source/Core/VideoCommon/PixelShaderGen.cpp b/Source/Core/VideoCommon/PixelShaderGen.cpp
index 77f24d115c..4a63c7a977 100644
--- a/Source/Core/VideoCommon/PixelShaderGen.cpp
+++ b/Source/Core/VideoCommon/PixelShaderGen.cpp
@@ -320,7 +320,7 @@ static inline void GeneratePixelShader(T& out, DSTALPHA_MODE dstAlphaMode, API_T
if (g_ActiveConfig.backend_info.bSupportsGeometryShaders)
{
out.Write("in VertexData {\n");
- out.Write("\tcentroid VS_OUTPUT o;\n");
+ out.Write("\tcentroid in VS_OUTPUT o;\n");
if (g_ActiveConfig.iStereoMode > 0)
out.Write("\tflat int layer;\n");
diff --git a/Source/Core/VideoCommon/VertexShaderGen.cpp b/Source/Core/VideoCommon/VertexShaderGen.cpp
index 123f137ff2..f14cd559da 100644
--- a/Source/Core/VideoCommon/VertexShaderGen.cpp
+++ b/Source/Core/VideoCommon/VertexShaderGen.cpp
@@ -75,7 +75,7 @@ static inline void GenerateVertexShader(T& out, u32 components, API_TYPE api_typ
if (g_ActiveConfig.backend_info.bSupportsGeometryShaders)
{
out.Write("out VertexData {\n"
- "\tcentroid VS_OUTPUT o;\n"
+ "\tcentroid out VS_OUTPUT o;\n"
"};\n");
}
else