Discussion:
[osg-users] glMemoryBarrier
Tyler Durden
2018-09-24 08:19:13 UTC
Permalink
Hi,

I have two compute shader and i need that second cs must wait until first cs finished his work. Do i have to use memory barriers between each dispatch compute invocation? How can i invoke glMemoryBarrier in openscenegraph?

Thank you!

Cheers,
Tyler

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=74964#74964
Paweł KsięŌopolski
2018-09-24 11:13:55 UTC
Permalink
Post by Tyler Durden
I have two compute shader and i need that second cs must wait until first cs finished his work. Do i have to use memory barriers between each dispatch compute invocation? How can i invoke glMemoryBarrier in openscenegraph?
You certainly should use memory barrier in this case.

In osggpucull example there is InvokeMemoryBarrier draw callback, that you may connect to your osg::DispatchCompute.

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=74966#74966

Loading...