Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
if (glsl_type_is_struct_or_ifc(type)) {
unsigned count = 0;
- for (int i = 0; i < glsl_get_length(type); i++)
+ for (unsigned i = 0; i < glsl_get_length(type); i++)
count += glsl_type_get_sampler_count(glsl_get_struct_field(type, i));
return count;
}
if (glsl_type_is_struct_or_ifc(type)) {
unsigned count = 0;
- for (int i = 0; i < glsl_get_length(type); i++)
+ for (unsigned i = 0; i < glsl_get_length(type); i++)
count += glsl_type_get_image_count(glsl_get_struct_field(type, i));
return count;
}