[osg-users] glMemoryBarrier
PaweÅ KsiÄżopolski
pawel.ksiezopolsk at gmail.com
Mon Sep 24 04:13:55 PDT 2018
sergio2k18 wrote:
>
> 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
More information about the osg-users
mailing list