diff options
Diffstat (limited to 'gfx/angle/checkout/src/libANGLE/capture/gl_enum_utils.h')
-rw-r--r-- | gfx/angle/checkout/src/libANGLE/capture/gl_enum_utils.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/gfx/angle/checkout/src/libANGLE/capture/gl_enum_utils.h b/gfx/angle/checkout/src/libANGLE/capture/gl_enum_utils.h new file mode 100644 index 0000000000..1fac416138 --- /dev/null +++ b/gfx/angle/checkout/src/libANGLE/capture/gl_enum_utils.h @@ -0,0 +1,32 @@ +// +// Copyright 2019 The ANGLE Project Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. +// +// gl_enum_utils.h: +// Utility functions for converting GLenums to string. + +#ifndef LIBANGLE_GL_ENUM_UTILS_H_ +#define LIBANGLE_GL_ENUM_UTILS_H_ + +#include <ostream> +#include <string> + +#include "libANGLE/capture/gl_enum_utils_autogen.h" + +namespace gl +{ +const char *GLbooleanToString(unsigned int value); +const char *GLenumToString(GLESEnum enumGroup, unsigned int value); +const char *GLenumToString(BigGLEnum enumGroup, unsigned int value); +std::string GLbitfieldToString(GLESEnum enumGroup, unsigned int value); +std::string GLbitfieldToString(BigGLEnum enumGroup, unsigned int value); +void OutputGLenumString(std::ostream &out, GLESEnum enumGroup, unsigned int value); +void OutputGLenumString(std::ostream &out, BigGLEnum enumGroup, unsigned int value); +void OutputGLbitfieldString(std::ostream &out, GLESEnum enumGroup, unsigned int value); +const char *GLinternalFormatToString(unsigned int format); + +extern const char kUnknownGLenumString[]; +} // namespace gl + +#endif // LIBANGLE_GL_ENUM_UTILS_H_ |