Explorar el Código

adding better error message for missing varying.def.sc in shaderc

Brad Roepstorff hace 10 años
padre
commit
b8fc92520f
Se han modificado 1 ficheros con 5 adiciones y 1 borrados
  1. 5 1
      tools/shaderc/shaderc.cpp

+ 5 - 1
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')
 		{