Add a helper method to return the number of components in a texture format.
TRAC #23841
Signed-off-by: Geoff Lang
Signed-off-by: Shannon Woods
diff --git a/src/libGLESv2/formatutils.h b/src/libGLESv2/formatutils.h
index 13eae9d..323a981 100644
--- a/src/libGLESv2/formatutils.h
+++ b/src/libGLESv2/formatutils.h
@@ -66,6 +66,7 @@
GLenum GetType(GLint internalFormat, GLuint clientVersion);
GLenum GetComponentType(GLint internalFormat, GLuint clientVersion);
+GLuint GetComponentCount(GLint internalFormat, GLuint clientVersion);
GLenum GetColorEncoding(GLint internalFormat, GLuint clientVersion);
bool IsColorRenderingSupported(GLint internalFormat, const rx::Renderer *renderer);