Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Dinges <blender@dingto.org>2016-05-07 00:11:41 +0300
committerThomas Dinges <blender@dingto.org>2016-05-07 00:13:33 +0300
commit4422b3f9199cdd13c162ebc16c9e1d1b18f76bae (patch)
treee1126c08d85fc4ce51be98b132ce5832f2e227cd /intern/cycles/device/device.h
parent734d1aec3f93b8757533284330afc2ac651442bd (diff)
Some fixes for CUDA runtime compile:
* When Baking wasn't used we got an error. * On top of Volume Nodes (NODES_FEATURE_VOLUME), we now also check if we need volume sampling code, so we can disable that as well and save some further compilation time.
Diffstat (limited to 'intern/cycles/device/device.h')
-rw-r--r--intern/cycles/device/device.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/intern/cycles/device/device.h b/intern/cycles/device/device.h
index 30d0003b940..4c1b7224837 100644
--- a/intern/cycles/device/device.h
+++ b/intern/cycles/device/device.h
@@ -103,6 +103,9 @@ public:
/* Use subsurface scattering materials. */
bool use_subsurface;
+ /* Use volume materials. */
+ bool use_volume;
+
/* Use branched integrator. */
bool use_integrator_branched;
@@ -118,6 +121,7 @@ public:
use_camera_motion = false;
use_baking = false;
use_subsurface = false;
+ use_volume = false;
use_integrator_branched = false;
}
@@ -132,6 +136,7 @@ public:
use_camera_motion == requested_features.use_camera_motion &&
use_baking == requested_features.use_baking &&
use_subsurface == requested_features.use_subsurface &&
+ use_volume == requested_features.use_volume &&
use_integrator_branched == requested_features.use_integrator_branched);
}
@@ -161,6 +166,9 @@ public:
if(!use_baking) {
build_options += " -D__NO_BAKING__";
}
+ if(!use_volume) {
+ build_options += " -D__NO_VOLUME__";
+ }
if(!use_subsurface) {
build_options += " -D__NO_SUBSURFACE__";
}