2
// Copyright 2019 The ANGLE Project Authors. All rights reserved.
3
// Use of this source code is governed by a BSD-style license that can be
4
// found in the LICENSE file.
7
// Utility functions for converting GLenums to string.
9
#ifndef LIBANGLE_GL_ENUM_UTILS_H_
10
#define LIBANGLE_GL_ENUM_UTILS_H_
15
#include "libANGLE/gl_enum_utils_autogen.h"
19
const char *GLbooleanToString(unsigned int value);
20
const char *GLenumToString(GLenumGroup enumGroup, unsigned int value);
21
std::string GLbitfieldToString(GLenumGroup enumGroup, unsigned int value);
22
void OutputGLenumString(std::ostream &out, GLenumGroup enumGroup, unsigned int value);
23
void OutputGLbitfieldString(std::ostream &out, GLenumGroup enumGroup, unsigned int value);
25
extern const char kUnknownGLenumString[];
28
#endif // LIBANGLE_GL_ENUM_UTILS_H_