diff options
Diffstat (limited to 'tools/gfx/cuda/render-cuda.cpp')
| -rw-r--r-- | tools/gfx/cuda/render-cuda.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tools/gfx/cuda/render-cuda.cpp b/tools/gfx/cuda/render-cuda.cpp index 3e94f5571..dbdc27628 100644 --- a/tools/gfx/cuda/render-cuda.cpp +++ b/tools/gfx/cuda/render-cuda.cpp @@ -14,6 +14,19 @@ #include "../renderer-shared.h" #include "../render-graphics-common.h" #include "../slang-context.h" + +# ifdef RENDER_TEST_OPTIX + +// The `optix_stubs.h` header produces warnings when compiled with MSVC +# ifdef _MSC_VER +# pragma warning(disable: 4996) +# endif + +# include <optix.h> +# include <optix_function_table_definition.h> +# include <optix_stubs.h> +# endif + #endif namespace gfx |
