]> git.tdb.fi Git - libs/gl.git/blobdiff - source/backends/opengl/program_backend.h
Support compute shaders and compute operations
[libs/gl.git] / source / backends / opengl / program_backend.h
index 14650708e32abe77ee8f3ac3e851212e4b2ce895..1a548ed69116d66d96bdd28e5194abb1cd441dfd 100644 (file)
@@ -20,6 +20,7 @@ protected:
                VERTEX,
                GEOMETRY,
                FRAGMENT,
+               COMPUTE,
                MAX_STAGES
        };
 
@@ -56,6 +57,8 @@ protected:
        void query_attributes();
        void finalize_uniforms();
 
+       bool is_compute() const { return stage_ids[COMPUTE]; }
+
        void set_debug_name(const std::string &);
        void set_stage_debug_name(unsigned, Stage);
 };