Fix HLSL built-in passthrough via inout
This commit is contained in:
parent
2518af09c8
commit
2c4348f064
4 changed files with 143 additions and 0 deletions
|
|
@ -9658,6 +9658,10 @@ void HlslParseContext::correctOutput(TQualifier& qualifier)
|
|||
if (language != EShLangTessControl)
|
||||
qualifier.patch = false;
|
||||
|
||||
// Fixes Test/hlsl.entry-inout.vert (SV_Position will not become a varying).
|
||||
if (qualifier.builtIn == EbvNone)
|
||||
qualifier.builtIn = qualifier.declaredBuiltIn;
|
||||
|
||||
switch (qualifier.builtIn) {
|
||||
case EbvFragDepth:
|
||||
intermediate.setDepthReplacing();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue