Clean up exported varyings and add support for querying program count from C/C++

This commit is contained in:
james.brodman
2013-12-17 15:55:59 -05:00
parent 01432670fd
commit 4a4da858cf
2 changed files with 16 additions and 6 deletions

View File

@@ -5158,3 +5158,12 @@ __declspec(safe)
static unmasked inline int16 avg_down(int16 a, int16 b) {
return __avg_down_int16(a, b);
}
// Added so programmers can query programCount
// at runtime from C/C++.
// This is useful for using varying
// structures with exported functions
export uniform int32 get_programCount() {
return programCount;
}