- // ResampleEffect uses RG textures to encode a two-component LUT.
- if (epoxy_gl_version() < 30 &&
- !epoxy_has_gl_extension("GL_ARB_texture_rg")) return false;
+ // The user can specify that they want a timing report for each
+ // phase in an effect chain. However, that depends on this extension;
+ // without it, we do cannot even create the query objects.
+ movit_timer_queries_supported =
+ (epoxy_gl_version() >= 33 || epoxy_has_gl_extension("GL_ARB_timer_query"));
+
+ // Certain effects have compute shader implementations, which may be
+ // more efficient than the normal fragment shader versions.
+ // GLSL 3.10 supposedly also has compute shaders, but I haven't tested them,
+ // so we require desktop OpenGL.
+ movit_compute_shaders_supported =
+ (epoxy_is_desktop_gl() &&
+ (epoxy_gl_version() >= 43 ||
+ (epoxy_has_gl_extension("GL_ARB_compute_shader") &&
+ epoxy_has_gl_extension("GL_ARB_shader_image_load_store"))));