Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
return type->sampler_index();
}
+int
+glsl_get_sampler_coordinate_components(const struct glsl_type *type)
+{
+ assert(glsl_type_is_sampler(type) || glsl_type_is_image(type));
+ return type->coordinate_components();
+}
+
unsigned
glsl_get_record_location_offset(const struct glsl_type *type,
unsigned length)
enum glsl_sampler_dim glsl_get_sampler_dim(const struct glsl_type *type);
enum glsl_base_type glsl_get_sampler_result_type(const struct glsl_type *type);
unsigned glsl_get_sampler_target(const struct glsl_type *type);
+int glsl_get_sampler_coordinate_components(const struct glsl_type *type);
unsigned glsl_get_record_location_offset(const struct glsl_type *type,
unsigned length);