
    3j	                         S r SSKJrJrJr  SSKJrJr  SSKrSSKJ	r	J
r
  SSK7  SSKJr  S r\R                  " \5      R                  S	\
R                   S
SS9rg)a=  OpenGL extension ARB.shader_atomic_counters

This module customises the behaviour of the 
OpenGL.raw.GL.ARB.shader_atomic_counters to provide a more 
Python-friendly API

Overview (from the spec)
        
        This extension provides a set of atomic counters.
        
        This extension provides GLSL built-in functions to
        query and increment/decrement these atomic counters.
        
        This enables a shader to write to unique offsets
        (append to a buffer object) or read from unique offsets
        (consume from a buffer object).
        
        Opaque handles to atomic counters are declared
        at global scope and are qualified with the uniform qualifier.
        
        Unlike other user-defined uniforms declared at global scope,
        they take NO storage from the default partition, they have
        NO location, and they may NOT be set with the Uniform* commands.
        Atomic counters may also NOT be grouped into uniform blocks.
        
        Active atomic counters can be discovered by the commands
        GetUniformIndices, GetActiveUniformName, GetActiveUniform
        and GetActiveUniformsiv.
        
        Like samplers, the opaque handles of the atomic counters
        and are ONLY used in some GLSL built-in functions.
        
        The atomic counters pointed to by the opaque handles
        are bound to buffer binding points and buffer offsets
        through the layout qualifiers in the shading language,
        or they are implicitly assigned by the compiler.
        
        Through the OpenGL API, buffer objects may be
        bound to these binding points with BindBufferBase
        or BindBufferRange.
        
        The contents of the atomic counters are stored
        in the buffer objects.  The contents of atomic
        counters may be set and queried with buffer object
        manipulation functions (e.g. BufferData,
        BufferSubData, MapBuffer or MapBufferRange).
        

The official definition of this extension is available here:
http://www.opengl.org/registry/specs/ARB/shader_atomic_counters.txt
    )platformconstantarrays)
extensionswrapperN)_types_glgets)*)_EXTENSION_NAMEc                  :    SSK Jn   U R                  " [        5      $ )z=Return boolean indicating whether this extension is availabler   r   )OpenGLr   hasGLExtensionr   r   s    ^/home/wildlama/miniconda3/lib/python3.13/site-packages/OpenGL/GL/ARB/shader_atomic_counters.pyglInitShaderAtomicCountersARBr   ;   s    !$$o77    paramspnameT)sizepnameArgorPassIn)__doc__r   r   r   r   r   r   ctypesOpenGL.raw.GLr   r	   (OpenGL.raw.GL.ARB.shader_atomic_countersr   r    glGetActiveAtomicCounterBufferiv	setOutput_glget_size_mapping r   r   <module>r       sY   2f . - &  ) 6 D8
 ")1Q!R!\!\'--w "] "  r   