]> git.tdb.fi Git - libs/gl.git/blobdiff - source/glsl/finalize.h
Refactor projection matrix handling
[libs/gl.git] / source / glsl / finalize.h
index 79ba54b81b027c8b16743e0f1281b3e961611319..6e96c65eaecb46c0b7d04aaae3027cb063d7bbdf 100644 (file)
@@ -56,6 +56,18 @@ private:
        virtual void visit(FunctionDeclaration &) { }
 };
 
+/**
+Converts the output depth range to match expectations of the target API.
+*/
+class DepthRangeConverter: private TraversingVisitor
+{
+public:
+       void apply(Stage &, const Features &);
+
+private:
+       virtual void visit(FunctionDeclaration &);
+};
+
 /** Generates default precision declarations or removes precision declarations
 according to the requirements of the target API. */
 class PrecisionConverter: private TraversingVisitor