Lines Matching defs:local_size

744 	std::string GenSource(const uvec3& local_size, const uvec3& num_groups)
746 const uvec3 global_size = local_size * num_groups;
748 ss << NL "layout(local_size_x = " << local_size.x() << ", local_size_y = " << local_size.y()
749 << ", local_size_z = " << local_size.z() << ") in;" NL "const uvec3 kGlobalSize = uvec3(" << global_size.x()
784 bool RunIteration(const uvec3& local_size, const uvec3& num_groups, bool dispatch_indirect)
788 m_program = CreateComputeProgram(GenSource(local_size, num_groups));
811 local_size.x() * num_groups.x() * local_size.y() * num_groups.y() * local_size.z() * num_groups.z();
852 for (GLuint z = 0; z < local_size.z() * num_groups.z(); ++z)
854 for (GLuint y = 0; y < local_size.y() * num_groups.y(); ++y)
856 for (GLuint x = 0; x < local_size.x() * num_groups.x(); ++x)
858 const GLuint index = z * local_size.x() * num_groups.x() * local_size.y() * num_groups.y() +
859 y * local_size.x() * num_groups.x() + x;
939 std::string GenSource(const uvec3& local_size, const uvec3& num_groups)
941 const uvec3 global_size = local_size * num_groups;
943 ss << NL "layout(local_size_x = " << local_size.x() << ", local_size_y = " << local_size.y()
944 << ", local_size_z = " << local_size.z() << ") in;" NL "const uvec3 kGlobalSize = uvec3(" << global_size.x()
978 bool RunIteration(const uvec3& local_size, const uvec3& num_groups, bool dispatch_indirect)
982 m_program = CreateComputeProgram(GenSource(local_size, num_groups));
997 local_size.x() * num_groups.x() * local_size.y() * num_groups.y() * local_size.z() * num_groups.z();
998 const GLint kWidth = static_cast<GLint>(local_size.x() * num_groups.x());
999 const GLint kHeight = static_cast<GLint>(local_size.y() * num_groups.y());
1000 const GLint kDepth = static_cast<GLint>(local_size.z() * num_groups.z());
1171 std::string GenSource(const uvec3& local_size, const uvec3& num_groups)
1173 const uvec3 global_size = local_size * num_groups;
1175 ss << NL "layout(local_size_x = " << local_size.x() << ", local_size_y = " << local_size.y()
1176 << ", local_size_z = " << local_size.z()
1189 bool RunIteration(const uvec3& local_size, const uvec3& num_groups, bool dispatch_indirect)
1193 m_program = CreateComputeProgram(GenSource(local_size, num_groups));
1203 const GLint kWidth = static_cast<GLint>(local_size.x() * num_groups.x());
1204 const GLint kHeight = static_cast<GLint>(local_size.y() * num_groups.y());
1205 const GLint kDepth = static_cast<GLint>(local_size.z() * num_groups.z());
1377 std::string GenSource(const uvec3& local_size, const uvec3& num_groups)
1379 const uvec3 global_size = local_size * num_groups;
1381 ss << NL "layout(local_size_x = " << local_size.x() << ", local_size_y = " << local_size.y()
1382 << ", local_size_z = " << local_size.z()
1393 bool RunIteration(const uvec3& local_size, const uvec3& num_groups, bool dispatch_indirect)
1397 m_program = CreateComputeProgram(GenSource(local_size, num_groups));
1414 const GLint kWidth = static_cast<GLint>(local_size.x() * num_groups.x());
1415 const GLint kHeight = static_cast<GLint>(local_size.y() * num_groups.y());
1416 const GLint kDepth = static_cast<GLint>(local_size.z() * num_groups.z());
2004 std::string GenSource(const uvec3& local_size, const uvec3& num_groups)
2006 const uvec3 global_size = local_size * num_groups;
2008 ss << NL "layout(local_size_x = " << local_size.x() << ", local_size_y = " << local_size.y()
2009 << ", local_size_z = " << local_size.z() << ") in;" NL "const uvec3 kGlobalSize = uvec3(" << global_size.x()
2032 bool RunIteration(const uvec3& local_size, const uvec3& num_groups, bool dispatch_indirect)
2036 m_program = CreateComputeProgram(GenSource(local_size, num_groups));
2042 local_size.x() * num_groups.x() * local_size.y() * num_groups.y() * local_size.z() * num_groups.z();
2083 if (!IsEqual(data[index], uvec4(local_size.x(), local_size.y(), local_size.z(), 0)))
2094 uvec3 expected = IndexTo3DCoord(index - 2 * kBufferSize, local_size.x() * num_groups.x(),
2095 local_size.y() * num_groups.y());
2096 expected.x() /= local_size.x();
2097 expected.y() /= local_size.y();
2098 expected.z() /= local_size.z();
2109 uvec3 expected = IndexTo3DCoord(index - 3 * kBufferSize, local_size.x() * num_groups.x(),
2110 local_size.y() * num_groups.y());
2111 expected.x() %= local_size.x();
2112 expected.y() %= local_size.y();
2113 expected.z() %= local_size.z();
2125 uvec3 expected = IndexTo3DCoord(index - 4 * kBufferSize, local_size.x() * num_groups.x(),
2126 local_size.y() * num_groups.y());
2138 uvec3 coord = IndexTo3DCoord(index - 5 * kBufferSize, local_size.x() * num_groups.x(),
2139 local_size.y() * num_groups.y());
2140 const GLuint expected = (coord.x() % local_size.x()) + (coord.y() % local_size.y()) * local_size.x() +
2141 (coord.z() % local_size.z()) * local_size.x() * local_size.y();
3559 std::string GenSource(const uvec3& local_size, const uvec3& num_groups)
3561 const uvec3 global_size = local_size * num_groups;
3563 ss << NL "layout(local_size_x = " << local_size.x() << ", local_size_y = " << local_size.y()
3564 << ", local_size_z = " << local_size.z() << ") in;" NL "const uvec3 kGlobalSize = uvec3(" << global_size.x()
3589 bool RunIteration(const uvec3& local_size, const uvec3& num_groups, bool dispatch_indirect)
3593 m_program = CreateComputeProgram(GenSource(local_size, num_groups));
3599 local_size.x() * num_groups.x() * local_size.y() * num_groups.y() * local_size.z() * num_groups.z();
3714 std::string GenSource(const uvec3& local_size)
3717 ss << NL "layout(local_size_x = " << local_size.x() << ", local_size_y = " << local_size.y()
3718 << ", local_size_z = " << local_size.z()
3720 << local_size.x() * local_size.y() * local_size.z() << "];" NL " int g_int_out["
3721 << local_size.x() * local_size.y() * local_size.z() << "];" NL "};" NL "shared uint g_shared_uint["
3722 << local_size.x() * local_size.y() * local_size.z() << "];" NL "shared int g_shared_int["
3723 << local_size.x() * local_size.y() * local_size.z()
3743 bool RunIteration(const uvec3& local_size, bool dispatch_indirect)
3747 m_program = CreateComputeProgram(GenSource(local_size));
3752 const GLuint kBufferSize = local_size.x() * local_size.y() * local_size.z();