|
@ -2,8 +2,6 @@ |
|
|
|
|
|
|
|
|
namespace Blobt\Luxcore\scene; |
|
|
namespace Blobt\Luxcore\scene; |
|
|
|
|
|
|
|
|
use ParentIterator; |
|
|
|
|
|
|
|
|
|
|
|
class OpenCL extends BaseCfg |
|
|
class OpenCL extends BaseCfg |
|
|
{ |
|
|
{ |
|
|
|
|
|
|
|
@ -20,7 +18,7 @@ class OpenCL extends BaseCfg |
|
|
/** |
|
|
/** |
|
|
* @var string 在GPU渲染模式下,使用哪些GPU设备 |
|
|
* @var string 在GPU渲染模式下,使用哪些GPU设备 |
|
|
*/ |
|
|
*/ |
|
|
public $devicesSelect = '10'; |
|
|
|
|
|
|
|
|
private $devicesSelect = '10'; |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* @var integer 在GPU渲染模式下,CPU是否渲染,并以多少线程渲染 |
|
|
* @var integer 在GPU渲染模式下,CPU是否渲染,并以多少线程渲染 |
|
@ -30,14 +28,16 @@ class OpenCL extends BaseCfg |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* 以 RenderDevices类 的两个静态属性初始化变量 “$cpuUse”和“$gpuUse” |
|
|
|
|
|
|
|
|
* 以 RenderDevices类 的两个静态属性初始化变量 “$cpuUse”和“$gpuUse”参数 |
|
|
*/ |
|
|
*/ |
|
|
public function __construct() |
|
|
public function __construct() |
|
|
{ |
|
|
{ |
|
|
self::$cpuUse = RenderDevices::$cpuSwitch; |
|
|
|
|
|
self::$gpuUse = RenderDevices::$gpuSwitch; |
|
|
|
|
|
|
|
|
self::refreshConfig(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
* 从 RenderDevices类 的两个静态属性刷新变量 “$cpuUse”和“$gpuUse”参数 |
|
|
|
|
|
*/ |
|
|
public static function refreshConfig() |
|
|
public static function refreshConfig() |
|
|
{ |
|
|
{ |
|
|
self::$cpuUse = RenderDevices::$cpuSwitch; |
|
|
self::$cpuUse = RenderDevices::$cpuSwitch; |
|
|