diff options
author | Patrick Mours <pmours@nvidia.com> | 2019-09-12 15:50:06 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-09-13 12:50:11 +0300 |
commit | a2b52dc5716a97e5413acbd6eefc9ce3788b6456 (patch) | |
tree | 7e6d6c17b73671e67c1f7fbdadd821b4541f820f /intern/cycles/CMakeLists.txt | |
parent | 53932f1f068501bfb095c407a7777a964dc5ec1c (diff) |
Cycles: add Optix device backend
This uses hardware-accelerated raytracing on NVIDIA RTX graphics cards.
It is still currently experimental. Most features are supported, but a few
are still missing like baking, branched path tracing and using CPU memory.
https://wiki.blender.org/wiki/Reference/Release_Notes/2.81/Cycles#NVIDIA_RTX
For building with Optix support, the Optix SDK must be installed. See here for
build instructions:
https://wiki.blender.org/wiki/Building_Blender/CUDA
Differential Revision: https://developer.blender.org/D5363
Diffstat (limited to 'intern/cycles/CMakeLists.txt')
-rw-r--r-- | intern/cycles/CMakeLists.txt | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/intern/cycles/CMakeLists.txt b/intern/cycles/CMakeLists.txt index 6a3ebd85378..25e8e124885 100644 --- a/intern/cycles/CMakeLists.txt +++ b/intern/cycles/CMakeLists.txt @@ -219,6 +219,24 @@ if(WITH_CYCLES_OSL) ) endif() +if(WITH_CYCLES_DEVICE_OPTIX) + find_package(OptiX) + + if(OPTIX_FOUND) + add_definitions(-DWITH_OPTIX) + include_directories( + SYSTEM + ${OPTIX_INCLUDE_DIR} + ) + + # Need pre-compiled CUDA binaries in the OptiX device + set(WITH_CYCLES_CUDA_BINARIES ON) + else() + message(STATUS "Optix not found, disabling it from Cycles") + set(WITH_CYCLES_DEVICE_OPTIX OFF) + endif() +endif() + if(WITH_CYCLES_EMBREE) add_definitions(-DWITH_EMBREE) add_definitions(-DEMBREE_STATIC_LIB) |