Initial support of single GPU rendering when multiple cards with same name exists

This commit is contained in:
2017-10-23 16:50:15 +02:00
parent 6fca776979
commit c5f7365d8a
5 changed files with 65 additions and 14 deletions

View File

@@ -7,6 +7,7 @@ class Context:
__slots__ = ('blender',
'device_type',
'device_name',
'device_single',
'scenes',
'scenes_dir',
'configure_script',
@@ -19,6 +20,8 @@ class Context:
self.device_type = 'CPU'
# Name of the device to render on.
self.device_name = 'NAME'
# Use single device when there are multiple one matching the name
self.device_single = False
# By default we use empty list, it is up to the user to fill it in.
self.scenes = []
# It is up to the user to provide proper path to scenes.