[osg-users] [Compute Program executed on useprogram :/?!]
Julien Valentin
julienvalentin51 at gmail.com
Fri Nov 17 17:45:22 PST 2017
...Perhaps a flexier solution would be to let dispatchcompute feature be a drawable::drawcallback ...
mp3butcher wrote:
> Hi all
> I ran into some strange behavior debuging an app: It appears that compute shader are executed at each pcp.useprogram() call...
> I don't think it's a correct behavior since uniforms requires the po to be bound before to be set...
> It yield an undefined behavior in GLObjectVisitor when compute prog are executed whithout their uniforms setted (and the same problem should also appears in State::apply)
>
> I'm gonna pr a patch in order remove glDispatchCompute from useprogram tag compute program when cs added and add a if(p.iscomputeshader)glDispatchCompute at the end of state::apply but would like Robert insight about it
>
> Thank you!
>
> Cheers,
> Julien
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=72405#72405
More information about the osg-users
mailing list