Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/blender/blender_python.cpp
| Context not available. | |||||
| return (void*)mod; | return (void*)mod; | ||||
| } | } | ||||
| CCLDeviceInfo *CCL_compute_device_list(int opencl) | CCLDeviceInfo *CCL_compute_device_list(int device_type) | ||||
| { | { | ||||
| ccl::DeviceType type = (opencl)? ccl::DEVICE_OPENCL: ccl::DEVICE_CUDA; | ccl::DeviceType type; | ||||
| switch(device_type) { | |||||
| case 0: | |||||
| type = ccl::DEVICE_CUDA; | |||||
| break; | |||||
| case 1: | |||||
| type = ccl::DEVICE_OPENCL; | |||||
| break; | |||||
| case 2: | |||||
| type = ccl::DEVICE_NETWORK; | |||||
| break; | |||||
| default: | |||||
| type = ccl::DEVICE_NONE; | |||||
| break; | |||||
| } | |||||
| return ccl::compute_device_list(type); | return ccl::compute_device_list(type); | ||||
| } | } | ||||
| Context not available. | |||||