chromium/third_party/angle/src/common/PackedEnums.cpp

// Copyright 2018 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.
//
// PackedGLEnums.cpp:
//   Declares ANGLE-specific enums classes for GLEnum and functions operating
//   on them.

#include "common/PackedEnums.h"

#include "common/utilities.h"

namespace gl
{

TextureType TextureTargetToType(TextureTarget target)
{}

bool IsCubeMapFaceTarget(TextureTarget target)
{}

TextureTarget NonCubeTextureTypeToTarget(TextureType type)
{}

// Check that we can do arithmetic on TextureTarget to convert from / to cube map faces
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 gl

namespace egl
{
MessageType ErrorCodeToMessageType(EGLint errorCode)
{}
}  // namespace egl

namespace egl_gl
{

gl::TextureTarget EGLCubeMapTargetToCubeMapTarget(EGLenum eglTarget)
{}

gl::TextureTarget EGLImageTargetToTextureTarget(EGLenum eglTarget)
{}

gl::TextureType EGLTextureTargetToTextureType(EGLenum eglTarget)
{}
}  // namespace egl_gl