Skip to content

Commit

Permalink
Fix build issue when using OptiX 7.0.
Browse files Browse the repository at this point in the history
Signed-off-by: Tim Grant <[email protected]>
  • Loading branch information
tgrant-nv committed Sep 21, 2024
1 parent 4fe5477 commit 49e8fc7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/testrender/optixraytracer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -343,8 +343,10 @@ OptixRaytracer::create_modules()
= OPTIX_EXCEPTION_FLAG_STACK_OVERFLOW;
m_pipeline_compile_options.pipelineLaunchParamsVariableName
= "render_params";
#if OPTIX_VERSION >= 70100
m_pipeline_compile_options.usesPrimitiveTypeFlags
= OPTIX_PRIMITIVE_TYPE_FLAGS_TRIANGLE;
#endif

// Set the module compile options
m_module_compile_options.maxRegisterCount
Expand Down

0 comments on commit 49e8fc7

Please sign in to comment.