]> git.tdb.fi Git - libs/gl.git/blobdiff - source/glsl/syntax.h
Add basic validation to the GLSL compiler
[libs/gl.git] / source / glsl / syntax.h
index 384bd60f603dc04cef77d41a67f5f190d5414851..da7b0907e37460d5b7041d32e2c921dee9473563 100644 (file)
@@ -8,6 +8,7 @@
 #include <vector>
 #include <msp/core/refptr.h>
 #include "features.h"
+#include "glsl_error.h"
 #include "sourcemap.h"
 
 #pragma push_macro("interface")
@@ -420,6 +421,7 @@ struct Stage
        std::map<std::string, FunctionDeclaration *> functions;
        std::map<std::string, unsigned> locations;
        Features required_features;
+       std::vector<Diagnostic> diagnostics;
 
        Stage(Type);