GL_HELPERINVOCATION(3G)
β¨ NAME β¨
gl_HelperInvocation β tells you whether a fragment shader invocation is a helper invocation π
and yes bestie, this whole page is the GL_HELPERINVOCATION(3G) manual, iykyk π«Ά
π§Ύ DECLARATION π§Ύ
in bool gl_HelperInvocation ;
ngl the raw page has a lil glued-on roff moment: ;.SH "DESCRIPTION". Iβm splitting it so the declaration stays readable and DESCRIPTION still gets its own heading, because clarity is self-care π
πΈ DESCRIPTION πΈ
The value gl_HelperInvocation is true if the fragment shader invocation is considered a helper invocation, and false otherwise. A helper invocation is a fragment-shader invocation that is created solely for the purposes of evaluating derivatives for use in non-helper fragment-shader invocations. Such derivatives are computed implicitly in the built-in function texture()(), and explicitly in the derivative functions dFdx()() and dFdy.
Fragment shader helper invocations execute the same shader code as non-helper invocations, but will not have side effects that modify the framebuffer or other shader-accessible memory. In particular:
- Fragments corresponding to helper invocations are discarded when shader execution is complete, without updating the framebuffer.
- Stores to image and buffer variables performed by helper invocations have no effect on the underlying image or buffer memory.
- Atomic operations to image, buffer, or atomic counter variables performed by helper invocations have no effect on the underlying image or buffer memory. The values returned by such atomic operations are undefined. π
Helper invocations may be generated for pixels not covered by a primitive being rendered. While fragment shader inputs qualified with centroid are normally required to be sampled in the intersection of the pixel and the primitive, the requirement is ignored for such pixels since there is no intersection between the pixel and primitive.
Helper invocations may also be generated for fragments that are covered by a primitive being rendered when the fragment is killed by early fragment tests (using the early_fragment_tests qualifier) or where the implementation is able to determine that executing the fragment shader would have no effect other than assisting in computing derivatives for other fragment shader invocations.
The set of helper invocations generated when processing any set of primitives is implementation dependent.
π VERSION SUPPORT π
Variable Name: gl_HelperInvocation
OpenGL Shading Language Version:
1.10β-1.20β-1.30β-1.40β-1.50β-3.30β-4.00β-4.10β-4.20β-4.30β-4.40β-4.50ββπ
π¦ SEE ALSO π¦
dFdx(), texture() β go say hi to the see-also besties π―ββοΈ
π 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. http://opencontent.org/openpub/.
π COPYRIGHT π
Copyright Β© 2014 Khronos Group
okay bye bestie π this pageβs source/version footer says [FIXME: source], itβs dated 08/09/2021, and the manual name is GL_HELPERINVOCATION(3G). mwah π«Άβ¨
π¦ where this page comes from
- centos-stream 9: gl-manpages 1.1-24.20190306.el9 Β· MIT and Open Publication
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms