Lines Matching refs:num_groups
635 const GLuint num_groups[3] = { 1, 1, 1 }; in RunIteration() local
639 glBufferData(GL_DISPATCH_INDIRECT_BUFFER, sizeof(num_groups), num_groups, GL_STATIC_DRAW); in RunIteration()
744 std::string GenSource(const uvec3& local_size, const uvec3& num_groups) in GenSource() argument
746 const uvec3 global_size = local_size * num_groups; in GenSource()
784 bool RunIteration(const uvec3& local_size, const uvec3& num_groups, bool dispatch_indirect) in RunIteration() argument
788 m_program = CreateComputeProgram(GenSource(local_size, num_groups)); in RunIteration()
811 …local_size.x() * num_groups.x() * local_size.y() * num_groups.y() * local_size.z() * num_groups.z(… in RunIteration()
839 glBufferData(GL_DISPATCH_INDIRECT_BUFFER, sizeof(num_groups), &num_groups[0], GL_STATIC_DRAW); in RunIteration()
844 glDispatchCompute(num_groups.x(), num_groups.y(), num_groups.z()); in RunIteration()
852 for (GLuint z = 0; z < local_size.z() * num_groups.z(); ++z) in RunIteration()
854 for (GLuint y = 0; y < local_size.y() * num_groups.y(); ++y) in RunIteration()
856 for (GLuint x = 0; x < local_size.x() * num_groups.x(); ++x) in RunIteration()
858 const GLuint index = z * local_size.x() * num_groups.x() * local_size.y() * num_groups.y() + in RunIteration()
859 y * local_size.x() * num_groups.x() + x; in RunIteration()
939 std::string GenSource(const uvec3& local_size, const uvec3& num_groups) in GenSource() argument
941 const uvec3 global_size = local_size * num_groups; in GenSource()
978 bool RunIteration(const uvec3& local_size, const uvec3& num_groups, bool dispatch_indirect) in RunIteration() argument
982 m_program = CreateComputeProgram(GenSource(local_size, num_groups)); in RunIteration()
997 …local_size.x() * num_groups.x() * local_size.y() * num_groups.y() * local_size.z() * num_groups.z(… in RunIteration()
998 const GLint kWidth = static_cast<GLint>(local_size.x() * num_groups.x()); in RunIteration()
999 const GLint kHeight = static_cast<GLint>(local_size.y() * num_groups.y()); in RunIteration()
1000 const GLint kDepth = static_cast<GLint>(local_size.z() * num_groups.z()); in RunIteration()
1083 glBufferData(GL_DISPATCH_INDIRECT_BUFFER, sizeof(num_groups), &num_groups[0], GL_STATIC_DRAW); in RunIteration()
1088 glDispatchCompute(num_groups.x(), num_groups.y(), num_groups.z()); in RunIteration()
1171 std::string GenSource(const uvec3& local_size, const uvec3& num_groups) in GenSource() argument
1173 const uvec3 global_size = local_size * num_groups; in GenSource()
1189 bool RunIteration(const uvec3& local_size, const uvec3& num_groups, bool dispatch_indirect) in RunIteration() argument
1193 m_program = CreateComputeProgram(GenSource(local_size, num_groups)); in RunIteration()
1203 const GLint kWidth = static_cast<GLint>(local_size.x() * num_groups.x()); in RunIteration()
1204 const GLint kHeight = static_cast<GLint>(local_size.y() * num_groups.y()); in RunIteration()
1205 const GLint kDepth = static_cast<GLint>(local_size.z() * num_groups.z()); in RunIteration()
1228 glBufferData(GL_DISPATCH_INDIRECT_BUFFER, sizeof(num_groups), &num_groups[0], GL_STATIC_DRAW); in RunIteration()
1233 glDispatchCompute(num_groups.x(), num_groups.y(), num_groups.z()); in RunIteration()
1377 std::string GenSource(const uvec3& local_size, const uvec3& num_groups) in GenSource() argument
1379 const uvec3 global_size = local_size * num_groups; in GenSource()
1393 bool RunIteration(const uvec3& local_size, const uvec3& num_groups, bool dispatch_indirect) in RunIteration() argument
1397 m_program = CreateComputeProgram(GenSource(local_size, num_groups)); in RunIteration()
1414 const GLint kWidth = static_cast<GLint>(local_size.x() * num_groups.x()); in RunIteration()
1415 const GLint kHeight = static_cast<GLint>(local_size.y() * num_groups.y()); in RunIteration()
1416 const GLint kDepth = static_cast<GLint>(local_size.z() * num_groups.z()); in RunIteration()
1446 glBufferData(GL_DISPATCH_INDIRECT_BUFFER, sizeof(num_groups), &num_groups[0], GL_STATIC_DRAW); in RunIteration()
1451 glDispatchCompute(num_groups.x(), num_groups.y(), num_groups.z()); in RunIteration()
2004 std::string GenSource(const uvec3& local_size, const uvec3& num_groups) in GenSource() argument
2006 const uvec3 global_size = local_size * num_groups; in GenSource()
2032 bool RunIteration(const uvec3& local_size, const uvec3& num_groups, bool dispatch_indirect) in RunIteration() argument
2036 m_program = CreateComputeProgram(GenSource(local_size, num_groups)); in RunIteration()
2042 …local_size.x() * num_groups.x() * local_size.y() * num_groups.y() * local_size.z() * num_groups.z(… in RunIteration()
2057 glBufferData(GL_DISPATCH_INDIRECT_BUFFER, sizeof(num_groups), &num_groups[0], GL_STATIC_DRAW); in RunIteration()
2062 glDispatchCompute(num_groups.x(), num_groups.y(), num_groups.z()); in RunIteration()
2072 if (!IsEqual(data[index], uvec4(num_groups.x(), num_groups.y(), num_groups.z(), 0))) in RunIteration()
2094 uvec3 expected = IndexTo3DCoord(index - 2 * kBufferSize, local_size.x() * num_groups.x(), in RunIteration()
2095 local_size.y() * num_groups.y()); in RunIteration()
2109 uvec3 expected = IndexTo3DCoord(index - 3 * kBufferSize, local_size.x() * num_groups.x(), in RunIteration()
2110 local_size.y() * num_groups.y()); in RunIteration()
2125 uvec3 expected = IndexTo3DCoord(index - 4 * kBufferSize, local_size.x() * num_groups.x(), in RunIteration()
2126 local_size.y() * num_groups.y()); in RunIteration()
2138 uvec3 coord = IndexTo3DCoord(index - 5 * kBufferSize, local_size.x() * num_groups.x(), in RunIteration()
2139 local_size.y() * num_groups.y()); in RunIteration()
2660 bool RunIteration(const GLuint num_groups, bool dispatch_indirect) in RunIteration() argument
2662 const GLuint kBufferSize = 256 * num_groups; in RunIteration()
2674 const GLuint groups[3] = { num_groups, 1, 1 }; in RunIteration()
2683 glDispatchCompute(num_groups, 1, 1); in RunIteration()
3557 std::string GenSource(const uvec3& local_size, const uvec3& num_groups) in GenSource() argument
3559 const uvec3 global_size = local_size * num_groups; in GenSource()
3587 bool RunIteration(const uvec3& local_size, const uvec3& num_groups, bool dispatch_indirect) in RunIteration() argument
3591 m_program = CreateComputeProgram(GenSource(local_size, num_groups)); in RunIteration()
3597 …local_size.x() * num_groups.x() * local_size.y() * num_groups.y() * local_size.z() * num_groups.z(… in RunIteration()
3612 glBufferData(GL_DISPATCH_INDIRECT_BUFFER, sizeof(num_groups), &num_groups[0], GL_STATIC_DRAW); in RunIteration()
3617 glDispatchCompute(num_groups.x(), num_groups.y(), num_groups.z()); in RunIteration()
3760 const GLuint num_groups[3] = { 1, 1, 1 }; in RunIteration() local
3764 glBufferData(GL_DISPATCH_INDIRECT_BUFFER, sizeof(num_groups), &num_groups[0], GL_STATIC_DRAW); in RunIteration()
6197 const GLuint num_groups[6] = { 1, 1, 1, 1, 1, 1 }; in Run() local
6200 glBufferData(GL_DISPATCH_INDIRECT_BUFFER, sizeof(num_groups), num_groups, GL_STATIC_COPY); in Run()