Properly handle ssa input type (non-varying)

Properly handle ssa input as local (non-varying)
This commit is contained in:
kd-11 2016-04-02 18:19:06 +03:00
parent b21e226b1c
commit e9766f1b76
1 changed files with 3 additions and 0 deletions

View File

@ -54,6 +54,9 @@ void VKFragmentDecompilerThread::insertIntputs(std::stringstream & OS)
{
for (const ParamItem& PI : PT.items)
{
//ssa is defined in the program body and is not a varying type
if (PI.name == "ssa") continue;
const vk::varying_register_t &reg = vk::get_varying_register(PI.name);
std::string var_name = PI.name;