Cleaned up code layout
This commit is contained in:
parent
021dca0072
commit
cd0744ddfa
@ -1,12 +1,16 @@
|
||||
#include <osg/ComputeDispatch>
|
||||
|
||||
using namespace osg;
|
||||
|
||||
|
||||
ComputeDispatch::ComputeDispatch(const ComputeDispatch&o,const osg::CopyOp& copyop): Drawable(o,copyop), _numGroupsX(o._numGroupsX), _numGroupsY(o._numGroupsY), _numGroupsZ(o._numGroupsZ)
|
||||
ComputeDispatch::ComputeDispatch(const ComputeDispatch&o,const osg::CopyOp& copyop):
|
||||
Drawable(o,copyop),
|
||||
_numGroupsX(o._numGroupsX),
|
||||
_numGroupsY(o._numGroupsY),
|
||||
_numGroupsZ(o._numGroupsZ)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void ComputeDispatch::drawImplementation(RenderInfo& renderInfo) const{
|
||||
void ComputeDispatch::drawImplementation(RenderInfo& renderInfo) const
|
||||
{
|
||||
renderInfo.getState()->get<GLExtensions>()->glDispatchCompute(_numGroupsX, _numGroupsY, _numGroupsZ);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user