Skip to content

Commit bca2770

Browse files
committed
MODULES Generation from the upstream registry
1 parent 766b7f5 commit bca2770

File tree

6 files changed

+144
-0
lines changed

6 files changed

+144
-0
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
'''OpenGL extension MESA.texture_const_bandwidth
2+
3+
This module customises the behaviour of the
4+
OpenGL.raw.GL.MESA.texture_const_bandwidth to provide a more
5+
Python-friendly API
6+
7+
Overview (from the spec)
8+
9+
The use of data dependent bandwidth compressed formats (UBWC, AFBC, etc)
10+
can introduce a form of side-channel, in that the bandwidth used for
11+
texture access is dependent on the texture's contents. In some cases
12+
an application may want to disable the use of data dependent formats on
13+
specific textures.
14+
15+
For that purpose, this extension extends EXT_memory_object to introduce
16+
a new <param> CONST_BW_TILING_MESA.
17+
18+
The official definition of this extension is available here:
19+
http://www.opengl.org/registry/specs/MESA/texture_const_bandwidth.txt
20+
'''
21+
from OpenGL import platform, constant, arrays
22+
from OpenGL import extensions, wrapper
23+
import ctypes
24+
from OpenGL.raw.GL import _types, _glgets
25+
from OpenGL.raw.GL.MESA.texture_const_bandwidth import *
26+
from OpenGL.raw.GL.MESA.texture_const_bandwidth import _EXTENSION_NAME
27+
28+
def glInitTextureConstBandwidthMESA():
29+
'''Return boolean indicating whether this extension is available'''
30+
from OpenGL import extensions
31+
return extensions.hasGLExtension( _EXTENSION_NAME )
32+
33+
34+
### END AUTOGENERATED SECTION
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
'''OpenGL extension MESA.texture_const_bandwidth
2+
3+
This module customises the behaviour of the
4+
OpenGL.raw.GLES2.MESA.texture_const_bandwidth to provide a more
5+
Python-friendly API
6+
7+
Overview (from the spec)
8+
9+
The use of data dependent bandwidth compressed formats (UBWC, AFBC, etc)
10+
can introduce a form of side-channel, in that the bandwidth used for
11+
texture access is dependent on the texture's contents. In some cases
12+
an application may want to disable the use of data dependent formats on
13+
specific textures.
14+
15+
For that purpose, this extension extends EXT_memory_object to introduce
16+
a new <param> CONST_BW_TILING_MESA.
17+
18+
The official definition of this extension is available here:
19+
http://www.opengl.org/registry/specs/MESA/texture_const_bandwidth.txt
20+
'''
21+
from OpenGL import platform, constant, arrays
22+
from OpenGL import extensions, wrapper
23+
import ctypes
24+
from OpenGL.raw.GLES2 import _types, _glgets
25+
from OpenGL.raw.GLES2.MESA.texture_const_bandwidth import *
26+
from OpenGL.raw.GLES2.MESA.texture_const_bandwidth import _EXTENSION_NAME
27+
28+
def glInitTextureConstBandwidthMESA():
29+
'''Return boolean indicating whether this extension is available'''
30+
from OpenGL import extensions
31+
return extensions.hasGLExtension( _EXTENSION_NAME )
32+
33+
34+
### END AUTOGENERATED SECTION

OpenGL/GLES2/NV/texture_barrier.py

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
'''OpenGL extension NV.texture_barrier
2+
3+
This module customises the behaviour of the
4+
OpenGL.raw.GLES2.NV.texture_barrier to provide a more
5+
Python-friendly API
6+
7+
Overview (from the spec)
8+
9+
This extension relaxes the restrictions on rendering to a currently
10+
bound texture and provides a mechanism to avoid read-after-write
11+
hazards.
12+
13+
The official definition of this extension is available here:
14+
http://www.opengl.org/registry/specs/NV/texture_barrier.txt
15+
'''
16+
from OpenGL import platform, constant, arrays
17+
from OpenGL import extensions, wrapper
18+
import ctypes
19+
from OpenGL.raw.GLES2 import _types, _glgets
20+
from OpenGL.raw.GLES2.NV.texture_barrier import *
21+
from OpenGL.raw.GLES2.NV.texture_barrier import _EXTENSION_NAME
22+
23+
def glInitTextureBarrierNV():
24+
'''Return boolean indicating whether this extension is available'''
25+
from OpenGL import extensions
26+
return extensions.hasGLExtension( _EXTENSION_NAME )
27+
28+
29+
### END AUTOGENERATED SECTION
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
'''Autogenerated by xml_generate script, do not edit!'''
2+
from OpenGL import platform as _p, arrays
3+
# Code generation uses this
4+
from OpenGL.raw.GL import _types as _cs
5+
# End users want this...
6+
from OpenGL.raw.GL._types import *
7+
from OpenGL.raw.GL import _errors
8+
from OpenGL.constant import Constant as _C
9+
10+
import ctypes
11+
_EXTENSION_NAME = 'GL_MESA_texture_const_bandwidth'
12+
def _f( function ):
13+
return _p.createFunction( function,_p.PLATFORM.GL,'GL_MESA_texture_const_bandwidth',error_checker=_errors._error_checker)
14+
GL_CONST_BW_TILING_MESA=_C('GL_CONST_BW_TILING_MESA',0x8BBE)
15+
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
'''Autogenerated by xml_generate script, do not edit!'''
2+
from OpenGL import platform as _p, arrays
3+
# Code generation uses this
4+
from OpenGL.raw.GLES2 import _types as _cs
5+
# End users want this...
6+
from OpenGL.raw.GLES2._types import *
7+
from OpenGL.raw.GLES2 import _errors
8+
from OpenGL.constant import Constant as _C
9+
10+
import ctypes
11+
_EXTENSION_NAME = 'GLES2_MESA_texture_const_bandwidth'
12+
def _f( function ):
13+
return _p.createFunction( function,_p.PLATFORM.GLES2,'GLES2_MESA_texture_const_bandwidth',error_checker=_errors._error_checker)
14+
GL_CONST_BW_TILING_MESA=_C('GL_CONST_BW_TILING_MESA',0x8BBE)
15+
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
'''Autogenerated by xml_generate script, do not edit!'''
2+
from OpenGL import platform as _p, arrays
3+
# Code generation uses this
4+
from OpenGL.raw.GLES2 import _types as _cs
5+
# End users want this...
6+
from OpenGL.raw.GLES2._types import *
7+
from OpenGL.raw.GLES2 import _errors
8+
from OpenGL.constant import Constant as _C
9+
10+
import ctypes
11+
_EXTENSION_NAME = 'GLES2_NV_texture_barrier'
12+
def _f( function ):
13+
return _p.createFunction( function,_p.PLATFORM.GLES2,'GLES2_NV_texture_barrier',error_checker=_errors._error_checker)
14+
15+
@_f
16+
@_p.types(None,)
17+
def glTextureBarrierNV():pass

0 commit comments

Comments
 (0)