Preliminary work for ARB_bindless_texture which can interact
with ARB_shader_image_load_store.
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
state->Const.MaxTransformFeedbackInterleavedComponents);
}
- if (state->is_version(420, 310) ||
- state->ARB_shader_image_load_store_enable) {
+ if (state->has_shader_image_load_store()) {
add_const("gl_MaxImageUnits",
state->Const.MaxImageUnits);
add_const("gl_MaxVertexImageUniforms",
}
/* Layout qualifiers for ARB_shader_image_load_store. */
- if (state->ARB_shader_image_load_store_enable ||
- state->is_version(420, 310)) {
+ if (state->has_shader_image_load_store()) {
if (!$$.flags.i) {
static const struct {
const char *name;
is_version(400, 320);
}
+ bool has_shader_image_load_store() const
+ {
+ return ARB_shader_image_load_store_enable || is_version(420, 310);
+ }
+
void process_version_directive(YYLTYPE *locp, int version,
const char *ident);