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:
authorSybren A. Stüvel <sybren@blender.org>2021-12-07 19:47:35 +0300
committerSybren A. Stüvel <sybren@blender.org>2021-12-07 19:47:35 +0300
commita37dac0a884ff9acd36eb887e8cd36df501c337b (patch)
tree8bf3c7fc8a0718837824e4fcb7becbe53ac8cc8c
parentfee4b58627dab1acac2aef19189e5aee30aadba5 (diff)
Cycles: add Metal device type to `device_type_for_description`
Add a `DEVICE_METAL` case to the enum-value-to-string mapping function.
-rw-r--r--intern/cycles/integrator/path_trace.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/intern/cycles/integrator/path_trace.cpp b/intern/cycles/integrator/path_trace.cpp
index 14aede2c635..bdc18b1c0a1 100644
--- a/intern/cycles/integrator/path_trace.cpp
+++ b/intern/cycles/integrator/path_trace.cpp
@@ -1093,6 +1093,8 @@ static const char *device_type_for_description(const DeviceType type)
return "Dummy";
case DEVICE_MULTI:
return "Multi";
+ case DEVICE_METAL:
+ return "Metal";
}
return "UNKNOWN";