Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/device/device_cpu.cpp
| Context not available. | |||||
| public: | public: | ||||
| TaskPool task_pool; | TaskPool task_pool; | ||||
| KernelGlobals kernel_globals; | KernelGlobals kernel_globals; | ||||
| #ifdef WITH_OSL | #ifdef WITH_OSL | ||||
| OSLGlobals osl_globals; | OSLGlobals osl_globals; | ||||
| #endif | #endif | ||||
| CPUDevice(Stats &stats) : Device(stats) | CPUDevice(DeviceInfo& info, Stats &stats, bool background) | ||||
| : Device(info, stats, background) | |||||
| { | { | ||||
| #ifdef WITH_OSL | #ifdef WITH_OSL | ||||
| kernel_globals.osl = &osl_globals; | kernel_globals.osl = &osl_globals; | ||||
| Context not available. | |||||
| } | } | ||||
| }; | }; | ||||
| Device *device_cpu_create(DeviceInfo& info, Stats &stats) | Device *device_cpu_create(DeviceInfo& info, Stats &stats, bool background) | ||||
| { | { | ||||
| return new CPUDevice(stats); | return new CPUDevice(info, stats, background); | ||||
| } | } | ||||
| void device_cpu_info(vector<DeviceInfo>& devices) | void device_cpu_info(vector<DeviceInfo>& devices) | ||||
| Context not available. | |||||