Edit

kc3-lang/angle/src/common/PackedEGLEnums_autogen.h

Branch :

  • Show log

    Commit

  • Author : Jeff Gilbert
    Date : 2019-01-02 16:21:18
    Hash : 465d6090
    Message : Add GL_ANGLE_provoking_vertex on D3D11 and GL. This extension is a subset of GL_ARB_provoking_vertex without the QUADS_FOLLOW_PROVOKING_VERTEX_CONVENTION query. Bug: angleproject:2829 Change-Id: I907a4d16b7b13d3bbfb948842091eedd7b6a8b77 Reviewed-on: https://chromium-review.googlesource.com/c/1410289 Commit-Queue: Geoff Lang <geofflang@chromium.org> Reviewed-by: Jamie Madill <jmadill@chromium.org>

  • src/common/PackedEGLEnums_autogen.h
  • // GENERATED FILE - DO NOT EDIT.
    // Generated by gen_packed_gl_enums.py using data from packed_egl_enums.json.
    //
    // 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.
    //
    // PackedEGLEnums_autogen.h:
    //   Declares ANGLE-specific enums classes for EGLenums and functions operating
    //   on them.
    
    #ifndef COMMON_PACKEDEGLENUMS_AUTOGEN_H_
    #define COMMON_PACKEDEGLENUMS_AUTOGEN_H_
    
    #include <EGL/egl.h>
    #include <EGL/eglext.h>
    #include <angle_gl.h>
    
    #include <cstdint>
    
    namespace egl
    {
    
    template <typename Enum>
    Enum FromEGLenum(EGLenum from);
    
    enum class CompositorTiming : uint8_t
    {
        CompositeDeadline        = 0,
        CompositInterval         = 1,
        CompositToPresentLatency = 2,
    
        InvalidEnum = 3,
        EnumCount   = 3,
    };
    
    template <>
    CompositorTiming FromEGLenum<CompositorTiming>(EGLenum from);
    EGLenum ToEGLenum(CompositorTiming from);
    
    enum class MessageType : uint8_t
    {
        Critical = 0,
        Error    = 1,
        Warn     = 2,
        Info     = 3,
    
        InvalidEnum = 4,
        EnumCount   = 4,
    };
    
    template <>
    MessageType FromEGLenum<MessageType>(EGLenum from);
    EGLenum ToEGLenum(MessageType from);
    
    enum class ObjectType : uint8_t
    {
        Thread  = 0,
        Display = 1,
        Context = 2,
        Surface = 3,
        Image   = 4,
        Sync    = 5,
        Stream  = 6,
    
        InvalidEnum = 7,
        EnumCount   = 7,
    };
    
    template <>
    ObjectType FromEGLenum<ObjectType>(EGLenum from);
    EGLenum ToEGLenum(ObjectType from);
    
    enum class TextureFormat : uint8_t
    {
        NoTexture = 0,
        RGB       = 1,
        RGBA      = 2,
    
        InvalidEnum = 3,
        EnumCount   = 3,
    };
    
    template <>
    TextureFormat FromEGLenum<TextureFormat>(EGLenum from);
    EGLenum ToEGLenum(TextureFormat from);
    
    enum class Timestamp : uint8_t
    {
        RequestedPresentTime            = 0,
        RenderingCompleteTime           = 1,
        CompositionLatchTime            = 2,
        FirstCompositionStartTime       = 3,
        LastCompositionStartTime        = 4,
        FirstCompositionGPUFinishedTime = 5,
        DisplayPresentTime              = 6,
        DequeueReadyTime                = 7,
        ReadsDoneTime                   = 8,
    
        InvalidEnum = 9,
        EnumCount   = 9,
    };
    
    template <>
    Timestamp FromEGLenum<Timestamp>(EGLenum from);
    EGLenum ToEGLenum(Timestamp from);
    
    }  // namespace egl
    
    #endif  // COMMON_PACKEDEGLENUMS_AUTOGEN_H_