]> git.tdb.fi Git - libs/gl.git/blobdiff - source/backends/opengl/program_backend.h
Add tessellation shader support to the engine
[libs/gl.git] / source / backends / opengl / program_backend.h
index 1a548ed69116d66d96bdd28e5194abb1cd441dfd..9cce0f7e187ca4390e86962059955de5e1451c4f 100644 (file)
@@ -18,6 +18,8 @@ protected:
        enum Stage
        {
                VERTEX,
+               TESS_CONTROL,
+               TESS_EVAL,
                GEOMETRY,
                FRAGMENT,
                COMPUTE,
@@ -58,6 +60,7 @@ protected:
        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);