X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fcore%2Fmodule.h;h=9ac54d328ee42a86b97fed32e82383a171138739;hp=7713d3ce0a77a79af54b61298868a31b24c77d1a;hb=271760e6099bf5f4ad90894697dab911c236a0a3;hpb=8323eb754769cb6db7e02f4226cc9eedc5e614cf diff --git a/source/core/module.h b/source/core/module.h index 7713d3ce..9ac54d32 100644 --- a/source/core/module.h +++ b/source/core/module.h @@ -79,6 +79,15 @@ public: OUTPUT = 3 }; + enum BuiltinSemantic + { + NOT_BUILTIN = -1, + POSITION = 0, + CLIP_DISTANCE = 3, + LAYER = 9, + FRAG_DEPTH = 22 + }; + struct Constant; struct Structure; struct Variable; @@ -100,6 +109,7 @@ public: const Constant *array_size_spec = 0; unsigned array_stride = 0; unsigned matrix_stride = 0; + BuiltinSemantic builtin = NOT_BUILTIN; }; struct Structure @@ -120,6 +130,7 @@ public: int location = -1; int descriptor_set = -1; int binding = -1; + BuiltinSemantic builtin = NOT_BUILTIN; bool operator==(const Variable &) const; };