aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorZhenyao Mo <zmo@chromium.org>2013-09-23 14:57:05 -0400
committerJamie Madill <jmadill@chromium.org>2013-09-24 15:13:05 -0400
commitd2d340b0da87296b1ec04799ef4c811966bfb7ae (patch)
tree86ddbbe0b1a0034b43eeebcf4677f5d1b4c9018e /include
parentfa3c346fe9d832b163cfcff29bba5965bcaff08e (diff)
downloadangle-d2d340b0da87296b1ec04799ef4c811966bfb7ae.tar.gz
Add static_use to shader variable info query.
BUG=249018 ANGLEBUG=465 R=kbr@chromium.org Review URL: https://codereview.appspot.com/13158043
Diffstat (limited to 'include')
-rw-r--r--include/GLSLANG/ShaderLang.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/GLSLANG/ShaderLang.h b/include/GLSLANG/ShaderLang.h
index a40a20a3..442b5a2b 100644
--- a/include/GLSLANG/ShaderLang.h
+++ b/include/GLSLANG/ShaderLang.h
@@ -37,7 +37,7 @@ extern "C" {
// Version number for shader translation API.
// It is incremented every time the API changes.
-#define ANGLE_SH_VERSION 121
+#define ANGLE_SH_VERSION 122
//
// The names of the following enums have been derived by replacing GL prefix
@@ -413,6 +413,10 @@ COMPILER_EXPORT void ShGetObjectCode(const ShHandle handle, char* objCode);
// size: Returns the size of the variable.
// type: Returns the data type of the variable.
// precision: Returns the precision of the variable.
+// staticUse: Returns 1 if the variable is accessed in a statement after
+// pre-processing, whether or not run-time flow of control will
+// cause that statement to be executed.
+// Returns 0 otherwise.
// name: Returns a null terminated string containing the name of the
// variable. It is assumed that name has enough memory to accormodate
// the variable name. The size of the buffer required to store the
@@ -431,6 +435,7 @@ COMPILER_EXPORT void ShGetVariableInfo(const ShHandle handle,
int* size,
ShDataType* type,
ShPrecisionType* precision,
+ int* staticUse,
char* name,
char* mappedName);