Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/device/opencl/opencl.h
| Show First 20 Lines • Show All 290 Lines • ▼ Show 20 Lines | public: | ||||
| void compile(); | void compile(); | ||||
| /* Create the OpenCL kernels after loading or compiling */ | /* Create the OpenCL kernels after loading or compiling */ | ||||
| void create_kernels(); | void create_kernels(); | ||||
| bool is_loaded() const { return loaded; } | bool is_loaded() const { return loaded; } | ||||
| const string& get_log() const { return log; } | const string& get_log() const { return log; } | ||||
| void report_error(); | void report_error(); | ||||
| /* Wait until this kernel is available to be used | /* Wait until this kernel is available to be used | ||||
| * It will return true when the kernel is available. | * It will return true when the kernel is available. | ||||
| * It will return false when the kernel is not available | * It will return false when the kernel is not available | ||||
| * or could not be loaded. */ | * or could not be loaded. */ | ||||
| bool wait_for_availability(); | bool wait_for_availability(); | ||||
| cl_kernel operator()(); | cl_kernel operator()(); | ||||
| cl_kernel operator()(ustring name); | cl_kernel operator()(ustring name); | ||||
| void release(); | void release(); | ||||
| ▲ Show 20 Lines • Show All 352 Lines • Show Last 20 Lines | |||||