GLTEXTUREBARRIER

Section: [FIXME: manual] (3G)
Updated: 01/28/2020
Page Index
 

NAME

glTextureBarrier - controls the ordering of reads and writes to rendered fragments across drawing commands  

C SPECIFICATION

void glTextureBarrier(void);
 

DESCRIPTION

The values of rendered fragments are undefined when a shader stage fetches texels and the same texels are written via fragment shader outputs, even if the reads and writes are not in the same drawing command. To safely read the result of a written texel via a texel fetch in a subsequent drawing command, call glTextureBarrier between the two drawing commands to guarantee that writes have completed and caches have been invalidated before subsequent drawing commands are executed.  

NOTES

The situation described above is referred to as a rendering feedback loop and is discussed in more detail in section 9.3 of the OpenGL 4.5 Specification.  

ERRORS

None.  

VERSION SUPPORT

OpenGL Version
Function / Feature Name 2.0 2.1 3.0 3.1 3.2 3.3 4.0 4.1 4.2 4.3 4.4 4.5
glTextureBarrier - - - - - - - - - - -

 

SEE ALSO

glMemoryBarrier()  

COPYRIGHT

Copyright © 2014 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. m[blue]http://opencontent.org/openpub/m[].  

COPYRIGHT


Copyright © 2014 Khronos Group


 

Index

NAME
C SPECIFICATION
DESCRIPTION
NOTES
ERRORS
VERSION SUPPORT
SEE ALSO
COPYRIGHT
COPYRIGHT
LinuxReviews : manual page archive : man3