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:
authorSergey Sharybin <sergey@blender.org>2021-10-06 12:43:58 +0300
committerSergey Sharybin <sergey@blender.org>2021-10-11 13:27:28 +0300
commit0ceded7bc97852564c4d26951b41853e8289925e (patch)
tree4f7d69f3c596f63b39c031bb021281b5f88f6820 /intern/cycles/render/osl.h
parentf9755add6544667e04b2b0d39c7c3bc794b6bdb8 (diff)
Cycles: Introduce scene host_update function
The longer-term goal is to separate host-only scene update from device update: make it possible to make kernel features depend on actual scene state and flags. This change makes it so shaders are compiled before kernel load, making checks like "has_volume" available at the kernel features calculation state. No functional changes are expected at this point. Differential Revision: https://developer.blender.org/D12795
Diffstat (limited to 'intern/cycles/render/osl.h')
-rw-r--r--intern/cycles/render/osl.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/intern/cycles/render/osl.h b/intern/cycles/render/osl.h
index dfeec54d915..019dca16df7 100644
--- a/intern/cycles/render/osl.h
+++ b/intern/cycles/render/osl.h
@@ -79,6 +79,8 @@ class OSLShaderManager : public ShaderManager {
return true;
}
+ void host_update_specific(Device *device, Scene *scene, Progress &progress) override;
+
void device_update_specific(Device *device,
DeviceScene *dscene,
Scene *scene,