Lines Matching refs:num_groups
638 const GLuint num_groups[3] = { 1, 1, 1 }; in RunIteration() local
642 glBufferData(GL_DISPATCH_INDIRECT_BUFFER, sizeof(num_groups), num_groups, GL_STATIC_DRAW); in RunIteration()
746 std::string GenSource(const uvec3& local_size, const uvec3& num_groups) in GenSource() argument
748 const uvec3 global_size = local_size * num_groups; in GenSource()
786 bool RunIteration(const uvec3& local_size, const uvec3& num_groups, bool dispatch_indirect) in RunIteration() argument
790 m_program = CreateComputeProgram(GenSource(local_size, num_groups)); in RunIteration()
804 …local_size.x() * num_groups.x() * local_size.y() * num_groups.y() * local_size.z() * num_groups.z(… in RunIteration()
832 glBufferData(GL_DISPATCH_INDIRECT_BUFFER, sizeof(num_groups), &num_groups[0], GL_STATIC_DRAW); in RunIteration()
837 glDispatchCompute(num_groups.x(), num_groups.y(), num_groups.z()); in RunIteration()
847 for (GLuint z = 0; z < local_size.z() * num_groups.z(); ++z) in RunIteration()
849 for (GLuint y = 0; y < local_size.y() * num_groups.y(); ++y) in RunIteration()
851 for (GLuint x = 0; x < local_size.x() * num_groups.x(); ++x) in RunIteration()
853 const GLuint index = z * local_size.x() * num_groups.x() * local_size.y() * num_groups.y() + in RunIteration()
854 y * local_size.x() * num_groups.x() + x; in RunIteration()
934 std::string GenSource(const uvec3& local_size, const uvec3& num_groups) in GenSource() argument
936 const uvec3 global_size = local_size * num_groups; in GenSource()
957 bool RunIteration(const uvec3& local_size, const uvec3& num_groups, bool dispatch_indirect) in RunIteration() argument
961 m_program = CreateComputeProgram(GenSource(local_size, num_groups)); in RunIteration()
976 …local_size.x() * num_groups.x() * local_size.y() * num_groups.y() * local_size.z() * num_groups.z(… in RunIteration()
977 const GLint kWidth = static_cast<GLint>(local_size.x() * num_groups.x()); in RunIteration()
978 const GLint kHeight = static_cast<GLint>(local_size.y() * num_groups.y()); in RunIteration()
979 const GLint kDepth = static_cast<GLint>(local_size.z() * num_groups.z()); in RunIteration()
1017 glBufferData(GL_DISPATCH_INDIRECT_BUFFER, sizeof(num_groups), &num_groups[0], GL_STATIC_DRAW); in RunIteration()
1022 glDispatchCompute(num_groups.x(), num_groups.y(), num_groups.z()); in RunIteration()
1110 std::string GenSource(const uvec3& local_size, const uvec3& num_groups) in GenSource() argument
1112 const uvec3 global_size = local_size * num_groups; in GenSource()
1148 bool RunIteration(const uvec3& local_size, const uvec3& num_groups, bool dispatch_indirect) in RunIteration() argument
1152 m_program = CreateComputeProgram(GenSource(local_size, num_groups)); in RunIteration()
1157 const GLint kWidth = static_cast<GLint>(local_size.x() * num_groups.x()); in RunIteration()
1158 const GLint kHeight = static_cast<GLint>(local_size.y() * num_groups.y()); in RunIteration()
1159 const GLint kDepth = static_cast<GLint>(local_size.z() * num_groups.z()); in RunIteration()
1183 glBufferData(GL_DISPATCH_INDIRECT_BUFFER, sizeof(num_groups), &num_groups[0], GL_STATIC_DRAW); in RunIteration()
1188 glDispatchCompute(num_groups.x(), num_groups.y(), num_groups.z()); in RunIteration()
1334 std::string GenSource(const uvec3& local_size, const uvec3& num_groups) in GenSource() argument
1336 const uvec3 global_size = local_size * num_groups; in GenSource()
1350 bool RunIteration(const uvec3& local_size, const uvec3& num_groups, bool dispatch_indirect) in RunIteration() argument
1354 m_program = CreateComputeProgram(GenSource(local_size, num_groups)); in RunIteration()
1359 const GLint kWidth = static_cast<GLint>(local_size.x() * num_groups.x()); in RunIteration()
1360 const GLint kHeight = static_cast<GLint>(local_size.y() * num_groups.y()); in RunIteration()
1361 const GLint kDepth = static_cast<GLint>(local_size.z() * num_groups.z()); in RunIteration()
1389 glBufferData(GL_DISPATCH_INDIRECT_BUFFER, sizeof(num_groups), &num_groups[0], GL_STATIC_DRAW); in RunIteration()
1394 glDispatchCompute(num_groups.x(), num_groups.y(), num_groups.z()); in RunIteration()
1679 std::string GenSource(const uvec3& local_size, const uvec3& num_groups) in GenSource() argument
1681 const uvec3 global_size = local_size * num_groups; in GenSource()
1707 bool RunIteration(const uvec3& local_size, const uvec3& num_groups, bool dispatch_indirect) in RunIteration() argument
1711 m_program = CreateComputeProgram(GenSource(local_size, num_groups)); in RunIteration()
1717 …local_size.x() * num_groups.x() * local_size.y() * num_groups.y() * local_size.z() * num_groups.z(… in RunIteration()
1732 glBufferData(GL_DISPATCH_INDIRECT_BUFFER, sizeof(num_groups), &num_groups[0], GL_STATIC_DRAW); in RunIteration()
1737 glDispatchCompute(num_groups.x(), num_groups.y(), num_groups.z()); in RunIteration()
1749 if (!IsEqual(result[index], uvec4(num_groups.x(), num_groups.y(), num_groups.z(), 0))) in RunIteration()
1771 uvec3 expected = IndexTo3DCoord(index - 2 * kBufferSize, local_size.x() * num_groups.x(), in RunIteration()
1772 local_size.y() * num_groups.y()); in RunIteration()
1787 uvec3 expected = IndexTo3DCoord(index - 3 * kBufferSize, local_size.x() * num_groups.x(), in RunIteration()
1788 local_size.y() * num_groups.y()); in RunIteration()
1803 uvec3 expected = IndexTo3DCoord(index - 4 * kBufferSize, local_size.x() * num_groups.x(), in RunIteration()
1804 local_size.y() * num_groups.y()); in RunIteration()
1816 uvec3 coord = IndexTo3DCoord(index - 5 * kBufferSize, local_size.x() * num_groups.x(), in RunIteration()
1817 local_size.y() * num_groups.y()); in RunIteration()
2289 bool RunIteration(const GLuint num_groups, bool dispatch_indirect) in RunIteration() argument
2291 const GLuint kBufferSize = 128 * num_groups; in RunIteration()
2303 const GLuint groups[3] = { num_groups, 1, 1 }; in RunIteration()
2312 glDispatchCompute(num_groups, 1, 1); in RunIteration()
3197 std::string GenSource(const uvec3& local_size, const uvec3& num_groups) in GenSource() argument
3199 const uvec3 global_size = local_size * num_groups; in GenSource()
3226 bool RunIteration(const uvec3& local_size, const uvec3& num_groups, bool dispatch_indirect) in RunIteration() argument
3230 m_program = CreateComputeProgram(GenSource(local_size, num_groups)); in RunIteration()
3236 …local_size.x() * num_groups.x() * local_size.y() * num_groups.y() * local_size.z() * num_groups.z(… in RunIteration()
3253 glBufferData(GL_DISPATCH_INDIRECT_BUFFER, sizeof(num_groups), &num_groups[0], GL_STATIC_DRAW); in RunIteration()
3258 glDispatchCompute(num_groups.x(), num_groups.y(), num_groups.z()); in RunIteration()
3409 const GLuint num_groups[3] = { 1, 1, 1 }; in RunIteration() local
3413 glBufferData(GL_DISPATCH_INDIRECT_BUFFER, sizeof(num_groups), &num_groups[0], GL_STATIC_DRAW); in RunIteration()
5262 const GLuint num_groups[6] = { 1, 1, 1, 1, 1, 1 }; in Run() local
5265 glBufferData(GL_DISPATCH_INDIRECT_BUFFER, sizeof(num_groups), num_groups, GL_STATIC_COPY); in Run()