glsl: Add constuctors for the common cases of glsl_struct_field
[mesa.git] / src / glsl / tests / varyings_test.cpp
index 62f8c6bc5ad5e55d4c488db0cc5382d840421bd9..0c4e0a471b8fa69d506ef8486ad025ea33e99ac2 100644 (file)
@@ -76,15 +76,7 @@ public:
 link_varyings::link_varyings()
 {
    static const glsl_struct_field f[] = {
-      {
-         glsl_type::vec(4),
-         "v",
-         false,
-         0,
-         0,
-         0,
-         0
-      }
+      glsl_struct_field(glsl_type::vec(4), "v")
    };
 
    this->simple_interface =