]> git.tdb.fi Git - libs/gl.git/blobdiff - source/backends/opengl/program_backend.h
Check the flat qualifier from the correct member
[libs/gl.git] / source / backends / opengl / program_backend.h
index 14650708e32abe77ee8f3ac3e851212e4b2ce895..9cce0f7e187ca4390e86962059955de5e1451c4f 100644 (file)
@@ -18,8 +18,11 @@ protected:
        enum Stage
        {
                VERTEX,
+               TESS_CONTROL,
+               TESS_EVAL,
                GEOMETRY,
                FRAGMENT,
+               COMPUTE,
                MAX_STAGES
        };
 
@@ -56,6 +59,9 @@ protected:
        void query_attributes();
        void finalize_uniforms();
 
+       bool is_compute() const { return stage_ids[COMPUTE]; }
+       bool has_tessellation() const { return stage_ids[TESS_CONTROL] && stage_ids[TESS_EVAL]; }
+
        void set_debug_name(const std::string &);
        void set_stage_debug_name(unsigned, Stage);
 };