X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fglsl%2Ffinalize.h;h=6e96c65eaecb46c0b7d04aaae3027cb063d7bbdf;hp=79ba54b81b027c8b16743e0f1281b3e961611319;hb=acd7bb6e23e2aff9934ecf32852c62ba72c13574;hpb=6211e1556df8345ad1c4e7edbd635bccdd7f54f0 diff --git a/source/glsl/finalize.h b/source/glsl/finalize.h index 79ba54b8..6e96c65e 100644 --- a/source/glsl/finalize.h +++ b/source/glsl/finalize.h @@ -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