File: CHROMIUM_completion_query.txt

package info (click to toggle)
chromium 139.0.7258.127-2
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 6,122,156 kB
  • sloc: cpp: 35,100,771; ansic: 7,163,530; javascript: 4,103,002; python: 1,436,920; asm: 946,517; xml: 746,709; pascal: 187,653; perl: 88,691; sh: 88,436; objc: 79,953; sql: 51,488; cs: 44,583; fortran: 24,137; makefile: 22,147; tcl: 15,277; php: 13,980; yacc: 8,984; ruby: 7,485; awk: 3,720; lisp: 3,096; lex: 1,327; ada: 727; jsp: 228; sed: 36
file content (60 lines) | stat: -rw-r--r-- 1,484 bytes parent folder | download | duplicates (17)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
Name

    CHROMIUM_completion_query

Name Strings

    GL_CHROMIUM_completion_query

Version

    Last Modified Date: May 7, 2019

Dependencies

    OpenGL ES 2.0 is required.

    GL_KHR_parallel_shader_compile is required.

Overview

    This extension provides a same query mechanism as the COMPLETION_STATUS_KHR
    in GL_KHR_parallel_shader_compile, which indicates whether the program
    linking or shader compilation has completed. The major advantage of this
    query is that it doesn't incurs an expensive round-trip to the GPU thread.
    So it's much cheaper for polling. You can use it this way:
        glBeginQueryEXT(PROGRAM_COMPLETION_QUERY_CHROMIUM, query);
        glLinkProgram(program);
        glEndQueryEXT(PROGRAM_COMPLETION_QUERY_CHROMIUM);
        GLuint available = 0u;
        glGetQueryObjectuivEXT(query, GL_QUERY_RESULT_AVAILABLE, &available);
        if (available)
        {
          GLuint result = 0u;
          glGetQueryObjectuivEXT(query, GL_QUERY_RESULT, &result);
        }
    If 'available' returns true, that's equivalent to COMPLETION_STATUS_KHR
    returning true. Then LINK_STATUS can be obtained from 'result'.

New Procedures and Functions

    None.

Errors

    None.

New Tokens

    Accepted by the <target> parameter of BeginQueryEXT, EndQueryEXT,
    and GetQueryObjectuivEXT:

        PROGRAM_COMPLETION_QUERY_CHROMIUM                     0x6009

New State

    None.

Revision History

    5/3/2019   Documented the extension