MEMORYBARRIERIMAGE(3G)

πŸ“¦
version 1.0~svn33624 Β· 4 versions
, in ubuntu jammy, ubuntu noble

🌸 MEMORYBARRIERIMAGE 🌸

okay bestie, welcome to the 3G girlies club πŸ’… this one lives in the OpenGL Shading Language section, and it's literally the glow-up your shader memory ordering needed. no cap.


✨ NAME ✨

memoryBarrierImage β€” she controls the ordering of operations on image variables issued by a single shader invocation πŸ‘‘


πŸŽ€ DECLARATION πŸŽ€

void memoryBarrierImage(void);

that's it. that's the whole signature. no args, no drama, just vibes πŸ’–


πŸ¦‹ DESCRIPTION πŸ¦‹

okay so here's the tea β˜• memoryBarrierImage waits on the completion of all memory accesses resulting from the use of image variables, and then she just returns. no other effect. that's her whole thing, and she ate πŸ’…

when this function returns, the results of any modifications to the content of image variables will be visible to any access to the same buffer from other shader invocations. lowkey iconic ✨

in particular, any modifications made in one shader stage are guaranteed to be visible to accesses performed by shader invocations in subsequent stages when those invocations were triggered by the execution of the original shader invocation β€” like, for example, fragment shader invocations for a primitive resulting from a particular geometry shader invocation. it's giving "the pipeline is a group chat and everyone gets the message" 🫢


🌈 VERSION SUPPORT 🌈

okay so this is the vibe check for OpenGL Shading Language versions, and bestie, she was fashionably late to the party. every version before 4.30 said no, and she finally showed up at 4.30 and stayed for the rest πŸŽ€

  • memoryBarrierImage in 1.10 β€” - πŸ™ˆ
  • memoryBarrierImage in 1.20 β€” - πŸ™ˆ
  • memoryBarrierImage in 1.30 β€” - πŸ™ˆ
  • memoryBarrierImage in 1.40 β€” - πŸ™ˆ
  • memoryBarrierImage in 1.50 β€” - πŸ™ˆ
  • memoryBarrierImage in 3.30 β€” - πŸ™ˆ
  • memoryBarrierImage in 4.00 β€” - πŸ™ˆ
  • memoryBarrierImage in 4.10 β€” - πŸ™ˆ
  • memoryBarrierImage in 4.20 β€” - πŸ™ˆ
  • memoryBarrierImage in 4.30 β€” βœ” πŸ”₯
  • memoryBarrierImage in 4.40 β€” βœ” πŸ”₯
  • memoryBarrierImage in 4.50 β€” βœ” πŸ”₯
the - means she simply wasn't there yet, bestie. not a bug, just a timeline thing 🧚

πŸ‘‘ SEE ALSO πŸ‘‘

your other barrier besties, go say hi πŸ’œ

  • memoryBarrier()
  • memoryBarrierShared()
  • memoryBarrierBuffer()
  • groupMemoryBarrier()

Copyright Β© 2011-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 Β© 2012-2014 Khronos Group


and that's the whole page, bestie 🌟 this lil manual came from [FIXME: source] and it's dated 01/03/2018, still serving looks in MEMORYBARRIERIMAGE(3G). periodt πŸ’…πŸŽ€βœ¨

πŸ“¦ where this page comes from