]> git.tdb.fi Git - libs/gl.git/blobdiff - source/glsl/features.h
Reduce coupling between the GLSL compiler and the graphics engine
[libs/gl.git] / source / glsl / features.h
diff --git a/source/glsl/features.h b/source/glsl/features.h
new file mode 100644 (file)
index 0000000..8f7a3e7
--- /dev/null
@@ -0,0 +1,29 @@
+#ifndef MSP_GL_SL_FEATURES_H_
+#define MSP_GL_SL_FEATURES_H_
+
+#include <msp/gl/extension.h>
+
+namespace Msp {
+namespace GL {
+namespace SL {
+
+struct Features
+{
+       GLApi gl_api;
+       Version glsl_version;
+       bool arb_explicit_attrib_location;
+       bool arb_gpu_shader5;
+       bool arb_uniform_buffer_object;
+       bool ext_gpu_shader4;
+       bool ext_texture_array;
+
+       Features();
+
+       static Features from_context();
+};
+
+} // namespace SL
+} // namespace GL
+} // namespace Msp
+
+#endif