Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/device/device.h
| Show First 20 Lines • Show All 154 Lines • ▼ Show 20 Lines | public: | ||||
| virtual void const_copy_to(const char *name, void *host, size_t size) = 0; | virtual void const_copy_to(const char *name, void *host, size_t size) = 0; | ||||
| /* load/compile kernels, must be called before adding tasks */ | /* load/compile kernels, must be called before adding tasks */ | ||||
| virtual bool load_kernels(uint /*kernel_features*/) | virtual bool load_kernels(uint /*kernel_features*/) | ||||
| { | { | ||||
| return true; | return true; | ||||
| } | } | ||||
| virtual bool load_osl_kernels() | |||||
| { | |||||
| return true; | |||||
| } | |||||
| /* GPU device only functions. | /* GPU device only functions. | ||||
| * These may not be used on CPU or multi-devices. */ | * These may not be used on CPU or multi-devices. */ | ||||
| /* Create new queue for executing kernels in. */ | /* Create new queue for executing kernels in. */ | ||||
| virtual unique_ptr<DeviceQueue> gpu_queue_create(); | virtual unique_ptr<DeviceQueue> gpu_queue_create(); | ||||
| /* CPU device only functions. | /* CPU device only functions. | ||||
| * These may not be used on GPU or multi-devices. */ | * These may not be used on GPU or multi-devices. */ | ||||
| ▲ Show 20 Lines • Show All 131 Lines • Show Last 20 Lines | |||||