summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authorTim Foley <tfoleyNV@users.noreply.github.com>2017-07-21 12:31:18 -0700
committerGitHub <noreply@github.com>2017-07-21 12:31:18 -0700
commit6992d0e3eb7eab04f05da99adcf437cfdbfbbb79 (patch)
tree1e6b270289924060c4a5700d134435005e134d8e /source
parent3fa85ede1a6d532b0e86c8b71d3f37d30c353aad (diff)
parent0048a81aeb06d3942362c9f00f9ca004a79bc56b (diff)
Merge pull request #134 from tfoleyNV/gh-133
Don't add `flat` qualifier to integer fragment output
Diffstat (limited to 'source')
-rw-r--r--source/slang/lower.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/source/slang/lower.cpp b/source/slang/lower.cpp
index 174c93c1d..9c2c38b60 100644
--- a/source/slang/lower.cpp
+++ b/source/slang/lower.cpp
@@ -3582,9 +3582,14 @@ struct LoweringVisitor
else if (isIntegralType(varType))
{
if (info.direction == VaryingParameterDirection::Input
- && shared->entryPointRequest->profile.GetStage() == Stage::Vertex)
+ && shared->entryPointRequest->profile.GetStage() != Stage::Fragment)
{
- // Don't add extra qualification to VS inputs
+ // Don't add extra qualification to vertex shader inputs
+ }
+ else if (info.direction == VaryingParameterDirection::Output
+ && shared->entryPointRequest->profile.GetStage() == Stage::Fragment)
+ {
+ // Don't add extra qualification to fragment shader outputs
}
else
{