logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

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

C Specification

voidglTextureBarrier(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.

Errors

       None.

Name

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

Notes

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

See Also

glMemoryBarrier()

Version Support

       ┌──────────────────┬───────────────────────────────────────────────────────────────────────┐
       │                  │                OpenGLVersion                                         │
       ├──────────────────┼─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┤
       │ Function2.02.13.03.13.23.34.04.14.24.34.44.5 │
       │ /                │     │     │     │     │     │     │     │     │     │     │     │     │
       │ Feature          │     │     │     │     │     │     │     │     │     │     │     │     │
       │ Name             │     │     │     │     │     │     │     │     │     │     │     │     │
       ├──────────────────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┤
       │ glTextureBarrier │  -  │  -  │  -  │  -  │  -  │  -  │  -  │  -  │  -  │  -  │  -  │  ✔  │
       └──────────────────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┘

See Also