8 #ifndef hifi_gpu_gl_GLTexelFormat_h
9 #define hifi_gpu_gl_GLTexelFormat_h
13 namespace gpu {
namespace gl {
17 GLenum internalFormat{ GL_RGBA8 };
18 GLenum format{ GL_RGBA };
19 GLenum type{ GL_UNSIGNED_BYTE };
21 GLTexelFormat(GLenum glinternalFormat, GLenum glformat, GLenum gltype) : internalFormat(glinternalFormat), format(glformat), type(gltype) {}
22 GLTexelFormat(GLenum glinternalFormat) : internalFormat(glinternalFormat) {}
24 static bool isCompressed(GLenum glinternalFormat);
26 bool isCompressed()
const;
28 static GLTexelFormat evalGLTexelFormat(
const Element& dstFormat) {
29 return evalGLTexelFormat(dstFormat, dstFormat);
31 static GLenum evalGLTexelFormatInternal(
const Element& dstFormat);
33 static GLTexelFormat evalGLTexelFormat(
const Element& dstFormat,
const Element& srcFormat);