From 0110c8c0b0ed7886deb6532453eda1358320253e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Mon, 11 Dec 2017 10:47:44 -0800 Subject: [PATCH] shaderc: HLSL fixed interpolation specifier. --- tools/shaderc/shaderc.cpp | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/tools/shaderc/shaderc.cpp b/tools/shaderc/shaderc.cpp index 30a8f5897..2f12e4779 100644 --- a/tools/shaderc/shaderc.cpp +++ b/tools/shaderc/shaderc.cpp @@ -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(