Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/render/bake.cpp
| Show First 20 Lines • Show All 173 Lines • ▼ Show 20 Lines | for(size_t shader_offset = 0; shader_offset < num_pixels; shader_offset += m_shader_limit) { | ||||
| device->mem_copy_to(d_input); | device->mem_copy_to(d_input); | ||||
| device->mem_alloc(d_output, MEM_WRITE_ONLY); | device->mem_alloc(d_output, MEM_WRITE_ONLY); | ||||
| DeviceTask task(DeviceTask::SHADER); | DeviceTask task(DeviceTask::SHADER); | ||||
| task.shader_input = d_input.device_pointer; | task.shader_input = d_input.device_pointer; | ||||
| task.shader_output = d_output.device_pointer; | task.shader_output = d_output.device_pointer; | ||||
| task.shader_eval_type = shader_type; | task.shader_eval_type = shader_type; | ||||
| task.shader_x = 0; | task.shader_x = 0; | ||||
| task.offset = shader_offset; | |||||
| task.shader_w = d_output.size(); | task.shader_w = d_output.size(); | ||||
| task.num_samples = this->num_samples; | task.num_samples = this->num_samples; | ||||
| task.get_cancel = function_bind(&Progress::get_cancel, &progress); | task.get_cancel = function_bind(&Progress::get_cancel, &progress); | ||||
| task.update_progress_sample = function_bind(&Progress::increment_sample_update, &progress); | task.update_progress_sample = function_bind(&Progress::increment_sample_update, &progress); | ||||
| device->task_add(task); | device->task_add(task); | ||||
| device->task_wait(); | device->task_wait(); | ||||
| ▲ Show 20 Lines • Show All 79 Lines • Show Last 20 Lines | |||||