compiler: Add glsl_contains_opaque() helper
Reviewed-by: Alejandro Piñeiro <apinheiro@igalia.com>
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
@@ -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);
|
||||
|
Reference in New Issue
Block a user