Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/device/device_task.h
| Show All 16 Lines | |||||
| #ifndef __DEVICE_TASK_H__ | #ifndef __DEVICE_TASK_H__ | ||||
| #define __DEVICE_TASK_H__ | #define __DEVICE_TASK_H__ | ||||
| #include "device_memory.h" | #include "device_memory.h" | ||||
| #include "util_function.h" | #include "util_function.h" | ||||
| #include "util_list.h" | #include "util_list.h" | ||||
| #include "util_task.h" | #include "util_task.h" | ||||
| #include "util_transform.h" | |||||
| CCL_NAMESPACE_BEGIN | CCL_NAMESPACE_BEGIN | ||||
| /* Device Task */ | /* Device Task */ | ||||
| class Device; | class Device; | ||||
| class RenderBuffers; | class RenderBuffers; | ||||
| class RenderTile; | class RenderTile; | ||||
| Show All 10 Lines | public: | ||||
| device_ptr buffer; | device_ptr buffer; | ||||
| int sample; | int sample; | ||||
| int num_samples; | int num_samples; | ||||
| int offset, stride; | int offset, stride; | ||||
| device_ptr shader_input; | device_ptr shader_input; | ||||
| device_ptr shader_output; | device_ptr shader_output; | ||||
| int shader_eval_type; | int shader_eval_type; | ||||
| Transform *tfm; | |||||
| int shader_x, shader_w; | int shader_x, shader_w; | ||||
| DeviceTask(Type type = PATH_TRACE); | DeviceTask(Type type = PATH_TRACE); | ||||
| int get_subtask_count(int num, int max_size = 0); | int get_subtask_count(int num, int max_size = 0); | ||||
| void split(list<DeviceTask>& tasks, int num, int max_size = 0); | void split(list<DeviceTask>& tasks, int num, int max_size = 0); | ||||
| void update_progress(RenderTile *rtile); | void update_progress(RenderTile *rtile); | ||||
| Show All 18 Lines | |||||