| 76 | } |
| 77 | |
| 78 | PathTraceWorkGPU::PathTraceWorkGPU(Device *device, |
| 79 | Film *film, |
| 80 | DeviceScene *device_scene, |
| 81 | const bool *cancel_requested_flag) |
| 82 | : PathTraceWork(device, film, device_scene, cancel_requested_flag), |
| 83 | queue_(device->gpu_queue_create()), |
| 84 | integrator_state_soa_kernel_features_(0), |
| 85 | integrator_queue_counter_(device, "integrator_queue_counter", MEM_READ_WRITE), |
| 86 | integrator_shader_sort_counter_(device, "integrator_shader_sort_counter", MEM_READ_WRITE), |
| 87 | integrator_shader_raytrace_sort_counter_( |
| 88 | device, "integrator_shader_raytrace_sort_counter", MEM_READ_WRITE), |
| 89 | integrator_shader_mnee_sort_counter_( |
| 90 | device, "integrator_shader_mnee_sort_counter", MEM_READ_WRITE), |
| 91 | integrator_shader_sort_prefix_sum_( |
| 92 | device, "integrator_shader_sort_prefix_sum", MEM_READ_WRITE), |
| 93 | integrator_shader_sort_partition_key_offsets_( |
| 94 | device, "integrator_shader_sort_partition_key_offsets", MEM_READ_WRITE), |
| 95 | integrator_next_main_path_index_(device, "integrator_next_main_path_index", MEM_READ_WRITE), |
| 96 | integrator_next_shadow_path_index_( |
| 97 | device, "integrator_next_shadow_path_index", MEM_READ_WRITE), |
| 98 | queued_paths_(device, "queued_paths", MEM_READ_WRITE), |
| 99 | num_queued_paths_(device, "num_queued_paths", MEM_READ_WRITE), |
| 100 | work_tiles_(device, "work_tiles", MEM_READ_WRITE), |
| 101 | display_rgba_half_(device, "display buffer half", MEM_READ_WRITE), |
| 102 | max_num_paths_(0), |
| 103 | min_num_active_main_paths_(0), |
| 104 | max_active_main_path_index_(0) |
| 105 | { |
| 106 | memset(&integrator_state_gpu_, 0, sizeof(integrator_state_gpu_)); |
| 107 | } |
| 108 | |
| 109 | void PathTraceWorkGPU::alloc_integrator_soa() |
| 110 | { |
nothing calls this directly
no test coverage detected