Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Async cuda execution and optix denoiser #1347

Merged
merged 14 commits into from
Mar 8, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions CMakePresets.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@
"cacheVariables": {
"CMAKE_BUILD_TYPE": "RelWithDebInfo",
"YOCTO_APPS": "ON",
"YOCTO_EMBREE": "OFF",
"YOCTO_DENOISE": "OFF",
"YOCTO_EMBREE": "ON",
"YOCTO_DENOISE": "ON",
"YOCTO_OPENGL": "ON",
"YOCTO_CUDA": "ON"
},
Expand All @@ -104,8 +104,8 @@
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"YOCTO_APPS": "ON",
"YOCTO_EMBREE": "OFF",
"YOCTO_DENOISE": "OFF",
"YOCTO_EMBREE": "ON",
"YOCTO_DENOISE": "ON",
"YOCTO_OPENGL": "ON",
"YOCTO_CUDA": "ON"
},
Expand Down
8 changes: 4 additions & 4 deletions apps/ycutrace/ycutrace.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -124,19 +124,19 @@ void run_render(const render_params& params_) {

// upload scene to the gpu
timer = simple_timer{};
auto cuscene = make_cutrace_scene(scene, params__);
auto cuscene = make_cutrace_scene(context, scene, params__);
print_info("upload scene: {}", elapsed_formatted(timer));

// build bvh
timer = simple_timer{};
auto bvh = make_cutrace_bvh(context, cuscene, scene, params__);
auto bvh = make_cutrace_bvh(context, cuscene, params__);
print_info("build bvh: {}", elapsed_formatted(timer));

// init lights
auto lights = make_cutrace_lights(scene, params__);
auto lights = make_cutrace_lights(context, scene, params__);

// state
auto state = make_cutrace_state(scene, params__);
auto state = make_cutrace_state(context, scene, params__);

// render
timer = simple_timer{};
Expand Down
Loading