Commit f42409e6 by Jamie Madill Committed by Commit Bot

Program: Allow non-fragment program input variables.

Allows shaders that use GS/TS to have input varying variables. Bug: angleproject:5409 Change-Id: Idfbb725a4eef9e55fdde51d804a891b05dd1daee Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2572879Reviewed-by: 's avatarShahbaz Youssefi <syoussefi@chromium.org> Reviewed-by: 's avatarTim Van Patten <timvp@google.com> Commit-Queue: Jamie Madill <jmadill@chromium.org>
parent 72b68950
...@@ -1811,7 +1811,7 @@ void ProgramState::updateProgramInterfaceInputs() ...@@ -1811,7 +1811,7 @@ void ProgramState::updateProgramInterfaceInputs()
mExecutable->mProgramInputs.emplace_back(attribute); mExecutable->mProgramInputs.emplace_back(attribute);
} }
} }
else if (shader->getType() == ShaderType::Fragment) else
{ {
for (const sh::ShaderVariable &varying : shader->getInputVaryings()) for (const sh::ShaderVariable &varying : shader->getInputVaryings())
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment