GLAPI/glIsSync: Difference between revisions

From OpenGL Wiki
Jump to navigation Jump to search
m Renaming category: 'API Reference 4' to 'Core API Reference'.
m Bot: Adding better formatting.
 
(2 intermediate revisions by the same user not shown)
Line 9: Line 9:
== Function Definition ==
== Function Definition ==


   GLboolean '''glIsSync'''(GLsync ''sync'');
   GLboolean '''glIsSync'''(GLsync {{param|sync}});


; sync
; sync
Line 16: Line 16:
== Description ==
== Description ==


'''glIsSync''' returns {{code|GL_TRUE}} if ''sync'' is currently the name of a sync object. If ''sync'' is not the name of a sync object, or if an error occurs, '''glIsSync''' returns {{code|GL_FALSE}}. Note that zero is not the name of a sync object.
'''glIsSync''' returns {{enum|GL_TRUE}} if {{param|sync}} is currently the name of a sync object. If {{param|sync}} is not the name of a sync object, or if an error occurs, '''glIsSync''' returns {{enum|GL_FALSE}}. Note that zero is not the name of a sync object.


== Notes ==
== Notes ==
Line 24: Line 24:
== See Also ==
== See Also ==


[[GLAPI/glFenceSync|glFenceSync]], [[GLAPI/glWaitSync|glWaitSync]], [[GLAPI/glClientWaitSync|glClientWaitSync]], [[GLAPI/glDeleteSync|glDeleteSync]]
{{apifunc|glFenceSync}}, {{apifunc|glWaitSync}}, {{apifunc|glClientWaitSync}}, {{apifunc|glDeleteSync}}


== Copyright ==
== Copyright ==
Line 30: Line 30:
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:GL 4 API Synchronization|IsSync]]
[[Category:Core API Reference|IsSync]]
[[Category:Core API Reference|IsSync]]
[[Category:Core API Ref Synchronization|IsSync]]

Latest revision as of 17:26, 29 April 2012

glIsSync
Core in version 4.6
Core since version 3.2
Core ARB extension ARB_sync

glIsSync: determine if a name corresponds to a sync object

Function Definition

 GLboolean glIsSync(GLsync sync​);
sync
Specifies a value that may be the name of a sync object.

Description

glIsSync returns GL_TRUE if sync​ is currently the name of a sync object. If sync​ is not the name of a sync object, or if an error occurs, glIsSync returns GL_FALSE. Note that zero is not the name of a sync object.

Notes

glIsSync is available only if the GL version is 3.2 or greater.

See Also

glFenceSync, glWaitSync, glClientWaitSync, glDeleteSync

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/.