Edit

kc3-lang/angle/src/libANGLE/packed_gl_enums.json

Branch :

  • Show log

    Commit

  • Author : Corentin Wallez
    Date : 2017-09-18 17:05:22
    Hash : 2e568cfb
    Message : Add generator for packed GL enums. For testing this also converts two unimportant GLenums, gl::BufferUsage and gl::CullModeFace. BUG=angleproject:2169 Change-Id: If1e86a97d0fed3fd567303aca6506ec579503076 Reviewed-on: https://chromium-review.googlesource.com/688000 Commit-Queue: Corentin Wallez <cwallez@chromium.org> Reviewed-by: Jamie Madill <jmadill@chromium.org>

  • src/libANGLE/packed_gl_enums.json
  • {
        "BufferUsage":
        {
            "DynamicCopy": "GL_DYNAMIC_COPY",
            "DynamicDraw": "GL_DYNAMIC_DRAW",
            "DynamicRead": "GL_DYNAMIC_READ",
            "StaticCopy": "GL_STATIC_COPY",
            "StaticDraw": "GL_STATIC_DRAW",
            "StaticRead": "GL_STATIC_READ",
            "StreamCopy": "GL_STREAM_COPY",
            "StreamDraw": "GL_STREAM_DRAW",
            "StreamRead": "GL_STREAM_READ"
        },
        "CullFaceMode":
        {
            "Back": "GL_BACK",
            "Front": "GL_FRONT",
            "FrontAndBack": "GL_FRONT_AND_BACK"
        }
    }