compiler: Add glsl_contains_opaque() helper

Reviewed-by: Alejandro Piñeiro <apinheiro@igalia.com>
This commit is contained in:
Caio Marcelo de Oliveira Filho
2019-08-21 09:06:14 -07:00
parent 1a96811fe1
commit eda596d64b
2 changed files with 7 additions and 0 deletions

View File

@@ -674,6 +674,12 @@ glsl_contains_atomic(const struct glsl_type *type)
return type->contains_atomic();
}
bool
glsl_contains_opaque(const struct glsl_type *type)
{
return type->contains_opaque();
}
int
glsl_get_cl_size(const struct glsl_type *type)
{

View File

@@ -137,6 +137,7 @@ bool glsl_type_contains_64bit(const struct glsl_type *type);
bool glsl_sampler_type_is_shadow(const struct glsl_type *type);
bool glsl_sampler_type_is_array(const struct glsl_type *type);
bool glsl_contains_atomic(const struct glsl_type *type);
bool glsl_contains_opaque(const struct glsl_type *type);
const struct glsl_type *glsl_void_type(void);
const struct glsl_type *glsl_float_type(void);