
    3jz                     l   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\R                  " \5      R%                  SS5      r\R                  " \5      R                  SSSS9R                  SS SSS9r\R                  " \5      R                  SSSS9R                  S	S SSS9R%                  SS5      r\R                  " \5      R%                  SS5      r\R                  " \5      R%                  SS5      rg)a
  OpenGL extension ARB.program_interface_query

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

Overview (from the spec)
        
        This extension provides a single unified set of query commands that can be
        used by applications to determine properties of various interfaces and
        resources used by program objects to communicate with application code,
        fixed-function OpenGL pipeline stages, and other programs.  In unextended
        OpenGL 4.2, there is a separate set of query commands for each different
        type of interface or resource used by the program.  These different sets
        of queries are structured nearly identically, but the queries for some
        interfaces have limited capability (e.g., there is no ability to enumerate
        fragment shader outputs).
        
        With the single set of query commands provided by this extension, a
        consistent set of queries is available for all interfaces, and a new
        interface can be added without having to introduce a completely new set of
        query commands.  These queries are intended to provide a superset of the
        capabilities provided by similar queries in OpenGL 4.2, and should allow
        for the deprecation of the existing queries.
        
        This extension defines two terms:  interfaces and active resources.  Each
        interface of a program object provides a way for the program to
        communicate with application code, fixed-function OpenGL pipeline stages,
        and other programs.  Examples of interfaces for a program object include
        inputs (receiving values from vertex attributes or outputs of other
        programs), outputs (sending values to other programs or per-fragment
        operations), uniforms (receiving values from API calls), uniform blocks
        (receiving values from bound buffer objects), subroutines and subroutine
        uniforms (receiving API calls to indicate functions to call during program
        execution), and atomic counter buffers (holding values to be manipulated
        by atomic counter shader functions).  Each interface of a program has a
        set of active resources used by the program.  For example, the resources
        of a program's input interface includes all active input variables used by
        the first stage of the program.  The resources of a program's uniform
        block interface consists of the set of uniform blocks with at least one
        member used by any shader in the program.

The official definition of this extension is available here:
http://www.opengl.org/registry/specs/ARB/program_interface_query.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/program_interface_query.pyglInitProgramInterfaceQueryARBr   5   s    !$$o77    paramspnameT)sizepnameArgorPassInnamelength)   )r   r   c                     U 4$ N xs    r   <lambda>r    D   s    !r   bufSizec                     U 4$ r   r   r   s    r   r    r    J   s    A4r   countprops)__doc__r   r   r   r   r   r   ctypesOpenGL.raw.GLr   r	   )OpenGL.raw.GL.ARB.program_interface_queryr   r   glGetProgramInterfaceiv	setOutput_glget_size_mappingglGetProgramResourceIndexsetInputArraySizeglGetProgramResourceNameglGetProgramResourceivglGetProgramResourceLocation!glGetProgramResourceLocationIndexr   r   r   <module>r2      sW  ,Z . - &  ) 7 E8
  (?@JJ'--w K   "//*CDVV
D  !)ABLL$ M )
y$    '=>HH$ I )-$  T	  %__-IJ\\
D  #*//2S"T"f"f
D# !r   