Class ARBProgramInterfaceQuery
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.
Requires OpenGL 2.0. Promoted to core in OpenGL 4.3.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intAccepted by thepnameparameter of GetProgramInterfaceiv.static final intAccepted in thepropsarray of GetProgramResourceiv.static final intAccepted in thepropsarray of GetProgramResourceiv.static final intAccepted in thepropsarray of GetProgramResourceiv.static final intAccepted in thepropsarray of GetProgramResourceiv.static final intAccepted in thepropsarray of GetProgramResourceiv.static final intAccepted in thepropsarray of GetProgramResourceiv.static final intAccepted in thepropsarray of GetProgramResourceiv.static final intAccepted by theprogramInterfaceparameter of GetProgramInterfaceiv, GetProgramResourceIndex, GetProgramResourceName, GetProgramResourceiv, GetProgramResourceLocation, and GetProgramResourceLocationIndex.static final intAccepted by theprogramInterfaceparameter of GetProgramInterfaceiv, GetProgramResourceIndex, GetProgramResourceName, GetProgramResourceiv, GetProgramResourceLocation, and GetProgramResourceLocationIndex.static final intAccepted by theprogramInterfaceparameter of GetProgramInterfaceiv, GetProgramResourceIndex, GetProgramResourceName, GetProgramResourceiv, GetProgramResourceLocation, and GetProgramResourceLocationIndex.static final intAccepted by theprogramInterfaceparameter of GetProgramInterfaceiv, GetProgramResourceIndex, GetProgramResourceName, GetProgramResourceiv, GetProgramResourceLocation, and GetProgramResourceLocationIndex.static final intAccepted by theprogramInterfaceparameter of GetProgramInterfaceiv, GetProgramResourceIndex, GetProgramResourceName, GetProgramResourceiv, GetProgramResourceLocation, and GetProgramResourceLocationIndex.static final intAccepted by theprogramInterfaceparameter of GetProgramInterfaceiv, GetProgramResourceIndex, GetProgramResourceName, GetProgramResourceiv, GetProgramResourceLocation, and GetProgramResourceLocationIndex.static final intAccepted by theprogramInterfaceparameter of GetProgramInterfaceiv, GetProgramResourceIndex, GetProgramResourceName, GetProgramResourceiv, GetProgramResourceLocation, and GetProgramResourceLocationIndex.static final intAccepted in thepropsarray of GetProgramResourceiv.static final intAccepted in thepropsarray of GetProgramResourceiv.static final intAccepted in thepropsarray of GetProgramResourceiv.static final intAccepted in thepropsarray of GetProgramResourceiv.static final intAccepted in thepropsarray of GetProgramResourceiv.static final intAccepted by thepnameparameter of GetProgramInterfaceiv.static final intAccepted by thepnameparameter of GetProgramInterfaceiv.static final intAccepted by thepnameparameter of GetProgramInterfaceiv.static final intAccepted in thepropsarray of GetProgramResourceiv.static final intAccepted in thepropsarray of GetProgramResourceiv.static final intAccepted in thepropsarray of GetProgramResourceiv.static final intAccepted by theprogramInterfaceparameter of GetProgramInterfaceiv, GetProgramResourceIndex, GetProgramResourceName, GetProgramResourceiv, GetProgramResourceLocation, and GetProgramResourceLocationIndex.static final intAccepted by theprogramInterfaceparameter of GetProgramInterfaceiv, GetProgramResourceIndex, GetProgramResourceName, GetProgramResourceiv, GetProgramResourceLocation, and GetProgramResourceLocationIndex.static final intAccepted in thepropsarray of GetProgramResourceiv.static final intAccepted in thepropsarray of GetProgramResourceiv.static final intAccepted in thepropsarray of GetProgramResourceiv.static final intAccepted in thepropsarray of GetProgramResourceiv.static final intAccepted in thepropsarray of GetProgramResourceiv.static final intAccepted in thepropsarray of GetProgramResourceiv.static final intAccepted by theprogramInterfaceparameter of GetProgramInterfaceiv, GetProgramResourceIndex, GetProgramResourceName, GetProgramResourceiv, GetProgramResourceLocation, and GetProgramResourceLocationIndex.static final intAccepted by theprogramInterfaceparameter of GetProgramInterfaceiv, GetProgramResourceIndex, GetProgramResourceName, GetProgramResourceiv, GetProgramResourceLocation, and GetProgramResourceLocationIndex.static final intAccepted by theprogramInterfaceparameter of GetProgramInterfaceiv, GetProgramResourceIndex, GetProgramResourceName, GetProgramResourceiv, GetProgramResourceLocation, and GetProgramResourceLocationIndex.static final intAccepted by theprogramInterfaceparameter of GetProgramInterfaceiv, GetProgramResourceIndex, GetProgramResourceName, GetProgramResourceiv, GetProgramResourceLocation, and GetProgramResourceLocationIndex.static final intAccepted by theprogramInterfaceparameter of GetProgramInterfaceiv, GetProgramResourceIndex, GetProgramResourceName, GetProgramResourceiv, GetProgramResourceLocation, and GetProgramResourceLocationIndex.static final intAccepted in thepropsarray of GetProgramResourceiv.static final intAccepted in thepropsarray of GetProgramResourceiv.static final intAccepted by theprogramInterfaceparameter of GetProgramInterfaceiv, GetProgramResourceIndex, GetProgramResourceName, GetProgramResourceiv, GetProgramResourceLocation, and GetProgramResourceLocationIndex.static final intAccepted in thepropsarray of GetProgramResourceiv.static final intAccepted by theprogramInterfaceparameter of GetProgramInterfaceiv, GetProgramResourceIndex, GetProgramResourceName, GetProgramResourceiv, GetProgramResourceLocation, and GetProgramResourceLocationIndex.static final intAccepted by theprogramInterfaceparameter of GetProgramInterfaceiv, GetProgramResourceIndex, GetProgramResourceName, GetProgramResourceiv, GetProgramResourceLocation, and GetProgramResourceLocationIndex.static final intAccepted by theprogramInterfaceparameter of GetProgramInterfaceiv, GetProgramResourceIndex, GetProgramResourceName, GetProgramResourceiv, GetProgramResourceLocation, and GetProgramResourceLocationIndex.static final intAccepted by theprogramInterfaceparameter of GetProgramInterfaceiv, GetProgramResourceIndex, GetProgramResourceName, GetProgramResourceiv, GetProgramResourceLocation, and GetProgramResourceLocationIndex. -
Method Summary
Modifier and TypeMethodDescriptionstatic intglGetProgramInterfacei(int program, int programInterface, int pname) Queries a property of an interface in a program.static voidglGetProgramInterfaceiv(int program, int programInterface, int pname, int[] params) Array version of:GetProgramInterfaceivstatic voidglGetProgramInterfaceiv(int program, int programInterface, int pname, IntBuffer params) Queries a property of an interface in a program.static intglGetProgramResourceIndex(int program, int programInterface, CharSequence name) Queries the index of a named resource within a program.static intglGetProgramResourceIndex(int program, int programInterface, ByteBuffer name) Queries the index of a named resource within a program.static voidglGetProgramResourceiv(int program, int programInterface, int index, int[] props, int[] length, int[] params) Array version of:GetProgramResourceivstatic voidglGetProgramResourceiv(int program, int programInterface, int index, IntBuffer props, IntBuffer length, IntBuffer params) Retrieves values for multiple properties of a single active resource within a program object.static intglGetProgramResourceLocation(int program, int programInterface, CharSequence name) Queries the location of a named resource within a program.static intglGetProgramResourceLocation(int program, int programInterface, ByteBuffer name) Queries the location of a named resource within a program.static intglGetProgramResourceLocationIndex(int program, int programInterface, CharSequence name) Queries the fragment color index of a named variable within a program.static intglGetProgramResourceLocationIndex(int program, int programInterface, ByteBuffer name) Queries the fragment color index of a named variable within a program.static StringglGetProgramResourceName(int program, int programInterface, int index) Queries the name of an indexed resource within a program.static StringglGetProgramResourceName(int program, int programInterface, int index, int bufSize) Queries the name of an indexed resource within a program.static voidglGetProgramResourceName(int program, int programInterface, int index, int[] length, ByteBuffer name) Array version of:GetProgramResourceNamestatic voidglGetProgramResourceName(int program, int programInterface, int index, IntBuffer length, ByteBuffer name) Queries the name of an indexed resource within a program.static voidnglGetProgramInterfaceiv(int program, int programInterface, int pname, long params) Unsafe version of:GetProgramInterfaceivstatic intnglGetProgramResourceIndex(int program, int programInterface, long name) Unsafe version of:GetProgramResourceIndexstatic voidnglGetProgramResourceiv(int program, int programInterface, int index, int propCount, long props, int bufSize, long length, long params) Unsafe version of:GetProgramResourceivstatic intnglGetProgramResourceLocation(int program, int programInterface, long name) Unsafe version of:GetProgramResourceLocationstatic intnglGetProgramResourceLocationIndex(int program, int programInterface, long name) Unsafe version of:GetProgramResourceLocationIndexstatic voidnglGetProgramResourceName(int program, int programInterface, int index, int bufSize, long length, long name) Unsafe version of:GetProgramResourceName
-
Field Details
-
GL_UNIFORM
public static final int GL_UNIFORMAccepted by theprogramInterfaceparameter of GetProgramInterfaceiv, GetProgramResourceIndex, GetProgramResourceName, GetProgramResourceiv, GetProgramResourceLocation, and GetProgramResourceLocationIndex.- See Also:
-
GL_UNIFORM_BLOCK
public static final int GL_UNIFORM_BLOCKAccepted by theprogramInterfaceparameter of GetProgramInterfaceiv, GetProgramResourceIndex, GetProgramResourceName, GetProgramResourceiv, GetProgramResourceLocation, and GetProgramResourceLocationIndex.- See Also:
-
GL_PROGRAM_INPUT
public static final int GL_PROGRAM_INPUTAccepted by theprogramInterfaceparameter of GetProgramInterfaceiv, GetProgramResourceIndex, GetProgramResourceName, GetProgramResourceiv, GetProgramResourceLocation, and GetProgramResourceLocationIndex.- See Also:
-
GL_PROGRAM_OUTPUT
public static final int GL_PROGRAM_OUTPUTAccepted by theprogramInterfaceparameter of GetProgramInterfaceiv, GetProgramResourceIndex, GetProgramResourceName, GetProgramResourceiv, GetProgramResourceLocation, and GetProgramResourceLocationIndex.- See Also:
-
GL_BUFFER_VARIABLE
public static final int GL_BUFFER_VARIABLEAccepted by theprogramInterfaceparameter of GetProgramInterfaceiv, GetProgramResourceIndex, GetProgramResourceName, GetProgramResourceiv, GetProgramResourceLocation, and GetProgramResourceLocationIndex.- See Also:
-
GL_SHADER_STORAGE_BLOCK
public static final int GL_SHADER_STORAGE_BLOCKAccepted by theprogramInterfaceparameter of GetProgramInterfaceiv, GetProgramResourceIndex, GetProgramResourceName, GetProgramResourceiv, GetProgramResourceLocation, and GetProgramResourceLocationIndex.- See Also:
-
GL_VERTEX_SUBROUTINE
public static final int GL_VERTEX_SUBROUTINEAccepted by theprogramInterfaceparameter of GetProgramInterfaceiv, GetProgramResourceIndex, GetProgramResourceName, GetProgramResourceiv, GetProgramResourceLocation, and GetProgramResourceLocationIndex.- See Also:
-
GL_TESS_CONTROL_SUBROUTINE
public static final int GL_TESS_CONTROL_SUBROUTINEAccepted by theprogramInterfaceparameter of GetProgramInterfaceiv, GetProgramResourceIndex, GetProgramResourceName, GetProgramResourceiv, GetProgramResourceLocation, and GetProgramResourceLocationIndex.- See Also:
-
GL_TESS_EVALUATION_SUBROUTINE
public static final int GL_TESS_EVALUATION_SUBROUTINEAccepted by theprogramInterfaceparameter of GetProgramInterfaceiv, GetProgramResourceIndex, GetProgramResourceName, GetProgramResourceiv, GetProgramResourceLocation, and GetProgramResourceLocationIndex.- See Also:
-
GL_GEOMETRY_SUBROUTINE
public static final int GL_GEOMETRY_SUBROUTINEAccepted by theprogramInterfaceparameter of GetProgramInterfaceiv, GetProgramResourceIndex, GetProgramResourceName, GetProgramResourceiv, GetProgramResourceLocation, and GetProgramResourceLocationIndex.- See Also:
-
GL_FRAGMENT_SUBROUTINE
public static final int GL_FRAGMENT_SUBROUTINEAccepted by theprogramInterfaceparameter of GetProgramInterfaceiv, GetProgramResourceIndex, GetProgramResourceName, GetProgramResourceiv, GetProgramResourceLocation, and GetProgramResourceLocationIndex.- See Also:
-
GL_COMPUTE_SUBROUTINE
public static final int GL_COMPUTE_SUBROUTINEAccepted by theprogramInterfaceparameter of GetProgramInterfaceiv, GetProgramResourceIndex, GetProgramResourceName, GetProgramResourceiv, GetProgramResourceLocation, and GetProgramResourceLocationIndex.- See Also:
-
GL_VERTEX_SUBROUTINE_UNIFORM
public static final int GL_VERTEX_SUBROUTINE_UNIFORMAccepted by theprogramInterfaceparameter of GetProgramInterfaceiv, GetProgramResourceIndex, GetProgramResourceName, GetProgramResourceiv, GetProgramResourceLocation, and GetProgramResourceLocationIndex.- See Also:
-
GL_TESS_CONTROL_SUBROUTINE_UNIFORM
public static final int GL_TESS_CONTROL_SUBROUTINE_UNIFORMAccepted by theprogramInterfaceparameter of GetProgramInterfaceiv, GetProgramResourceIndex, GetProgramResourceName, GetProgramResourceiv, GetProgramResourceLocation, and GetProgramResourceLocationIndex.- See Also:
-
GL_TESS_EVALUATION_SUBROUTINE_UNIFORM
public static final int GL_TESS_EVALUATION_SUBROUTINE_UNIFORMAccepted by theprogramInterfaceparameter of GetProgramInterfaceiv, GetProgramResourceIndex, GetProgramResourceName, GetProgramResourceiv, GetProgramResourceLocation, and GetProgramResourceLocationIndex.- See Also:
-
GL_GEOMETRY_SUBROUTINE_UNIFORM
public static final int GL_GEOMETRY_SUBROUTINE_UNIFORMAccepted by theprogramInterfaceparameter of GetProgramInterfaceiv, GetProgramResourceIndex, GetProgramResourceName, GetProgramResourceiv, GetProgramResourceLocation, and GetProgramResourceLocationIndex.- See Also:
-
GL_FRAGMENT_SUBROUTINE_UNIFORM
public static final int GL_FRAGMENT_SUBROUTINE_UNIFORMAccepted by theprogramInterfaceparameter of GetProgramInterfaceiv, GetProgramResourceIndex, GetProgramResourceName, GetProgramResourceiv, GetProgramResourceLocation, and GetProgramResourceLocationIndex.- See Also:
-
GL_COMPUTE_SUBROUTINE_UNIFORM
public static final int GL_COMPUTE_SUBROUTINE_UNIFORMAccepted by theprogramInterfaceparameter of GetProgramInterfaceiv, GetProgramResourceIndex, GetProgramResourceName, GetProgramResourceiv, GetProgramResourceLocation, and GetProgramResourceLocationIndex.- See Also:
-
GL_TRANSFORM_FEEDBACK_VARYING
public static final int GL_TRANSFORM_FEEDBACK_VARYINGAccepted by theprogramInterfaceparameter of GetProgramInterfaceiv, GetProgramResourceIndex, GetProgramResourceName, GetProgramResourceiv, GetProgramResourceLocation, and GetProgramResourceLocationIndex.- See Also:
-
GL_ACTIVE_RESOURCES
public static final int GL_ACTIVE_RESOURCESAccepted by thepnameparameter of GetProgramInterfaceiv.- See Also:
-
GL_MAX_NAME_LENGTH
public static final int GL_MAX_NAME_LENGTHAccepted by thepnameparameter of GetProgramInterfaceiv.- See Also:
-
GL_MAX_NUM_ACTIVE_VARIABLES
public static final int GL_MAX_NUM_ACTIVE_VARIABLESAccepted by thepnameparameter of GetProgramInterfaceiv.- See Also:
-
GL_MAX_NUM_COMPATIBLE_SUBROUTINES
public static final int GL_MAX_NUM_COMPATIBLE_SUBROUTINESAccepted by thepnameparameter of GetProgramInterfaceiv.- See Also:
-
GL_NAME_LENGTH
public static final int GL_NAME_LENGTHAccepted in thepropsarray of GetProgramResourceiv.- See Also:
-
GL_TYPE
public static final int GL_TYPEAccepted in thepropsarray of GetProgramResourceiv.- See Also:
-
GL_ARRAY_SIZE
public static final int GL_ARRAY_SIZEAccepted in thepropsarray of GetProgramResourceiv.- See Also:
-
GL_OFFSET
public static final int GL_OFFSETAccepted in thepropsarray of GetProgramResourceiv.- See Also:
-
GL_BLOCK_INDEX
public static final int GL_BLOCK_INDEXAccepted in thepropsarray of GetProgramResourceiv.- See Also:
-
GL_ARRAY_STRIDE
public static final int GL_ARRAY_STRIDEAccepted in thepropsarray of GetProgramResourceiv.- See Also:
-
GL_MATRIX_STRIDE
public static final int GL_MATRIX_STRIDEAccepted in thepropsarray of GetProgramResourceiv.- See Also:
-
GL_IS_ROW_MAJOR
public static final int GL_IS_ROW_MAJORAccepted in thepropsarray of GetProgramResourceiv.- See Also:
-
GL_ATOMIC_COUNTER_BUFFER_INDEX
public static final int GL_ATOMIC_COUNTER_BUFFER_INDEXAccepted in thepropsarray of GetProgramResourceiv.- See Also:
-
GL_BUFFER_BINDING
public static final int GL_BUFFER_BINDINGAccepted in thepropsarray of GetProgramResourceiv.- See Also:
-
GL_BUFFER_DATA_SIZE
public static final int GL_BUFFER_DATA_SIZEAccepted in thepropsarray of GetProgramResourceiv.- See Also:
-
GL_NUM_ACTIVE_VARIABLES
public static final int GL_NUM_ACTIVE_VARIABLESAccepted in thepropsarray of GetProgramResourceiv.- See Also:
-
GL_ACTIVE_VARIABLES
public static final int GL_ACTIVE_VARIABLESAccepted in thepropsarray of GetProgramResourceiv.- See Also:
-
GL_REFERENCED_BY_VERTEX_SHADER
public static final int GL_REFERENCED_BY_VERTEX_SHADERAccepted in thepropsarray of GetProgramResourceiv.- See Also:
-
GL_REFERENCED_BY_TESS_CONTROL_SHADER
public static final int GL_REFERENCED_BY_TESS_CONTROL_SHADERAccepted in thepropsarray of GetProgramResourceiv.- See Also:
-
GL_REFERENCED_BY_TESS_EVALUATION_SHADER
public static final int GL_REFERENCED_BY_TESS_EVALUATION_SHADERAccepted in thepropsarray of GetProgramResourceiv.- See Also:
-
GL_REFERENCED_BY_GEOMETRY_SHADER
public static final int GL_REFERENCED_BY_GEOMETRY_SHADERAccepted in thepropsarray of GetProgramResourceiv.- See Also:
-
GL_REFERENCED_BY_FRAGMENT_SHADER
public static final int GL_REFERENCED_BY_FRAGMENT_SHADERAccepted in thepropsarray of GetProgramResourceiv.- See Also:
-
GL_REFERENCED_BY_COMPUTE_SHADER
public static final int GL_REFERENCED_BY_COMPUTE_SHADERAccepted in thepropsarray of GetProgramResourceiv.- See Also:
-
GL_TOP_LEVEL_ARRAY_SIZE
public static final int GL_TOP_LEVEL_ARRAY_SIZEAccepted in thepropsarray of GetProgramResourceiv.- See Also:
-
GL_TOP_LEVEL_ARRAY_STRIDE
public static final int GL_TOP_LEVEL_ARRAY_STRIDEAccepted in thepropsarray of GetProgramResourceiv.- See Also:
-
GL_LOCATION
public static final int GL_LOCATIONAccepted in thepropsarray of GetProgramResourceiv.- See Also:
-
GL_LOCATION_INDEX
public static final int GL_LOCATION_INDEXAccepted in thepropsarray of GetProgramResourceiv.- See Also:
-
GL_IS_PER_PATCH
public static final int GL_IS_PER_PATCHAccepted in thepropsarray of GetProgramResourceiv.- See Also:
-
-
Method Details
-
nglGetProgramInterfaceiv
public static void nglGetProgramInterfaceiv(int program, int programInterface, int pname, long params) Unsafe version of:GetProgramInterfaceiv -
glGetProgramInterfaceiv
public static void glGetProgramInterfaceiv(int program, int programInterface, int pname, IntBuffer params) Queries a property of an interface in a program.- Parameters:
program- the name of a program object whose interface to queryprogramInterface- a token identifying the interface withinprogramto query. One of:pname- the name of the parameter withinprogramInterfaceto query. One of:ACTIVE_RESOURCESMAX_NAME_LENGTHMAX_NUM_ACTIVE_VARIABLESMAX_NUM_COMPATIBLE_SUBROUTINESparams- a variable to retrieve the value ofpnamefor the program interface
-
glGetProgramInterfacei
public static int glGetProgramInterfacei(int program, int programInterface, int pname) Queries a property of an interface in a program.- Parameters:
program- the name of a program object whose interface to queryprogramInterface- a token identifying the interface withinprogramto query. One of:pname- the name of the parameter withinprogramInterfaceto query. One of:ACTIVE_RESOURCESMAX_NAME_LENGTHMAX_NUM_ACTIVE_VARIABLESMAX_NUM_COMPATIBLE_SUBROUTINES
-
nglGetProgramResourceIndex
public static int nglGetProgramResourceIndex(int program, int programInterface, long name) Unsafe version of:GetProgramResourceIndex -
glGetProgramResourceIndex
Queries the index of a named resource within a program.- Parameters:
program- the name of a program object whose resources to queryprogramInterface- a token identifying the interface withinprogramcontaining the resource named {Wcode name}. One of:name- the name of the resource to query the index of
-
glGetProgramResourceIndex
Queries the index of a named resource within a program.- Parameters:
program- the name of a program object whose resources to queryprogramInterface- a token identifying the interface withinprogramcontaining the resource named {Wcode name}. One of:name- the name of the resource to query the index of
-
nglGetProgramResourceName
public static void nglGetProgramResourceName(int program, int programInterface, int index, int bufSize, long length, long name) Unsafe version of:GetProgramResourceName- Parameters:
bufSize- the size of the character array whose address is given byname
-
glGetProgramResourceName
public static void glGetProgramResourceName(int program, int programInterface, int index, @Nullable IntBuffer length, ByteBuffer name) Queries the name of an indexed resource within a program.- Parameters:
program- the name of a program object whose resources to queryprogramInterface- a token identifying the interface withinprogramcontaining the indexed resource. One of:index- the index of the resource withinprogramInterfaceofprogramlength- a variable which will receive the length of the resource namename- a character array into which will be written the name of the resource
-
glGetProgramResourceName
public static String glGetProgramResourceName(int program, int programInterface, int index, int bufSize) Queries the name of an indexed resource within a program.- Parameters:
program- the name of a program object whose resources to queryprogramInterface- a token identifying the interface withinprogramcontaining the indexed resource. One of:index- the index of the resource withinprogramInterfaceofprogrambufSize- the size of the character array whose address is given byname
-
glGetProgramResourceName
Queries the name of an indexed resource within a program.- Parameters:
program- the name of a program object whose resources to queryprogramInterface- a token identifying the interface withinprogramcontaining the indexed resource. One of:index- the index of the resource withinprogramInterfaceofprogram
-
nglGetProgramResourceiv
public static void nglGetProgramResourceiv(int program, int programInterface, int index, int propCount, long props, int bufSize, long length, long params) Unsafe version of:GetProgramResourceiv- Parameters:
propCount- the number of properties inpropsbufSize- the size of the integer array whose address is given byparams
-
glGetProgramResourceiv
public static void glGetProgramResourceiv(int program, int programInterface, int index, IntBuffer props, @Nullable IntBuffer length, IntBuffer params) Retrieves values for multiple properties of a single active resource within a program object.- Parameters:
program- the name of a program object whose resources to queryprogramInterface- a token identifying the interface withinprogramcontaining the resource namedname. One of:index- the active resource indexprops- an array that will receive the active resource propertieslength- a variable which will receive the number of values returnedparams- an array that will receive the property values
-
nglGetProgramResourceLocation
public static int nglGetProgramResourceLocation(int program, int programInterface, long name) Unsafe version of:GetProgramResourceLocation -
glGetProgramResourceLocation
Queries the location of a named resource within a program.- Parameters:
program- the name of a program object whose resources to queryprogramInterface- a token identifying the interface withinprogramcontaining the resource namednamename- the name of the resource to query the location of
-
glGetProgramResourceLocation
public static int glGetProgramResourceLocation(int program, int programInterface, CharSequence name) Queries the location of a named resource within a program.- Parameters:
program- the name of a program object whose resources to queryprogramInterface- a token identifying the interface withinprogramcontaining the resource namednamename- the name of the resource to query the location of
-
nglGetProgramResourceLocationIndex
public static int nglGetProgramResourceLocationIndex(int program, int programInterface, long name) Unsafe version of:GetProgramResourceLocationIndex -
glGetProgramResourceLocationIndex
public static int glGetProgramResourceLocationIndex(int program, int programInterface, ByteBuffer name) Queries the fragment color index of a named variable within a program.- Parameters:
program- the name of a program object whose resources to queryprogramInterface- a token identifying the interface withinprogramcontaining the resource namedname. Must be:PROGRAM_OUTPUTname- the name of the resource to query the location of
-
glGetProgramResourceLocationIndex
public static int glGetProgramResourceLocationIndex(int program, int programInterface, CharSequence name) Queries the fragment color index of a named variable within a program.- Parameters:
program- the name of a program object whose resources to queryprogramInterface- a token identifying the interface withinprogramcontaining the resource namedname. Must be:PROGRAM_OUTPUTname- the name of the resource to query the location of
-
glGetProgramInterfaceiv
public static void glGetProgramInterfaceiv(int program, int programInterface, int pname, int[] params) Array version of:GetProgramInterfaceiv -
glGetProgramResourceName
public static void glGetProgramResourceName(int program, int programInterface, int index, @Nullable int[] length, ByteBuffer name) Array version of:GetProgramResourceName -
glGetProgramResourceiv
public static void glGetProgramResourceiv(int program, int programInterface, int index, int[] props, @Nullable int[] length, int[] params) Array version of:GetProgramResourceiv
-