-
Notifications
You must be signed in to change notification settings - Fork 389
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[WIP] add debug tutorial and restore state of other tutorials
- Loading branch information
Showing
14 changed files
with
821 additions
and
261 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
## Copyright 2009-2021 Intel Corporation | ||
## SPDX-License-Identifier: Apache-2.0 | ||
|
||
IF (EMBREE_GEOMETRY_TRIANGLE) | ||
|
||
INCLUDE(tutorial) | ||
ADD_TUTORIAL(debug_device_memory) | ||
ADD_TUTORIAL_ISPC(debug_device_memory) | ||
ADD_TUTORIAL_SYCL(debug_device_memory) | ||
|
||
ENDIF() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
// Copyright 2009-2021 Intel Corporation | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
#include "../common/tutorial/tutorial.h" | ||
#include "../common/tutorial/benchmark_render.h" | ||
|
||
#if defined(EMBREE_SYCL_TUTORIAL) | ||
# define NAME "debug_device_memory_sycl" | ||
# define FEATURES FEATURE_RTCORE | FEATURE_SYCL | ||
#else | ||
# define NAME "debug_device_memory" | ||
# define FEATURES FEATURE_RTCORE | ||
#endif | ||
|
||
namespace embree | ||
{ | ||
struct Tutorial : public TutorialApplication | ||
{ | ||
Tutorial() | ||
: TutorialApplication(NAME,FEATURES) | ||
{ | ||
/* set default camera */ | ||
camera.from = Vec3fa(1.5f,1.5f,-1.5f); | ||
camera.to = Vec3fa(0.0f,0.0f,0.0f); | ||
} | ||
}; | ||
|
||
} | ||
|
||
int main(int argc, char** argv) { | ||
if (embree::TutorialBenchmark::benchmark(argc, argv)) { | ||
return embree::TutorialBenchmark(embree::renderBenchFunc<embree::Tutorial>).main(argc, argv, "debug_device_memory"); | ||
} | ||
return embree::Tutorial().main(argc,argv); | ||
} |
Oops, something went wrong.