aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/main/glformats.h
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2016-03-15 00:30:05 -0700
committerKenneth Graunke <[email protected]>2016-03-18 18:43:23 -0700
commitf1b05735108c6733893dfbe762366f2676501c0d (patch)
treee917333dee818b57d90e4704213bd706099b7e5d /src/mesa/main/glformats.h
parent88d28aa4d9edec33ef7bcf1f56b77fbb756a24f8 (diff)
mesa: Add color renderable/texture filterable format info for ES 3.x.
OpenGL ES 3.x contains a table of sized internal formats and their required properties. In particular, each format is marked as "Color Renderable" or "Texture Filterable". This patch introduces two functions that can be used to query the information from that table. Signed-off-by: Kenneth Graunke <[email protected]> Reviewed-by: Jordan Justen <[email protected]>
Diffstat (limited to 'src/mesa/main/glformats.h')
-rw-r--r--src/mesa/main/glformats.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mesa/main/glformats.h b/src/mesa/main/glformats.h
index 00d2767085d..c73f464e5f9 100644
--- a/src/mesa/main/glformats.h
+++ b/src/mesa/main/glformats.h
@@ -28,6 +28,7 @@
#define GLFORMATS_H
+#include <stdbool.h>
#include <GL/gl.h>
@@ -144,6 +145,12 @@ _mesa_base_tex_format(const struct gl_context *ctx, GLint internalFormat );
extern uint32_t
_mesa_format_from_format_and_type(GLenum format, GLenum type);
+extern bool
+_mesa_is_es3_color_renderable(GLenum internal_format);
+
+extern bool
+_mesa_is_es3_texture_filterable(GLenum internal_format);
+
#ifdef __cplusplus
}
#endif