Commit c8c9a24a by Jamie Madill Committed by Commit Bot

Entry Points: Refactor generator script.

This cleans up some of the organization of the python generator. It will make the extension entry point generation simpler. It also changes the header guards to use more underscores, which produces a small diff. Also updates the copyright year in a few generated files. Bug: angleproject:2263 Change-Id: I42f061c24a6cfcd8328c56c57eaed9ca6c7bb293 Reviewed-on: https://chromium-review.googlesource.com/846306Reviewed-by: 's avatarCorentin Wallez <cwallez@chromium.org> Commit-Queue: Jamie Madill <jmadill@chromium.org>
parent c33f1e8c
// GENERATED FILE - DO NOT EDIT. // GENERATED FILE - DO NOT EDIT.
// Generated by gen_packed_gl_enums.py using data from packed_gl_enums.json. // Generated by gen_packed_gl_enums.py using data from packed_gl_enums.json.
// //
// Copyright 2017 The ANGLE Project Authors. All rights reserved. // Copyright 2018 The ANGLE Project Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
// //
......
// GENERATED FILE - DO NOT EDIT. // GENERATED FILE - DO NOT EDIT.
// Generated by gen_packed_gl_enums.py using data from packed_gl_enums.json. // Generated by gen_packed_gl_enums.py using data from packed_gl_enums.json.
// //
// Copyright 2017 The ANGLE Project Authors. All rights reserved. // Copyright 2018 The ANGLE Project Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
// //
......
// GENERATED FILE - DO NOT EDIT. // GENERATED FILE - DO NOT EDIT.
// Generated by generate_entry_points.py using data from gl.xml. // Generated by generate_entry_points.py using data from gl.xml.
// //
// Copyright 2017 The ANGLE Project Authors. All rights reserved. // Copyright 2018 The ANGLE Project Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
// //
...@@ -93,6 +93,7 @@ enum class EntryPoint ...@@ -93,6 +93,7 @@ enum class EntryPoint
DrawElements, DrawElements,
DrawElementsIndirect, DrawElementsIndirect,
DrawElementsInstanced, DrawElementsInstanced,
DrawElementsInstancedANGLE,
DrawRangeElements, DrawRangeElements,
Enable, Enable,
EnableVertexAttribArray, EnableVertexAttribArray,
...@@ -329,8 +330,7 @@ enum class EntryPoint ...@@ -329,8 +330,7 @@ enum class EntryPoint
VertexAttribPointer, VertexAttribPointer,
VertexBindingDivisor, VertexBindingDivisor,
Viewport, Viewport,
WaitSync, WaitSync
DrawElementsInstancedANGLE
}; };
} // namespace gl } // namespace gl
#endif // LIBGLESV2_ENTRY_POINTS_ENUM_AUTOGEN_H_ #endif // LIBGLESV2_ENTRY_POINTS_ENUM_AUTOGEN_H_
// GENERATED FILE - DO NOT EDIT. // GENERATED FILE - DO NOT EDIT.
// Generated by gen_angle_format_table.py using data from angle_format_data.json // Generated by gen_angle_format_table.py using data from angle_format_data.json
// //
// Copyright 2017 The ANGLE Project Authors. All rights reserved. // Copyright 2018 The ANGLE Project Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
// //
......
// GENERATED FILE - DO NOT EDIT. // GENERATED FILE - DO NOT EDIT.
// Generated by gen_angle_format_table.py using data from angle_format_data.json // Generated by gen_angle_format_table.py using data from angle_format_data.json
// //
// Copyright 2017 The ANGLE Project Authors. All rights reserved. // Copyright 2018 The ANGLE Project Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
// //
......
// GENERATED FILE - DO NOT EDIT. // GENERATED FILE - DO NOT EDIT.
// Generated by generate_entry_points.py using data from gl.xml. // Generated by generate_entry_points.py using data from gl.xml.
// //
// Copyright 2017 The ANGLE Project Authors. All rights reserved. // Copyright 2018 The ANGLE Project Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
// //
......
// GENERATED FILE - DO NOT EDIT. // GENERATED FILE - DO NOT EDIT.
// Generated by generate_entry_points.py using data from gl.xml. // Generated by generate_entry_points.py using data from gl.xml.
// //
// Copyright 2017 The ANGLE Project Authors. All rights reserved. // Copyright 2018 The ANGLE Project Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
// //
// entry_points_gles_2_0_autogen.h: // entry_points_gles_2_0_autogen.h:
// Defines the GLES 2.0 entry points. // Defines the GLES 2.0 entry points.
#ifndef LIBGLESV2_ENTRYPOINTSGLES20_AUTOGEN_H_ #ifndef LIBGLESV2_ENTRY_POINTS_GLES_2_0_AUTOGEN_H_
#define LIBGLESV2_ENTRYPOINTSGLES20_AUTOGEN_H_ #define LIBGLESV2_ENTRY_POINTS_GLES_2_0_AUTOGEN_H_
#include <GLES2/gl2.h> #include <GLES2/gl2.h>
#include <export.h> #include <export.h>
...@@ -294,4 +294,4 @@ ANGLE_EXPORT void GL_APIENTRY VertexAttribPointer(GLuint index, ...@@ -294,4 +294,4 @@ ANGLE_EXPORT void GL_APIENTRY VertexAttribPointer(GLuint index,
ANGLE_EXPORT void GL_APIENTRY Viewport(GLint x, GLint y, GLsizei width, GLsizei height); ANGLE_EXPORT void GL_APIENTRY Viewport(GLint x, GLint y, GLsizei width, GLsizei height);
} // namespace gl } // namespace gl
#endif // LIBGLESV2_ENTRYPOINTSGLES20_AUTOGEN_H_ #endif // LIBGLESV2_ENTRY_POINTS_GLES_2_0_AUTOGEN_H_
// GENERATED FILE - DO NOT EDIT. // GENERATED FILE - DO NOT EDIT.
// Generated by generate_entry_points.py using data from gl.xml. // Generated by generate_entry_points.py using data from gl.xml.
// //
// Copyright 2017 The ANGLE Project Authors. All rights reserved. // Copyright 2018 The ANGLE Project Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
// //
......
// GENERATED FILE - DO NOT EDIT. // GENERATED FILE - DO NOT EDIT.
// Generated by generate_entry_points.py using data from gl.xml. // Generated by generate_entry_points.py using data from gl.xml.
// //
// Copyright 2017 The ANGLE Project Authors. All rights reserved. // Copyright 2018 The ANGLE Project Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
// //
// entry_points_gles_3_0_autogen.h: // entry_points_gles_3_0_autogen.h:
// Defines the GLES 3.0 entry points. // Defines the GLES 3.0 entry points.
#ifndef LIBGLESV2_ENTRYPOINTSGLES30_AUTOGEN_H_ #ifndef LIBGLESV2_ENTRY_POINTS_GLES_3_0_AUTOGEN_H_
#define LIBGLESV2_ENTRYPOINTSGLES30_AUTOGEN_H_ #define LIBGLESV2_ENTRY_POINTS_GLES_3_0_AUTOGEN_H_
#include <GLES3/gl3.h> #include <GLES3/gl3.h>
#include <export.h> #include <export.h>
...@@ -281,4 +281,4 @@ VertexAttribIPointer(GLuint index, GLint size, GLenum type, GLsizei stride, cons ...@@ -281,4 +281,4 @@ VertexAttribIPointer(GLuint index, GLint size, GLenum type, GLsizei stride, cons
ANGLE_EXPORT void GL_APIENTRY WaitSync(GLsync sync, GLbitfield flags, GLuint64 timeout); ANGLE_EXPORT void GL_APIENTRY WaitSync(GLsync sync, GLbitfield flags, GLuint64 timeout);
} // namespace gl } // namespace gl
#endif // LIBGLESV2_ENTRYPOINTSGLES30_AUTOGEN_H_ #endif // LIBGLESV2_ENTRY_POINTS_GLES_3_0_AUTOGEN_H_
// GENERATED FILE - DO NOT EDIT. // GENERATED FILE - DO NOT EDIT.
// Generated by generate_entry_points.py using data from gl.xml. // Generated by generate_entry_points.py using data from gl.xml.
// //
// Copyright 2017 The ANGLE Project Authors. All rights reserved. // Copyright 2018 The ANGLE Project Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
// //
......
// GENERATED FILE - DO NOT EDIT. // GENERATED FILE - DO NOT EDIT.
// Generated by generate_entry_points.py using data from gl.xml. // Generated by generate_entry_points.py using data from gl.xml.
// //
// Copyright 2017 The ANGLE Project Authors. All rights reserved. // Copyright 2018 The ANGLE Project Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
// //
// entry_points_gles_3_1_autogen.h: // entry_points_gles_3_1_autogen.h:
// Defines the GLES 3.1 entry points. // Defines the GLES 3.1 entry points.
#ifndef LIBGLESV2_ENTRYPOINTSGLES31_AUTOGEN_H_ #ifndef LIBGLESV2_ENTRY_POINTS_GLES_3_1_AUTOGEN_H_
#define LIBGLESV2_ENTRYPOINTSGLES31_AUTOGEN_H_ #define LIBGLESV2_ENTRY_POINTS_GLES_3_1_AUTOGEN_H_
#include <GLES3/gl31.h> #include <GLES3/gl31.h>
#include <export.h> #include <export.h>
#include "common/platform.h" #include "common/platform.h"
namespace gl namespace gl
...@@ -225,4 +224,4 @@ ANGLE_EXPORT void GL_APIENTRY VertexAttribIFormat(GLuint attribindex, ...@@ -225,4 +224,4 @@ ANGLE_EXPORT void GL_APIENTRY VertexAttribIFormat(GLuint attribindex,
ANGLE_EXPORT void GL_APIENTRY VertexBindingDivisor(GLuint bindingindex, GLuint divisor); ANGLE_EXPORT void GL_APIENTRY VertexBindingDivisor(GLuint bindingindex, GLuint divisor);
} // namespace gl } // namespace gl
#endif // LIBGLESV2_ENTRYPOINTSGLES31_AUTOGEN_H_ #endif // LIBGLESV2_ENTRY_POINTS_GLES_3_1_AUTOGEN_H_
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment