예제 #1
0
	void thread_run(DeviceTask *task)
	{
		if(task->type == DeviceTask::PATH_TRACE)
			thread_path_trace(*task);
		else if(task->type == DeviceTask::FILM_CONVERT)
			thread_film_convert(*task);
		else if(task->type == DeviceTask::SHADER)
			thread_shader(*task);
	}
예제 #2
0
 void thread_run(DeviceTask *task)
 {
   if (task->type == DeviceTask::RENDER) {
     thread_render(*task);
   }
   else if (task->type == DeviceTask::FILM_CONVERT)
     thread_film_convert(*task);
   else if (task->type == DeviceTask::SHADER)
     thread_shader(*task);
 }