Add UniformExternalSize function

Trac #18608 Will be used in upcoming patch Signed-off-by: Nicolas Capens git-svn-id: https://angleproject.googlecode.com/svn/trunk@869 736b8ea6-26fd-11df-bfd4-992fa37f6226
parent e918ea2d
......@@ -140,6 +140,11 @@ size_t UniformInternalSize(GLenum type)
return UniformComponentSize(UniformComponentType(type)) * UniformInternalComponentCount(type);
}
size_t UniformExternalSize(GLenum type)
{
return UniformComponentSize(UniformComponentType(type)) * UniformExternalComponentCount(type);
}
int VariableRowCount(GLenum type)
{
switch (type)
......
......@@ -25,6 +25,7 @@ int UniformExternalComponentCount(GLenum type);
int UniformInternalComponentCount(GLenum type);
GLenum UniformComponentType(GLenum type);
size_t UniformInternalSize(GLenum type);
size_t UniformExternalSize(GLenum type);
int VariableRowCount(GLenum type);
int VariableColumnCount(GLenum type);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment