#include "common/PackedEnums.h"
#include "common/utilities.h"
namespace gl
{
TextureType TextureTargetToType(TextureTarget target)
{ … }
bool IsCubeMapFaceTarget(TextureTarget target)
{ … }
TextureTarget NonCubeTextureTypeToTarget(TextureType type)
{ … }
static_assert …;
static_assert …;
static_assert …;
static_assert …;
static_assert …;
TextureTarget CubeFaceIndexToTextureTarget(size_t face)
{ … }
size_t CubeMapTextureTargetToFaceIndex(TextureTarget target)
{ … }
TextureType SamplerTypeToTextureType(GLenum samplerType)
{ … }
TextureType ImageTypeToTextureType(GLenum imageType)
{ … }
bool IsMultisampled(TextureType type)
{ … }
bool IsArrayTextureType(TextureType type)
{ … }
bool IsLayeredTextureType(TextureType type)
{ … }
bool IsStaticBufferUsage(BufferUsage useage)
{ … }
std::ostream &operator<<(std::ostream &os, PrimitiveMode value)
{ … }
std::ostream &operator<<(std::ostream &os, DrawElementsType value)
{ … }
std::ostream &operator<<(std::ostream &os, BlendEquationType value)
{ … }
std::ostream &operator<<(std::ostream &os, BlendFactorType value)
{ … }
std::ostream &operator<<(std::ostream &os, VertexAttribType value)
{ … }
std::ostream &operator<<(std::ostream &os, TessEvaluationType value)
{ … }
const char *ShaderTypeToString(ShaderType shaderType)
{ … }
bool operator<(const UniformLocation &lhs, const UniformLocation &rhs)
{ … }
bool IsEmulatedCompressedFormat(GLenum format)
{ … }
}
namespace egl
{
MessageType ErrorCodeToMessageType(EGLint errorCode)
{ … }
}
namespace egl_gl
{
gl::TextureTarget EGLCubeMapTargetToCubeMapTarget(EGLenum eglTarget)
{ … }
gl::TextureTarget EGLImageTargetToTextureTarget(EGLenum eglTarget)
{ … }
gl::TextureType EGLTextureTargetToTextureType(EGLenum eglTarget)
{ … }
}