OpenGL.GL.ARB.program_interface_query
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
Functions
glGetProgramResourceiv(
program
,
programInterface
,
index
,
propCount
,
props
,
bufSize
,
length
,
params
)
Constants
GL_ACTIVE_RESOURCES (37621)
GL_ACTIVE_VARIABLES (37637)
GL_ARRAY_SIZE (37627)
GL_ARRAY_STRIDE (37630)
GL_ATOMIC_COUNTER_BUFFER (37568)
GL_ATOMIC_COUNTER_BUFFER_INDEX (37633)
GL_BLOCK_INDEX (37629)
GL_BUFFER_BINDING (37634)
GL_BUFFER_DATA_SIZE (37635)
GL_BUFFER_VARIABLE (37605)
GL_COMPATIBLE_SUBROUTINES (36427)
GL_COMPUTE_SUBROUTINE (37613)
GL_COMPUTE_SUBROUTINE_UNIFORM (37619)
GL_FRAGMENT_SUBROUTINE (37612)
GL_FRAGMENT_SUBROUTINE_UNIFORM (37618)
GL_GEOMETRY_SUBROUTINE (37611)
GL_GEOMETRY_SUBROUTINE_UNIFORM (37617)
GL_IS_PER_PATCH (37607)
GL_IS_ROW_MAJOR (37632)
GL_LOCATION (37646)
GL_LOCATION_INDEX (37647)
GL_MATRIX_STRIDE (37631)
GL_MAX_NAME_LENGTH (37622)
GL_MAX_NUM_ACTIVE_VARIABLES (37623)
GL_MAX_NUM_COMPATIBLE_SUBROUTINES (37624)
GL_NAME_LENGTH (37625)
GL_NUM_ACTIVE_VARIABLES (37636)
GL_NUM_COMPATIBLE_SUBROUTINES (36426)
GL_OFFSET (37628)
GL_PROGRAM_INPUT (37603)
GL_PROGRAM_OUTPUT (37604)
GL_REFERENCED_BY_COMPUTE_SHADER (37643)
GL_REFERENCED_BY_FRAGMENT_SHADER (37642)
GL_REFERENCED_BY_GEOMETRY_SHADER (37641)
GL_REFERENCED_BY_TESS_CONTROL_SHADER (37639)
GL_REFERENCED_BY_TESS_EVALUATION_SHADER (37640)
GL_REFERENCED_BY_VERTEX_SHADER (37638)
GL_SHADER_STORAGE_BLOCK (37606)
GL_TESS_CONTROL_SUBROUTINE (37609)
GL_TESS_CONTROL_SUBROUTINE_UNIFORM (37615)
GL_TESS_EVALUATION_SUBROUTINE (37610)
GL_TESS_EVALUATION_SUBROUTINE_UNIFORM (37616)
GL_TOP_LEVEL_ARRAY_SIZE (37644)
GL_TOP_LEVEL_ARRAY_STRIDE (37645)
GL_TRANSFORM_FEEDBACK_VARYING (37620)
GL_TYPE (37626)
GL_UNIFORM (37601)
GL_UNIFORM_BLOCK (37602)
GL_VERTEX_SUBROUTINE (37608)
GL_VERTEX_SUBROUTINE_UNIFORM (37614)