X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fglsl%2Fcompatibility.h;h=ad6c7cbe9c875f3a63c7cdb69c682f2f7f7a0aa3;hb=30465dd3b9f55ec42c4b19c3c2077eede7237a26;hp=852a6590bd67c287cf272d1a85bc9cfdb746a5c3;hpb=a47639620c40397939ae4d79c08d5d8f460bad5c;p=libs%2Fgl.git diff --git a/source/glsl/compatibility.h b/source/glsl/compatibility.h index 852a6590..ad6c7cbe 100644 --- a/source/glsl/compatibility.h +++ b/source/glsl/compatibility.h @@ -8,6 +8,8 @@ namespace Msp { namespace GL { namespace SL { +/** Generates default precision declarations if they are missing, to satisfy +GLSL ES requirements. */ class DefaultPrecisionGenerator: private TraversingVisitor { private: @@ -26,6 +28,8 @@ private: virtual void visit(VariableDeclaration &); }; +/** Removes precision qualifiers from variable declarations, as well as +default precision declarations. */ class PrecisionRemover: private TraversingVisitor { private: @@ -39,6 +43,8 @@ private: virtual void visit(VariableDeclaration &); }; +/** Converts structures of the syntax tree to match a particular set of +features. */ class LegacyConverter: private TraversingVisitor { private: