From a2b52dc5716a97e5413acbd6eefc9ce3788b6456 Mon Sep 17 00:00:00 2001 From: Patrick Mours Date: Thu, 12 Sep 2019 14:50:06 +0200 Subject: 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 --- intern/cycles/CMakeLists.txt | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'intern/cycles/CMakeLists.txt') 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) -- cgit v1.2.3