summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/shaderimage.h
diff options
context:
space:
mode:
authorAntia Puentes <[email protected]>2015-11-17 21:29:04 +0100
committerEduardo Lima Mitev <[email protected]>2016-03-03 15:14:07 +0100
commit990a7200e091f1d0f79979f9c02fc50a07d6acad (patch)
treefa6f768da51366a045df6d8a54fa460394ad850c /src/mesa/main/shaderimage.h
parent52c3692324675535105f2d5bbdf2c4cd26e76580 (diff)
mesa/shaderimage: Added func to get the GL_IMAGE_CLASS from the format
It will be used by the ARB_internalformat_query2 implementation to implement the IMAGE_COMPATIBILITY_CLASS <pname> query. Reviewed-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/mesa/main/shaderimage.h')
-rw-r--r--src/mesa/main/shaderimage.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mesa/main/shaderimage.h b/src/mesa/main/shaderimage.h
index 794c926d040..85193e104f6 100644
--- a/src/mesa/main/shaderimage.h
+++ b/src/mesa/main/shaderimage.h
@@ -43,6 +43,12 @@ mesa_format
_mesa_get_shader_image_format(GLenum format);
/**
+ * Get the GL image format class for a shader image format GL enum
+ */
+GLenum
+_mesa_get_image_format_class(GLenum format);
+
+/**
* Return whether an image format should be supported based on the current API
* version of the context.
*/