nir/glsl: Add an explicit_alignment field to glsl_type
[mesa.git] / src / compiler / nir_types.cpp
index 9b4f9c5b0aacb6d1eba0dde92359ca28e99d2fee..1fff15c7cd58d480d5792c30542267804e51515a 100644 (file)
@@ -860,6 +860,12 @@ glsl_get_explicit_size(const struct glsl_type *type, bool align_to_stride)
    return type->explicit_size(align_to_stride);
 }
 
+unsigned
+glsl_get_explicit_alignment(const struct glsl_type *type)
+{
+   return type->explicit_alignment;
+}
+
 bool
 glsl_type_is_packed(const struct glsl_type *type)
 {