File: shader_atomic_counters.py

package info (click to toggle)
pyopengl 3.0.2-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 6,936 kB
  • ctags: 9,720
  • sloc: python: 49,408; makefile: 3
file content (45 lines) | stat: -rw-r--r-- 2,068 bytes parent folder | download
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
'''Autogenerated by get_gl_extensions script, do not edit!'''
from OpenGL import platform as _p, constants as _cs, arrays
from OpenGL.GL import glget
import ctypes
EXTENSION_NAME = 'GL_ARB_shader_atomic_counters'
def _f( function ):
    return _p.createFunction( function,_p.GL,'GL_ARB_shader_atomic_counters',False)
_p.unpack_constants( """GL_ATOMIC_COUNTER_BUFFER 0x92C0
GL_ATOMIC_COUNTER_BUFFER_BINDING 0x92C1
GL_ATOMIC_COUNTER_BUFFER_START 0x92C2
GL_ATOMIC_COUNTER_BUFFER_SIZE 0x92C3
GL_ATOMIC_COUNTER_BUFFER_DATA_SIZE 0x92C4
GL_ATOMIC_COUNTER_BUFFER_ACTIVE_ATOMIC_COUNTERS 0x92C5
GL_ATOMIC_COUNTER_BUFFER_ACTIVE_ATOMIC_COUNTER_INDICES 0x92C6
GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_VERTEX_SHADER 0x92C7
GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_TESS_CONTROL_SHADER 0x92C8
GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_TESS_EVALUATION_SHADER 0x92C9
GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_GEOMETRY_SHADER 0x92CA
GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_FRAGMENT_SHADER 0x92CB
GL_MAX_VERTEX_ATOMIC_COUNTER_BUFFERS 0x92CC
GL_MAX_TESS_CONTROL_ATOMIC_COUNTER_BUFFERS 0x92CD
GL_MAX_TESS_EVALUATION_ATOMIC_COUNTER_BUFFERS 0x92CE
GL_MAX_GEOMETRY_ATOMIC_COUNTER_BUFFERS 0x92CF
GL_MAX_FRAGMENT_ATOMIC_COUNTER_BUFFERS 0x92D0
GL_MAX_COMBINED_ATOMIC_COUNTER_BUFFERS 0x92D1
GL_MAX_VERTEX_ATOMIC_COUNTERS 0x92D2
GL_MAX_TESS_CONTROL_ATOMIC_COUNTERS 0x92D3
GL_MAX_TESS_EVALUATION_ATOMIC_COUNTERS 0x92D4
GL_MAX_GEOMETRY_ATOMIC_COUNTERS 0x92D5
GL_MAX_FRAGMENT_ATOMIC_COUNTERS 0x92D6
GL_MAX_COMBINED_ATOMIC_COUNTERS 0x92D7
GL_MAX_ATOMIC_COUNTER_BUFFER_SIZE 0x92D8
GL_MAX_ATOMIC_COUNTER_BUFFER_BINDINGS 0x92DC
GL_ACTIVE_ATOMIC_COUNTER_BUFFERS 0x92D9
GL_UNIFORM_ATOMIC_COUNTER_BUFFER_INDEX 0x92DA
GL_UNSIGNED_INT_ATOMIC_COUNTER 0x92DB""", globals())
@_f
@_p.types(None,_cs.GLuint,_cs.GLuint,_cs.GLenum,arrays.GLintArray)
def glGetActiveAtomicCounterBufferiv( program,bufferIndex,pname,params ):pass


def glInitShaderAtomicCountersARB():
    '''Return boolean indicating whether this extension is available'''
    from OpenGL import extensions
    return extensions.hasGLExtension( EXTENSION_NAME )