-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor: Refactored the exception reporting mechanism in nova
Previous exception management was relying on a mutable property in the manager class, now is replaced with a better design. We now keep the resource management class reference and the exception management class reference as properties of the nova_eng_internals structures. Only the exception_manager property is non const, as it relies on atomics to update error states, so the render process stays thread safe.
- Loading branch information
Showing
24 changed files
with
170 additions
and
163 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,25 @@ | ||
#include "DrawEngine.h" | ||
#include "Logger.h" | ||
#include "PerformanceLogger.h" | ||
#include "device_utils.h" | ||
#include "engine/nova_exception.h" | ||
#include "integrator/Integrator.h" | ||
#include "manager/NovaResourceManager.h" | ||
#include "Logger.h" | ||
#if defined(AXOMAE_USE_CUDA) | ||
#include "gpu/gpu.cuh" | ||
# include "gpu/gpu.cuh" | ||
#endif | ||
|
||
namespace nova { | ||
|
||
|
||
|
||
void gpu_draw(HdrBufferStruct *buffers, | ||
unsigned width_resolution, | ||
unsigned height_resolution, | ||
NovaRenderEngineInterface *engine_interface, | ||
const NovaResourceManager *nova_resources_manager) { | ||
nova::nova_eng_internals &nova_internal_structs) { | ||
#if defined(AXOMAE_USE_CUDA) | ||
launch_gpu_kernel(buffers, width_resolution, height_resolution, engine_interface, nova_resources_manager); | ||
launch_gpu_kernel(buffers, width_resolution, height_resolution, engine_interface, nova_internal_structs); | ||
#else | ||
LOG("Application built without CUDA. Enable AXOMAE_USE_CUDA in build if GPU is compatible.", LogLevel::ERROR); | ||
#endif | ||
} | ||
} | ||
|
||
|
||
|
||
} // namespace nova |
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
Oops, something went wrong.