diff options
author | Francisco Jerez <[email protected]> | 2014-11-18 14:14:46 +0200 |
---|---|---|
committer | Francisco Jerez <[email protected]> | 2015-05-04 17:44:15 +0300 |
commit | dded5271e4e811fa6df5005df0961295f58d3a1d (patch) | |
tree | 2cd9f6d03708107522f63e9c6a71fb4165f30da7 /src/mesa/main/shaderimage.h | |
parent | 96142a3e87abb9e61ee87e895df64f5f64606e83 (diff) |
mesa: Export shader image format to mesa format conversion function.
This function will be useful for back-ends to translate an image internal
format as specified in GLSL code into a mesa format.
Reviewed-by: Matt Turner <[email protected]>
Diffstat (limited to 'src/mesa/main/shaderimage.h')
-rw-r--r-- | src/mesa/main/shaderimage.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mesa/main/shaderimage.h b/src/mesa/main/shaderimage.h index 733ac774777..4aa859ca5cc 100644 --- a/src/mesa/main/shaderimage.h +++ b/src/mesa/main/shaderimage.h @@ -28,10 +28,17 @@ #define SHADERIMAGE_H #include "glheader.h" +#include "formats.h" struct gl_context; /** + * Get the matching mesa_format for a shader image format GL enum. + */ +mesa_format +_mesa_get_shader_image_format(GLenum format); + +/** * Recalculate the \c _Valid flag of a context's shader image units. * * To be called when the state of any texture bound to an image unit |