X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fbackends%2Fopengl%2Fprogram_backend.h;h=2a223ff5ae1b50ffc46fc343c4a45996a04208cc;hb=HEAD;hp=14650708e32abe77ee8f3ac3e851212e4b2ce895;hpb=89347a620294a1136ee111edeadec68390654f78;p=libs%2Fgl.git diff --git a/source/backends/opengl/program_backend.h b/source/backends/opengl/program_backend.h index 14650708..9cce0f7e 100644 --- a/source/backends/opengl/program_backend.h +++ b/source/backends/opengl/program_backend.h @@ -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); };