Add uniform block linking between the API, the program binary, and the compiler.
TRAC #22892
Signed-off-by: Nicolas Capens
Signed-off-by: Shannon Woods
Author: Jamie Madill
git-svn-id: https://angleproject.googlecode.com/svn/branches/es3proto@2338 736b8ea6-26fd-11df-bfd4-992fa37f6226
diff --git a/src/libGLESv2/Shader.cpp b/src/libGLESv2/Shader.cpp
index 280e9e4..f9df3f8 100644
--- a/src/libGLESv2/Shader.cpp
+++ b/src/libGLESv2/Shader.cpp
@@ -181,6 +181,11 @@
return mActiveUniforms;
}
+const sh::ActiveInterfaceBlocks &Shader::getInterfaceBlocks()
+{
+ return mActiveInterfaceBlocks;
+}
+
bool Shader::isCompiled()
{
return mHlsl != NULL;
@@ -358,6 +363,7 @@
mUsesDepthRange = false;
mActiveUniforms.clear();
+ mActiveInterfaceBlocks.clear();
}
void Shader::compileToHLSL(void *compiler)