]> git.tdb.fi Git - libs/gl.git/blobdiff - source/glsl/preprocessor.cpp
Support compute shaders in the shader compiler
[libs/gl.git] / source / glsl / preprocessor.cpp
index ea6dd6de700fce75cb96141fd021b7b1ec5146bb..f2becd91f371302133948f3156a4ab3c2b81e6fe 100644 (file)
@@ -93,6 +93,8 @@ void Preprocessor::preprocess_stage()
                stage = Stage::GEOMETRY;
        else if(token=="fragment")
                stage = Stage::FRAGMENT;
+       else if(token=="compute")
+               stage = Stage::COMPUTE;
        else
                throw parse_error(tokenizer.get_location(), token, "stage identifier");
        tokenizer.expect(")");