Add Heterogeneous implementation.

This commit is contained in:
hal8174 2024-06-05 16:58:06 +02:00
parent f702e82b4f
commit 97dbc2db13
4 changed files with 145 additions and 20 deletions

View file

@ -130,7 +130,7 @@ protected:
double clickX = 0;
double clickY = 0;
float speed = 10;
float speed = 400;
Vec3f moveDelta = {0, 0, 0};
RayStats* g_stats = nullptr;

View file

@ -54,6 +54,11 @@ namespace embree
data.resize(res.x * res.y * res.z);
file.read(reinterpret_cast<char*>(data.data()), data.size() * sizeof(float));
float max = 0;
for (size_t i = 0; i < res.x * res.y * res.z; i++) {
max = std::max(data[i], max);
}
printf("max:\t%f\n", max);
file.close();
}