public class ARBProgramInterfaceQuery
extends java.lang.Object
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.
| Modifier and Type | Field and Description |
|---|---|
static int |
GL_ACTIVE_RESOURCES
Accepted by the
pname parameter of GetProgramInterfaceiv. |
static int |
GL_ACTIVE_VARIABLES
Accepted in the
props array of GetProgramResourceiv. |
static int |
GL_ARRAY_SIZE
Accepted in the
props array of GetProgramResourceiv. |
static int |
GL_ARRAY_STRIDE
Accepted in the
props array of GetProgramResourceiv. |
static int |
GL_ATOMIC_COUNTER_BUFFER_INDEX
Accepted in the
props array of GetProgramResourceiv. |
static int |
GL_BLOCK_INDEX
Accepted in the
props array of GetProgramResourceiv. |
static int |
GL_BUFFER_BINDING
Accepted in the
props array of GetProgramResourceiv. |
static int |
GL_BUFFER_DATA_SIZE
Accepted in the
props array of GetProgramResourceiv. |
static int |
GL_BUFFER_VARIABLE
Accepted by the
programInterface parameter of GetProgramInterfaceiv, GetProgramResourceIndex, GetProgramResourceName, GetProgramResourceiv,
GetProgramResourceLocation, and GetProgramResourceLocationIndex. |
static int |
GL_COMPUTE_SUBROUTINE
Accepted by the
programInterface parameter of GetProgramInterfaceiv, GetProgramResourceIndex, GetProgramResourceName, GetProgramResourceiv,
GetProgramResourceLocation, and GetProgramResourceLocationIndex. |
static int |
GL_COMPUTE_SUBROUTINE_UNIFORM
Accepted by the
programInterface parameter of GetProgramInterfaceiv, GetProgramResourceIndex, GetProgramResourceName, GetProgramResourceiv,
GetProgramResourceLocation, and GetProgramResourceLocationIndex. |
static int |
GL_FRAGMENT_SUBROUTINE
Accepted by the
programInterface parameter of GetProgramInterfaceiv, GetProgramResourceIndex, GetProgramResourceName, GetProgramResourceiv,
GetProgramResourceLocation, and GetProgramResourceLocationIndex. |
static int |
GL_FRAGMENT_SUBROUTINE_UNIFORM
Accepted by the
programInterface parameter of GetProgramInterfaceiv, GetProgramResourceIndex, GetProgramResourceName, GetProgramResourceiv,
GetProgramResourceLocation, and GetProgramResourceLocationIndex. |
static int |
GL_GEOMETRY_SUBROUTINE
Accepted by the
programInterface parameter of GetProgramInterfaceiv, GetProgramResourceIndex, GetProgramResourceName, GetProgramResourceiv,
GetProgramResourceLocation, and GetProgramResourceLocationIndex. |
static int |
GL_GEOMETRY_SUBROUTINE_UNIFORM
Accepted by the
programInterface parameter of GetProgramInterfaceiv, GetProgramResourceIndex, GetProgramResourceName, GetProgramResourceiv,
GetProgramResourceLocation, and GetProgramResourceLocationIndex. |
static int |
GL_IS_PER_PATCH
Accepted in the
props array of GetProgramResourceiv. |
static int |
GL_IS_ROW_MAJOR
Accepted in the
props array of GetProgramResourceiv. |
static int |
GL_LOCATION
Accepted in the
props array of GetProgramResourceiv. |
static int |
GL_LOCATION_INDEX
Accepted in the
props array of GetProgramResourceiv. |
static int |
GL_MATRIX_STRIDE
Accepted in the
props array of GetProgramResourceiv. |
static int |
GL_MAX_NAME_LENGTH
Accepted by the
pname parameter of GetProgramInterfaceiv. |
static int |
GL_MAX_NUM_ACTIVE_VARIABLES
Accepted by the
pname parameter of GetProgramInterfaceiv. |
static int |
GL_MAX_NUM_COMPATIBLE_SUBROUTINES
Accepted by the
pname parameter of GetProgramInterfaceiv. |
static int |
GL_NAME_LENGTH
Accepted in the
props array of GetProgramResourceiv. |
static int |
GL_NUM_ACTIVE_VARIABLES
Accepted in the
props array of GetProgramResourceiv. |
static int |
GL_OFFSET
Accepted in the
props array of GetProgramResourceiv. |
static int |
GL_PROGRAM_INPUT
Accepted by the
programInterface parameter of GetProgramInterfaceiv, GetProgramResourceIndex, GetProgramResourceName, GetProgramResourceiv,
GetProgramResourceLocation, and GetProgramResourceLocationIndex. |
static int |
GL_PROGRAM_OUTPUT
Accepted by the
programInterface parameter of GetProgramInterfaceiv, GetProgramResourceIndex, GetProgramResourceName, GetProgramResourceiv,
GetProgramResourceLocation, and GetProgramResourceLocationIndex. |
static int |
GL_REFERENCED_BY_COMPUTE_SHADER
Accepted in the
props array of GetProgramResourceiv. |
static int |
GL_REFERENCED_BY_FRAGMENT_SHADER
Accepted in the
props array of GetProgramResourceiv. |
static int |
GL_REFERENCED_BY_GEOMETRY_SHADER
Accepted in the
props array of GetProgramResourceiv. |
static int |
GL_REFERENCED_BY_TESS_CONTROL_SHADER
Accepted in the
props array of GetProgramResourceiv. |
static int |
GL_REFERENCED_BY_TESS_EVALUATION_SHADER
Accepted in the
props array of GetProgramResourceiv. |
static int |
GL_REFERENCED_BY_VERTEX_SHADER
Accepted in the
props array of GetProgramResourceiv. |
static int |
GL_SHADER_STORAGE_BLOCK
Accepted by the
programInterface parameter of GetProgramInterfaceiv, GetProgramResourceIndex, GetProgramResourceName, GetProgramResourceiv,
GetProgramResourceLocation, and GetProgramResourceLocationIndex. |
static int |
GL_TESS_CONTROL_SUBROUTINE
Accepted by the
programInterface parameter of GetProgramInterfaceiv, GetProgramResourceIndex, GetProgramResourceName, GetProgramResourceiv,
GetProgramResourceLocation, and GetProgramResourceLocationIndex. |
static int |
GL_TESS_CONTROL_SUBROUTINE_UNIFORM
Accepted by the
programInterface parameter of GetProgramInterfaceiv, GetProgramResourceIndex, GetProgramResourceName, GetProgramResourceiv,
GetProgramResourceLocation, and GetProgramResourceLocationIndex. |
static int |
GL_TESS_EVALUATION_SUBROUTINE
Accepted by the
programInterface parameter of GetProgramInterfaceiv, GetProgramResourceIndex, GetProgramResourceName, GetProgramResourceiv,
GetProgramResourceLocation, and GetProgramResourceLocationIndex. |
static int |
GL_TESS_EVALUATION_SUBROUTINE_UNIFORM
Accepted by the
programInterface parameter of GetProgramInterfaceiv, GetProgramResourceIndex, GetProgramResourceName, GetProgramResourceiv,
GetProgramResourceLocation, and GetProgramResourceLocationIndex. |
static int |
GL_TOP_LEVEL_ARRAY_SIZE
Accepted in the
props array of GetProgramResourceiv. |
static int |
GL_TOP_LEVEL_ARRAY_STRIDE
Accepted in the
props array of GetProgramResourceiv. |
static int |
GL_TRANSFORM_FEEDBACK_VARYING
Accepted by the
programInterface parameter of GetProgramInterfaceiv, GetProgramResourceIndex, GetProgramResourceName, GetProgramResourceiv,
GetProgramResourceLocation, and GetProgramResourceLocationIndex. |
static int |
GL_TYPE
Accepted in the
props array of GetProgramResourceiv. |
static int |
GL_UNIFORM
Accepted by the
programInterface parameter of GetProgramInterfaceiv, GetProgramResourceIndex, GetProgramResourceName, GetProgramResourceiv,
GetProgramResourceLocation, and GetProgramResourceLocationIndex. |
static int |
GL_UNIFORM_BLOCK
Accepted by the
programInterface parameter of GetProgramInterfaceiv, GetProgramResourceIndex, GetProgramResourceName, GetProgramResourceiv,
GetProgramResourceLocation, and GetProgramResourceLocationIndex. |
static int |
GL_VERTEX_SUBROUTINE
Accepted by the
programInterface parameter of GetProgramInterfaceiv, GetProgramResourceIndex, GetProgramResourceName, GetProgramResourceiv,
GetProgramResourceLocation, and GetProgramResourceLocationIndex. |
static int |
GL_VERTEX_SUBROUTINE_UNIFORM
Accepted by the
programInterface parameter of GetProgramInterfaceiv, GetProgramResourceIndex, GetProgramResourceName, GetProgramResourceiv,
GetProgramResourceLocation, and GetProgramResourceLocationIndex. |
| Modifier and Type | Method and Description |
|---|---|
static int |
glGetProgramInterfacei(int program,
int programInterface,
int pname)
Queries a property of an interface in a program.
|
static void |
glGetProgramInterfaceiv(int program,
int programInterface,
int pname,
int[] params)
Array version of:
GetProgramInterfaceiv |
static void |
glGetProgramInterfaceiv(int program,
int programInterface,
int pname,
java.nio.IntBuffer params)
Queries a property of an interface in a program.
|
static int |
glGetProgramResourceIndex(int program,
int programInterface,
java.nio.ByteBuffer name)
Queries the index of a named resource within a program.
|
static int |
glGetProgramResourceIndex(int program,
int programInterface,
java.lang.CharSequence name)
Queries the index of a named resource within a program.
|
static void |
glGetProgramResourceiv(int program,
int programInterface,
int index,
int[] props,
int[] length,
int[] params)
Array version of:
GetProgramResourceiv |
static void |
glGetProgramResourceiv(int program,
int programInterface,
int index,
java.nio.IntBuffer props,
java.nio.IntBuffer length,
java.nio.IntBuffer params)
Retrieves values for multiple properties of a single active resource within a program object.
|
static int |
glGetProgramResourceLocation(int program,
int programInterface,
java.nio.ByteBuffer name)
Queries the location of a named resource within a program.
|
static int |
glGetProgramResourceLocation(int program,
int programInterface,
java.lang.CharSequence name)
Queries the location of a named resource within a program.
|
static int |
glGetProgramResourceLocationIndex(int program,
int programInterface,
java.nio.ByteBuffer name)
Queries the fragment color index of a named variable within a program.
|
static int |
glGetProgramResourceLocationIndex(int program,
int programInterface,
java.lang.CharSequence name)
Queries the fragment color index of a named variable within a program.
|
static java.lang.String |
glGetProgramResourceName(int program,
int programInterface,
int index)
Queries the name of an indexed resource within a program.
|
static java.lang.String |
glGetProgramResourceName(int program,
int programInterface,
int index,
int bufSize)
Queries the name of an indexed resource within a program.
|
static void |
glGetProgramResourceName(int program,
int programInterface,
int index,
int[] length,
java.nio.ByteBuffer name)
Array version of:
GetProgramResourceName |
static void |
glGetProgramResourceName(int program,
int programInterface,
int index,
java.nio.IntBuffer length,
java.nio.ByteBuffer name)
Queries the name of an indexed resource within a program.
|
static void |
nglGetProgramInterfaceiv(int program,
int programInterface,
int pname,
long params)
Unsafe version of:
GetProgramInterfaceiv |
static int |
nglGetProgramResourceIndex(int program,
int programInterface,
long name)
Unsafe version of:
GetProgramResourceIndex |
static void |
nglGetProgramResourceiv(int program,
int programInterface,
int index,
int propCount,
long props,
int bufSize,
long length,
long params)
Unsafe version of:
GetProgramResourceiv |
static int |
nglGetProgramResourceLocation(int program,
int programInterface,
long name)
Unsafe version of:
GetProgramResourceLocation |
static int |
nglGetProgramResourceLocationIndex(int program,
int programInterface,
long name)
Unsafe version of:
GetProgramResourceLocationIndex |
static void |
nglGetProgramResourceName(int program,
int programInterface,
int index,
int bufSize,
long length,
long name)
Unsafe version of:
GetProgramResourceName |
public static final int GL_UNIFORM
programInterface parameter of GetProgramInterfaceiv, GetProgramResourceIndex, GetProgramResourceName, GetProgramResourceiv,
GetProgramResourceLocation, and GetProgramResourceLocationIndex.public static final int GL_UNIFORM_BLOCK
programInterface parameter of GetProgramInterfaceiv, GetProgramResourceIndex, GetProgramResourceName, GetProgramResourceiv,
GetProgramResourceLocation, and GetProgramResourceLocationIndex.public static final int GL_PROGRAM_INPUT
programInterface parameter of GetProgramInterfaceiv, GetProgramResourceIndex, GetProgramResourceName, GetProgramResourceiv,
GetProgramResourceLocation, and GetProgramResourceLocationIndex.public static final int GL_PROGRAM_OUTPUT
programInterface parameter of GetProgramInterfaceiv, GetProgramResourceIndex, GetProgramResourceName, GetProgramResourceiv,
GetProgramResourceLocation, and GetProgramResourceLocationIndex.public static final int GL_BUFFER_VARIABLE
programInterface parameter of GetProgramInterfaceiv, GetProgramResourceIndex, GetProgramResourceName, GetProgramResourceiv,
GetProgramResourceLocation, and GetProgramResourceLocationIndex.public static final int GL_SHADER_STORAGE_BLOCK
programInterface parameter of GetProgramInterfaceiv, GetProgramResourceIndex, GetProgramResourceName, GetProgramResourceiv,
GetProgramResourceLocation, and GetProgramResourceLocationIndex.public static final int GL_VERTEX_SUBROUTINE
programInterface parameter of GetProgramInterfaceiv, GetProgramResourceIndex, GetProgramResourceName, GetProgramResourceiv,
GetProgramResourceLocation, and GetProgramResourceLocationIndex.public static final int GL_TESS_CONTROL_SUBROUTINE
programInterface parameter of GetProgramInterfaceiv, GetProgramResourceIndex, GetProgramResourceName, GetProgramResourceiv,
GetProgramResourceLocation, and GetProgramResourceLocationIndex.public static final int GL_TESS_EVALUATION_SUBROUTINE
programInterface parameter of GetProgramInterfaceiv, GetProgramResourceIndex, GetProgramResourceName, GetProgramResourceiv,
GetProgramResourceLocation, and GetProgramResourceLocationIndex.public static final int GL_GEOMETRY_SUBROUTINE
programInterface parameter of GetProgramInterfaceiv, GetProgramResourceIndex, GetProgramResourceName, GetProgramResourceiv,
GetProgramResourceLocation, and GetProgramResourceLocationIndex.public static final int GL_FRAGMENT_SUBROUTINE
programInterface parameter of GetProgramInterfaceiv, GetProgramResourceIndex, GetProgramResourceName, GetProgramResourceiv,
GetProgramResourceLocation, and GetProgramResourceLocationIndex.public static final int GL_COMPUTE_SUBROUTINE
programInterface parameter of GetProgramInterfaceiv, GetProgramResourceIndex, GetProgramResourceName, GetProgramResourceiv,
GetProgramResourceLocation, and GetProgramResourceLocationIndex.public static final int GL_VERTEX_SUBROUTINE_UNIFORM
programInterface parameter of GetProgramInterfaceiv, GetProgramResourceIndex, GetProgramResourceName, GetProgramResourceiv,
GetProgramResourceLocation, and GetProgramResourceLocationIndex.public static final int GL_TESS_CONTROL_SUBROUTINE_UNIFORM
programInterface parameter of GetProgramInterfaceiv, GetProgramResourceIndex, GetProgramResourceName, GetProgramResourceiv,
GetProgramResourceLocation, and GetProgramResourceLocationIndex.public static final int GL_TESS_EVALUATION_SUBROUTINE_UNIFORM
programInterface parameter of GetProgramInterfaceiv, GetProgramResourceIndex, GetProgramResourceName, GetProgramResourceiv,
GetProgramResourceLocation, and GetProgramResourceLocationIndex.public static final int GL_GEOMETRY_SUBROUTINE_UNIFORM
programInterface parameter of GetProgramInterfaceiv, GetProgramResourceIndex, GetProgramResourceName, GetProgramResourceiv,
GetProgramResourceLocation, and GetProgramResourceLocationIndex.public static final int GL_FRAGMENT_SUBROUTINE_UNIFORM
programInterface parameter of GetProgramInterfaceiv, GetProgramResourceIndex, GetProgramResourceName, GetProgramResourceiv,
GetProgramResourceLocation, and GetProgramResourceLocationIndex.public static final int GL_COMPUTE_SUBROUTINE_UNIFORM
programInterface parameter of GetProgramInterfaceiv, GetProgramResourceIndex, GetProgramResourceName, GetProgramResourceiv,
GetProgramResourceLocation, and GetProgramResourceLocationIndex.public static final int GL_TRANSFORM_FEEDBACK_VARYING
programInterface parameter of GetProgramInterfaceiv, GetProgramResourceIndex, GetProgramResourceName, GetProgramResourceiv,
GetProgramResourceLocation, and GetProgramResourceLocationIndex.public static final int GL_ACTIVE_RESOURCES
pname parameter of GetProgramInterfaceiv.public static final int GL_MAX_NAME_LENGTH
pname parameter of GetProgramInterfaceiv.public static final int GL_MAX_NUM_ACTIVE_VARIABLES
pname parameter of GetProgramInterfaceiv.public static final int GL_MAX_NUM_COMPATIBLE_SUBROUTINES
pname parameter of GetProgramInterfaceiv.public static final int GL_NAME_LENGTH
props array of GetProgramResourceiv.public static final int GL_TYPE
props array of GetProgramResourceiv.public static final int GL_ARRAY_SIZE
props array of GetProgramResourceiv.public static final int GL_OFFSET
props array of GetProgramResourceiv.public static final int GL_BLOCK_INDEX
props array of GetProgramResourceiv.public static final int GL_ARRAY_STRIDE
props array of GetProgramResourceiv.public static final int GL_MATRIX_STRIDE
props array of GetProgramResourceiv.public static final int GL_IS_ROW_MAJOR
props array of GetProgramResourceiv.public static final int GL_ATOMIC_COUNTER_BUFFER_INDEX
props array of GetProgramResourceiv.public static final int GL_BUFFER_BINDING
props array of GetProgramResourceiv.public static final int GL_BUFFER_DATA_SIZE
props array of GetProgramResourceiv.public static final int GL_NUM_ACTIVE_VARIABLES
props array of GetProgramResourceiv.public static final int GL_ACTIVE_VARIABLES
props array of GetProgramResourceiv.public static final int GL_REFERENCED_BY_VERTEX_SHADER
props array of GetProgramResourceiv.public static final int GL_REFERENCED_BY_TESS_CONTROL_SHADER
props array of GetProgramResourceiv.public static final int GL_REFERENCED_BY_TESS_EVALUATION_SHADER
props array of GetProgramResourceiv.public static final int GL_REFERENCED_BY_GEOMETRY_SHADER
props array of GetProgramResourceiv.public static final int GL_REFERENCED_BY_FRAGMENT_SHADER
props array of GetProgramResourceiv.public static final int GL_REFERENCED_BY_COMPUTE_SHADER
props array of GetProgramResourceiv.public static final int GL_TOP_LEVEL_ARRAY_SIZE
props array of GetProgramResourceiv.public static final int GL_TOP_LEVEL_ARRAY_STRIDE
props array of GetProgramResourceiv.public static final int GL_LOCATION
props array of GetProgramResourceiv.public static final int GL_LOCATION_INDEX
props array of GetProgramResourceiv.public static final int GL_IS_PER_PATCH
props array of GetProgramResourceiv.public static void nglGetProgramInterfaceiv(int program,
int programInterface,
int pname,
long params)
GetProgramInterfaceivpublic static void glGetProgramInterfaceiv(int program,
int programInterface,
int pname,
java.nio.IntBuffer params)
program - the name of a program object whose interface to queryprogramInterface - a token identifying the interface within program to query. One of:pname - the name of the parameter within programInterface to query. One of:ACTIVE_RESOURCES | MAX_NAME_LENGTH | MAX_NUM_ACTIVE_VARIABLES |
MAX_NUM_COMPATIBLE_SUBROUTINES |
params - a variable to retrieve the value of pname for the program interfacepublic static int glGetProgramInterfacei(int program,
int programInterface,
int pname)
program - the name of a program object whose interface to queryprogramInterface - a token identifying the interface within program to query. One of:pname - the name of the parameter within programInterface to query. One of:ACTIVE_RESOURCES | MAX_NAME_LENGTH | MAX_NUM_ACTIVE_VARIABLES |
MAX_NUM_COMPATIBLE_SUBROUTINES |
public static int nglGetProgramResourceIndex(int program,
int programInterface,
long name)
GetProgramResourceIndexpublic static int glGetProgramResourceIndex(int program,
int programInterface,
java.nio.ByteBuffer name)
program - the name of a program object whose resources to queryprogramInterface - a token identifying the interface within program containing the resource named {Wcode name}. One of:name - the name of the resource to query the index ofpublic static int glGetProgramResourceIndex(int program,
int programInterface,
java.lang.CharSequence name)
program - the name of a program object whose resources to queryprogramInterface - a token identifying the interface within program containing the resource named {Wcode name}. One of:name - the name of the resource to query the index ofpublic static void nglGetProgramResourceName(int program,
int programInterface,
int index,
int bufSize,
long length,
long name)
GetProgramResourceNamebufSize - the size of the character array whose address is given by namepublic static void glGetProgramResourceName(int program,
int programInterface,
int index,
@Nullable
java.nio.IntBuffer length,
java.nio.ByteBuffer name)
program - the name of a program object whose resources to queryprogramInterface - a token identifying the interface within program containing the indexed resource. One of:index - the index of the resource within programInterface of programlength - a variable which will receive the length of the resource namename - a character array into which will be written the name of the resourcepublic static java.lang.String glGetProgramResourceName(int program,
int programInterface,
int index,
int bufSize)
program - the name of a program object whose resources to queryprogramInterface - a token identifying the interface within program containing the indexed resource. One of:index - the index of the resource within programInterface of programbufSize - the size of the character array whose address is given by namepublic static java.lang.String glGetProgramResourceName(int program,
int programInterface,
int index)
program - the name of a program object whose resources to queryprogramInterface - a token identifying the interface within program containing the indexed resource. One of:index - the index of the resource within programInterface of programpublic static void nglGetProgramResourceiv(int program,
int programInterface,
int index,
int propCount,
long props,
int bufSize,
long length,
long params)
GetProgramResourceivpropCount - the number of properties in propsbufSize - the size of the integer array whose address is given by paramspublic static void glGetProgramResourceiv(int program,
int programInterface,
int index,
java.nio.IntBuffer props,
@Nullable
java.nio.IntBuffer length,
java.nio.IntBuffer params)
program - the name of a program object whose resources to queryprogramInterface - a token identifying the interface within program containing the resource named name. 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 valuespublic static int nglGetProgramResourceLocation(int program,
int programInterface,
long name)
GetProgramResourceLocationpublic static int glGetProgramResourceLocation(int program,
int programInterface,
java.nio.ByteBuffer name)
program - the name of a program object whose resources to queryprogramInterface - a token identifying the interface within program containing the resource named namename - the name of the resource to query the location ofpublic static int glGetProgramResourceLocation(int program,
int programInterface,
java.lang.CharSequence name)
program - the name of a program object whose resources to queryprogramInterface - a token identifying the interface within program containing the resource named namename - the name of the resource to query the location ofpublic static int nglGetProgramResourceLocationIndex(int program,
int programInterface,
long name)
GetProgramResourceLocationIndexpublic static int glGetProgramResourceLocationIndex(int program,
int programInterface,
java.nio.ByteBuffer name)
program - the name of a program object whose resources to queryprogramInterface - a token identifying the interface within program containing the resource named name. Must be:PROGRAM_OUTPUT |
name - the name of the resource to query the location ofpublic static int glGetProgramResourceLocationIndex(int program,
int programInterface,
java.lang.CharSequence name)
program - the name of a program object whose resources to queryprogramInterface - a token identifying the interface within program containing the resource named name. Must be:PROGRAM_OUTPUT |
name - the name of the resource to query the location ofpublic static void glGetProgramInterfaceiv(int program,
int programInterface,
int pname,
int[] params)
GetProgramInterfaceivpublic static void glGetProgramResourceName(int program,
int programInterface,
int index,
@Nullable
int[] length,
java.nio.ByteBuffer name)
GetProgramResourceNamepublic static void glGetProgramResourceiv(int program,
int programInterface,
int index,
int[] props,
@Nullable
int[] length,
int[] params)
GetProgramResourceivCopyright LWJGL. All Rights Reserved. License terms.