| | '''OpenGL extension NV.shader_atomic_counters |
| | |
| | This module customises the behaviour of the |
| | OpenGL.raw.GL.NV.shader_atomic_counters to provide a more |
| | Python-friendly API |
| | |
| | Overview (from the spec) |
| | |
| | This extension builds upon the ARB_shader_atomic_counters and |
| | NV_gpu_program5 extensions to provide assembly language support for |
| | incrementing, decrementing, and querying the values of atomic counters |
| | stored in buffer object memory. |
| | |
| | The extension uses the same set of atomic counter buffer binding points as |
| | the ARB_shader_atomic_counters extension; applications using this |
| | extension should use the APIs specified there to bind buffers. |
| | |
| | The official definition of this extension is available here: |
| | http://www.opengl.org/registry/specs/NV/shader_atomic_counters.txt |
| | ''' |
| | from OpenGL import platform, constant, arrays |
| | from OpenGL import extensions, wrapper |
| | import ctypes |
| | from OpenGL.raw.GL import _types, _glgets |
| | from OpenGL.raw.GL.NV.shader_atomic_counters import * |
| | from OpenGL.raw.GL.NV.shader_atomic_counters import _EXTENSION_NAME |
| |
|
| | def glInitShaderAtomicCountersNV(): |
| | '''Return boolean indicating whether this extension is available''' |
| | from OpenGL import extensions |
| | return extensions.hasGLExtension( _EXTENSION_NAME ) |
| |
|
| |
|
| | |