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:
authorCampbell Barton <campbell@blender.org>2022-06-30 05:14:23 +0300
committerCampbell Barton <campbell@blender.org>2022-06-30 05:14:23 +0300
commitfeeb8310c80ec991d1dd060737dc30f3e1cff93a (patch)
tree2ec4ec76d9bd725424384500b82b25fa07566a1b /intern/cycles/blender/addon/ui.py
parentb6c28002acb802dcad8a23c0721209103f00f686 (diff)
Cleanup: format
Diffstat (limited to 'intern/cycles/blender/addon/ui.py')
-rw-r--r--intern/cycles/blender/addon/ui.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/intern/cycles/blender/addon/ui.py b/intern/cycles/blender/addon/ui.py
index 5b8c3960c82..77da3f36685 100644
--- a/intern/cycles/blender/addon/ui.py
+++ b/intern/cycles/blender/addon/ui.py
@@ -110,11 +110,13 @@ def use_optix(context):
return (get_device_type(context) == 'OPTIX' and cscene.device == 'GPU')
+
def use_oneapi(context):
cscene = context.scene.cycles
return (get_device_type(context) == 'ONEAPI' and cscene.device == 'GPU')
+
def use_multi_device(context):
cscene = context.scene.cycles
if cscene.device != 'GPU':