[mutter] cogl: Add prototypes for getting timestamp queries



commit cc08af48f69e2e0b7815d2329387c72d0e13f4fb
Author: Ivan Molodetskikh <yalterz gmail com>
Date:   Wed Jan 6 15:32:57 2021 +0300

    cogl: Add prototypes for getting timestamp queries
    
    Will be used for measuring GPU rendering duration.
    
    Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1762>

 cogl/cogl/gl-prototypes/cogl-all-functions.h | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)
---
diff --git a/cogl/cogl/gl-prototypes/cogl-all-functions.h b/cogl/cogl/gl-prototypes/cogl-all-functions.h
index a0c6395af2..3a31a610ac 100644
--- a/cogl/cogl/gl-prototypes/cogl-all-functions.h
+++ b/cogl/cogl/gl-prototypes/cogl-all-functions.h
@@ -224,6 +224,14 @@ COGL_EXT_FUNCTION (void, glDeleteSync,
 COGL_EXT_END ()
 #endif
 
+COGL_EXT_BEGIN (sync_get_int64, 3, 2,
+                0,
+                "ARB:\0",
+                "sync\0")
+COGL_EXT_FUNCTION (void, glGetInteger64v,
+                   (GLenum pname, GLint64 *params))
+COGL_EXT_END ()
+
 COGL_EXT_BEGIN (draw_buffers, 2, 0,
                 COGL_EXT_IN_GLES3,
                 "ARB\0EXT\0",
@@ -247,3 +255,23 @@ COGL_EXT_BEGIN (multitexture_part1, 1, 3,
 COGL_EXT_FUNCTION (void, glClientActiveTexture,
                    (GLenum                texture))
 COGL_EXT_END ()
+
+COGL_EXT_BEGIN (query_counter, 3, 3,
+                0,
+                "ARB:\0",
+                "timer_query\0")
+COGL_EXT_FUNCTION (void, glQueryCounter,
+                   (GLuint id, GLenum target))
+COGL_EXT_FUNCTION (void, glGetQueryObjecti64v,
+                   (GLuint id, GLenum pname, GLint64 *params))
+COGL_EXT_END ()
+
+COGL_EXT_BEGIN (queries, 1, 5,
+                0,
+                "\0",
+                "\0")
+COGL_EXT_FUNCTION (void, glGenQueries,
+                   (GLsizei n, GLuint *ids))
+COGL_EXT_FUNCTION (void, glDeleteQueries,
+                   (GLsizei n, const GLuint *ids))
+COGL_EXT_END ()


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]