Difference between revisions of "GLAPI/glIsProgramPipeline"

From OpenGL Wiki
Jump to navigation Jump to search
m (Bot: Adding better formatting.)
 
(6 intermediate revisions by 2 users not shown)
Line 9: Line 9:
 
== Function Definition ==
 
== Function Definition ==
  
   GLboolean '''glIsProgramPipeline'''(GLuint ''pipeline'');
+
   GLboolean '''glIsProgramPipeline'''(GLuint {{param|pipeline}});
  
 
; pipeline
 
; pipeline
Line 16: Line 16:
 
== Description ==
 
== Description ==
  
'''glIsProgramPipeline''' returns {{code|GL_TRUE}} if ''pipeline'' is currently the name of a program pipeline object. If ''pipeline'' is zero, or if {{code|pipeline}} is not the name of a program pipeline object, or if an error occurs, '''glIsProgramPipeline''' returns {{code|GL_FALSE}}. If ''pipeline'' is a name returned by [[GLAPI/glGenProgramPipelines|glGenProgramPipelines]], but that has not yet been bound through a call to [[GLAPI/glBindProgramPipeline|glBindProgramPipeline]], then the name is not a program pipeline object and '''glIsProgramPipeline''' returns {{code|GL_FALSE}}.
+
'''glIsProgramPipeline''' returns {{enum|GL_TRUE}} if {{param|pipeline}} is currently the name of a program pipeline object. If {{param|pipeline}} is zero, or if {{param|pipeline}} is not the name of a program pipeline object, or if an error occurs, '''glIsProgramPipeline''' returns {{enum|GL_FALSE}}. If {{param|pipeline}} is a name returned by {{apifunc|glGenProgramPipelines}}, but that has not yet been bound through a call to {{apifunc|glBindProgramPipeline}}, then the name is not a program pipeline object and '''glIsProgramPipeline''' returns {{enum|GL_FALSE}}.
  
 
== See Also ==
 
== See Also ==
  
[[GLAPI/glGenProgramPipelines|glGenProgramPipelines]], [[GLAPI/glBindProgramPipeline|glBindProgramPipeline]], [[GLAPI/glDeleteProgramPipelines|glDeleteProgramPipelines]]
+
{{apifunc|glGenProgramPipelines}}, {{apifunc|glBindProgramPipeline}}, {{apifunc|glDeleteProgramPipelines}}
  
 
== Copyright ==
 
== Copyright ==
Line 26: Line 26:
 
Copyright © 2010 Khronos Group. This material may be distributed subject to the terms and conditions set forth in the Open Publication License, v 1.0, 8 June 1999. [http://opencontent.org/openpub/ http://opencontent.org/openpub/].
 
Copyright © 2010 Khronos Group. This material may be distributed subject to the terms and conditions set forth in the Open Publication License, v 1.0, 8 June 1999. [http://opencontent.org/openpub/ http://opencontent.org/openpub/].
  
[[Category:API Reference 4|IsProgramPipeline]]
+
[[Category:Core API Reference|IsProgramPipeline]]
 +
[[Category:Core API Ref Shader Program Creation|IsProgramPipeline]]

Latest revision as of 08:30, 13 August 2012

glIsProgramPipeline
Core in version 4.6
Core since version 4.1
Core ARB extension ARB_separate_shader_objects

glIsProgramPipeline: determine if a name corresponds to a program pipeline object

Function Definition

 GLboolean glIsProgramPipeline(GLuint pipeline​);
pipeline
Specifies a value that may be the name of a program pipeline object.

Description

glIsProgramPipeline returns GL_TRUE if pipeline​ is currently the name of a program pipeline object. If pipeline​ is zero, or if pipeline​ is not the name of a program pipeline object, or if an error occurs, glIsProgramPipeline returns GL_FALSE. If pipeline​ is a name returned by glGenProgramPipelines, but that has not yet been bound through a call to glBindProgramPipeline, then the name is not a program pipeline object and glIsProgramPipeline returns GL_FALSE.

See Also

glGenProgramPipelines, glBindProgramPipeline, glDeleteProgramPipelines

Copyright

Copyright © 2010 Khronos Group. This material may be distributed subject to the terms and conditions set forth in the Open Publication License, v 1.0, 8 June 1999. http://opencontent.org/openpub/.