]> git.tdb.fi Git - libs/gl.git/blobdiff - source/glsl/generate.h
Implement tessellation shaders in the shader compiler
[libs/gl.git] / source / glsl / generate.h
index a4ab75719e29b2416ad36e3be6918ace0beeddd1..aba2c353f827239f7f4aaf3b2d2d73560d680db2 100644 (file)
@@ -63,6 +63,20 @@ private:
        virtual void visit(Passthrough &);
 };
 
+class LayoutDefaulter: private TraversingVisitor
+{
+private:
+       InterfaceLayout *in_iface = 0;
+       bool need_winding = true;
+       bool need_spacing = true;
+
+public:
+       void apply(Stage &);
+
+private:
+       virtual void visit(InterfaceLayout &);
+};
+
 /**
 Assigns sizes to arrays which don't have a size.  Geometry shader inputs are
 sized by topology.  Other arrays are sized by their use with literal indices.