synthpic2.blender.gpu
¶
Blender GPU class.
Module Contents¶
Classes¶
Class to control Blenders access to GPU(s). |
- class synthpic2.blender.gpu.Gpu¶
Class to control Blenders access to GPU(s).
Use this class to enable gpu for rendering. It throws a warning if gpu is not available.
- Example:
>>> Gpu.enable()
- static _make_available() None ¶
Enable GPUs in the main settings of Blender, if available.
- classmethod enable() None ¶
Enable GPU for Cycles, if there is at least one available.
- static disable() None ¶
Disable GPU.
- static _is_gpu_available() bool ¶
Check, if a GPU is available.
- Returns:
is_gpu_available: True, if a GPU is available.