diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2011-09-02 04:10:03 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2011-09-02 04:10:03 +0400 |
commit | 3c7dcd7a471002efef504a2b0856a86b76cdfaf5 (patch) | |
tree | 1ef2b57fe9e89669891eb02fb4676d28ce2b6288 /intern/cycles/device/device.h | |
parent | 5feb921eba6b954c838724880aeda2576106089d (diff) |
Cycles: compile opencl kernels in non-blocking thread, and don't crash on
build failure but show error message in status text.
Diffstat (limited to 'intern/cycles/device/device.h')
-rw-r--r-- | intern/cycles/device/device.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/intern/cycles/device/device.h b/intern/cycles/device/device.h index 87683ae4719..aa9cb9eb8f4 100644 --- a/intern/cycles/device/device.h +++ b/intern/cycles/device/device.h @@ -108,6 +108,9 @@ public: /* open shading language, only for CPU device */ virtual void *osl_memory() { return NULL; } + /* load/compile kernels, must be called before adding tasks */ + virtual bool load_kernels() { return true; } + /* tasks */ virtual void task_add(DeviceTask& task) = 0; virtual void task_wait() = 0; |