From b8fc92520f8a7d0a780a4cab2a714aadf586d283 Mon Sep 17 00:00:00 2001 From: Brad Roepstorff Date: Sat, 18 Jul 2015 17:03:09 -0400 Subject: [PATCH] adding better error message for missing varying.def.sc in shaderc --- tools/shaderc/shaderc.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tools/shaderc/shaderc.cpp b/tools/shaderc/shaderc.cpp index 7b7d16519..2574e3936 100644 --- a/tools/shaderc/shaderc.cpp +++ b/tools/shaderc/shaderc.cpp @@ -902,7 +902,11 @@ int main(int _argc, const char* _argv[]) { preprocessor.addDependency(varyingdef); } - + else + { + fprintf(stderr, "ERROR: Failed to parse varying def file: \"%s\" No input/output semantics will be generated in the code!\n", varyingdef); + } + while (NULL != parse && *parse != '\0') {