10.02.2014 Views

spec - OpenGL

spec - OpenGL

spec - OpenGL

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

6.1. QUERYING GL STATE 492<br />

6.1.17 Transform Feedback Queries<br />

The command<br />

boolean IsTransformFeedback( uint id );<br />

returns TRUE if id is the name of a transform feedback object. If id is zero, or<br />

a non-zero value that is not the name of a transform feedback object, IsTransformFeedback<br />

return FALSE. No error is generated if id is not a valid transform<br />

feedback object name.<br />

6.1.18 Shader and Program Queries<br />

State stored in shader or program objects can be queried by commands that accept<br />

shader or program object names. These commands will generate the error<br />

INVALID_VALUE if the provided name is not the name of either a shader or program<br />

object, and INVALID_OPERATION if the provided name identifies an object<br />

of the other type. If an error is generated, variables used to hold return values are<br />

not modified.<br />

The command<br />

boolean IsShader( uint shader );<br />

returns TRUE if shader is the name of a shader object. If shader is zero, or a nonzero<br />

value that is not the name of a shader object, IsShader returns FALSE. No<br />

error is generated if shader is not a valid shader object name.<br />

The command<br />

void GetShaderiv( uint shader, enum pname, int *params );<br />

returns properties of the shader object named shader in params. The parameter<br />

value to return is <strong>spec</strong>ified by pname.<br />

If pname is SHADER_TYPE, VERTEX_SHADER, TESS_CONTROL_SHADER,<br />

TESS_EVALUATION_SHADER, GEOMETRY_SHADER, or FRAGMENT_SHADER is returned<br />

if shader is a vertex, tessellation control, tessellation evaluation, geometry,<br />

or fragment shader object re<strong>spec</strong>tively.<br />

If pname is DELETE_STATUS, TRUE is returned if the shader has been flagged<br />

for deletion and FALSE is returned otherwise.<br />

If pname is COMPILE_STATUS, TRUE is returned if the shader was last compiled<br />

successfully, and FALSE is returned otherwise.<br />

If pname is INFO_LOG_LENGTH, the length of the info log, including a null<br />

terminator, is returned. If there is no info log, zero is returned.<br />

<strong>OpenGL</strong> 4.2 (Compatibility Profile) - August 22, 2011

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!