Add Heterogeneous implementation.
This commit is contained in:
parent
f702e82b4f
commit
97dbc2db13
4 changed files with 145 additions and 20 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue