shaderc: HLSL fixed interpolation specifier.

This commit is contained in:
Branimir Karadžić 2017-12-11 10:47:44 -08:00
parent 657b25d0bc
commit 0110c8c0b0

View File

@ -1637,8 +1637,18 @@ namespace bgfx
if (varyingIt != varyingMap.end() )
{
const Varying& var = varyingIt->second;
preprocessor.writef("\t%s %s : %s;\n", var.m_type.c_str(), var.m_name.c_str(), var.m_semantics.c_str() );
preprocessor.writef("#define %s _varying_.%s\n", var.m_name.c_str(), var.m_name.c_str() );
preprocessor.writef(
"\t%s %s %s : %s;\n"
, interpolationDx11(var.m_interpolation.c_str() )
, var.m_type.c_str()
, var.m_name.c_str()
, var.m_semantics.c_str()
);
preprocessor.writef(
"#define %s _varying_.%s\n"
, var.m_name.c_str()
, var.m_name.c_str()
);
}
}
preprocessor.writef(