Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/blender/addon/engine.py
| Show All 22 Lines | def _configure_argument_parser(): | ||||
| # No help because it conflicts with general Python scripts argument parsing | # No help because it conflicts with general Python scripts argument parsing | ||||
| parser = argparse.ArgumentParser(description="Cycles Addon argument parser", | parser = argparse.ArgumentParser(description="Cycles Addon argument parser", | ||||
| add_help=False) | add_help=False) | ||||
| parser.add_argument("--cycles-print-stats", | parser.add_argument("--cycles-print-stats", | ||||
| help="Print rendering statistics to stderr", | help="Print rendering statistics to stderr", | ||||
| action='store_true') | action='store_true') | ||||
| parser.add_argument("--cycles-device", | parser.add_argument("--cycles-device", | ||||
| help="Set the device to use for Cycles, overriding user preferences and the scene setting." | help="Set the device to use for Cycles, overriding user preferences and the scene setting." | ||||
| "Valid options are 'CPU', 'CUDA', 'OPTIX', or 'HIP'" | "Valid options are 'CPU', 'CUDA', 'OPTIX', 'HIP' or 'METAL'." | ||||
| "Additionally, you can append '+CPU' to any GPU type for hybrid rendering.", | "Additionally, you can append '+CPU' to any GPU type for hybrid rendering.", | ||||
| default=None) | default=None) | ||||
| return parser | return parser | ||||
| def _parse_command_line(): | def _parse_command_line(): | ||||
| import sys | import sys | ||||
| ▲ Show 20 Lines • Show All 209 Lines • Show Last 20 Lines | |||||