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
0 commit comments