[osg-users] [Compute Program executed on useprogram :/?!]
Robert Osfield
robert.osfield at gmail.com
Mon Nov 27 00:08:35 PST 2017
HI Julien,
On 25 November 2017 at 19:02, Julien Valentin
<julienvalentin51 at gmail.com> wrote:
> If I don't misunderstood:
> Using a dedicated class for CS would introducing a new base class "Dispatchable" for Drawable(vas) and DispatchCompute(no vas) that would replace Drawable as Renderleaf.
> Is that what you think about?
Drawable is the base class that wraps up dispatch, I'm not going to go
have a base class for a base class just for the purpose of
DispatchCompute. We have to avoid complicating the OSG class
structure and avoid any CPU over-head associated with adding features,
especially niche ones.
The issue of VAS is one I'll need to look at, this will need to be
switched off for DispatchCompute. I am not at my dev machine right
now so will look into this later.
Whatever solution we end up with we'll need an osg::DispatchCompute
that wraps up glDispatchCommpute and it's parameters, this could be
called explicitly as a callback or state attribute. The next step
would be to make DispatchCompute a Drawable and work out how to switch
off the VAS/DispalyList support.
Robert.
More information about the osg-users
mailing list