Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/device/opencl/opencl_mega.cpp
| Show All 33 Lines | public: | ||||
| OpenCLProgram path_trace_program; | OpenCLProgram path_trace_program; | ||||
| OpenCLDeviceMegaKernel(DeviceInfo& info, Stats &stats, bool background_) | OpenCLDeviceMegaKernel(DeviceInfo& info, Stats &stats, bool background_) | ||||
| : OpenCLDeviceBase(info, stats, background_), | : OpenCLDeviceBase(info, stats, background_), | ||||
| path_trace_program(this, "megakernel", "kernel.cl", "-D__COMPILE_ONLY_MEGAKERNEL__ ") | path_trace_program(this, "megakernel", "kernel.cl", "-D__COMPILE_ONLY_MEGAKERNEL__ ") | ||||
| { | { | ||||
| } | } | ||||
| virtual bool show_samples() const { | |||||
| return true; | |||||
| } | |||||
| virtual void load_kernels(const DeviceRequestedFeatures& /*requested_features*/, | virtual void load_kernels(const DeviceRequestedFeatures& /*requested_features*/, | ||||
| vector<OpenCLProgram*> &programs) | vector<OpenCLProgram*> &programs) | ||||
| { | { | ||||
| path_trace_program.add_kernel(ustring("path_trace")); | path_trace_program.add_kernel(ustring("path_trace")); | ||||
| programs.push_back(&path_trace_program); | programs.push_back(&path_trace_program); | ||||
| } | } | ||||
| ~OpenCLDeviceMegaKernel() | ~OpenCLDeviceMegaKernel() | ||||
| ▲ Show 20 Lines • Show All 101 Lines • Show Last 20 Lines | |||||