MCPcopy Create free account
hub / github.com/OGRECave/ogre / _dispatchCompute

Method _dispatchCompute

RenderSystems/GL3Plus/src/OgreGL3PlusRenderSystem.cpp:917–929  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

915 }
916
917 void GL3PlusRenderSystem::_dispatchCompute(const Vector3i& workgroupDim)
918 {
919 // if(mComputeProgramExecutions <= compute_execution_cap)
920
921 //FIXME give user control over when and what memory barriers are created
922 // if (mPreComputeMemoryBarrier)
923 OGRE_CHECK_GL_ERROR(glMemoryBarrier(GL_ALL_BARRIER_BITS));
924 OGRE_CHECK_GL_ERROR(glDispatchCompute(workgroupDim[0], workgroupDim[1], workgroupDim[2]));
925 // if (mPostComputeMemoryBarrier)
926 // OGRE_CHECK_GL_ERROR(glMemoryBarrier(toGL(MB_TEXTURE)));
927 // if (compute_execution_cap > 0)
928 // mComputeProgramExecutions++;
929 }
930
931 void GL3PlusRenderSystem::_render(const RenderOperation& op)
932 {

Callers 1

executeMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected