Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/integrator/path_trace_work.cpp
| Show First 20 Lines • Show All 185 Lines • ▼ Show 20 Lines | |||||
| } | } | ||||
| PassAccessor::Destination PathTraceWork::get_gpu_display_destination_template( | PassAccessor::Destination PathTraceWork::get_gpu_display_destination_template( | ||||
| const GPUDisplay *gpu_display) const | const GPUDisplay *gpu_display) const | ||||
| { | { | ||||
| PassAccessor::Destination destination(film_->get_display_pass()); | PassAccessor::Destination destination(film_->get_display_pass()); | ||||
| const int2 display_texture_size = gpu_display->get_texture_size(); | const int2 display_texture_size = gpu_display->get_texture_size(); | ||||
| const int texture_x = effective_buffer_params_.full_x - effective_full_params_.full_x; | const int texture_x = effective_buffer_params_.full_x - effective_full_params_.full_x + | ||||
| const int texture_y = effective_buffer_params_.full_y - effective_full_params_.full_y; | effective_buffer_params_.window_x; | ||||
| const int texture_y = effective_buffer_params_.full_y - effective_full_params_.full_y + | |||||
| effective_buffer_params_.window_y; | |||||
| destination.offset = texture_y * display_texture_size.x + texture_x; | destination.offset = texture_y * display_texture_size.x + texture_x; | ||||
| destination.stride = display_texture_size.x; | destination.stride = display_texture_size.x; | ||||
| return destination; | return destination; | ||||
| } | } | ||||
| CCL_NAMESPACE_END | CCL_NAMESPACE_END | ||||