Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/kernel/kernels/opencl/kernel_data_init.cl
| Show All 12 Lines | |||||
| * See the License for the specific language governing permissions and | * See the License for the specific language governing permissions and | ||||
| * limitations under the License. | * limitations under the License. | ||||
| */ | */ | ||||
| #include "split/kernel_data_init.h" | #include "split/kernel_data_init.h" | ||||
| __kernel void kernel_ocl_path_trace_data_init( | __kernel void kernel_ocl_path_trace_data_init( | ||||
| ccl_global char *globals, | ccl_global char *globals, | ||||
| ccl_global char *sd, | |||||
| ccl_global char *sd_DL_shadow, | ccl_global char *sd_DL_shadow, | ||||
| ccl_constant KernelData *data, | ccl_constant KernelData *data, | ||||
| ccl_global float *per_sample_output_buffers, | ccl_global float *per_sample_output_buffers, | ||||
| ccl_global uint *rng_state, | ccl_global uint *rng_state, | ||||
| ccl_global uint *rng_coop, /* rng array to store rng values for all rays */ | ccl_global uint *rng_coop, /* rng array to store rng values for all rays */ | ||||
| ccl_global float3 *throughput_coop, /* throughput array to store throughput values for all rays */ | ccl_global float3 *throughput_coop, /* throughput array to store throughput values for all rays */ | ||||
| ccl_global float *L_transparent_coop, /* L_transparent array to store L_transparent values for all rays */ | ccl_global float *L_transparent_coop, /* L_transparent array to store L_transparent values for all rays */ | ||||
| PathRadiance *PathRadiance_coop, /* PathRadiance array to store PathRadiance values for all rays */ | PathRadiance *PathRadiance_coop, /* PathRadiance array to store PathRadiance values for all rays */ | ||||
| Show All 20 Lines | #ifdef __WORK_STEALING__ | ||||
| unsigned int num_samples, /* Total number of samples per pixel */ | unsigned int num_samples, /* Total number of samples per pixel */ | ||||
| #endif | #endif | ||||
| #ifdef __KERNEL_DEBUG__ | #ifdef __KERNEL_DEBUG__ | ||||
| DebugData *debugdata_coop, | DebugData *debugdata_coop, | ||||
| #endif | #endif | ||||
| int parallel_samples) /* Number of samples to be processed in parallel */ | int parallel_samples) /* Number of samples to be processed in parallel */ | ||||
| { | { | ||||
| kernel_data_init((KernelGlobals *)globals, | kernel_data_init((KernelGlobals *)globals, | ||||
| (ShaderData *)sd, | |||||
| (ShaderData *)sd_DL_shadow, | (ShaderData *)sd_DL_shadow, | ||||
| data, | data, | ||||
| per_sample_output_buffers, | per_sample_output_buffers, | ||||
| rng_state, | rng_state, | ||||
| rng_coop, | rng_coop, | ||||
| throughput_coop, | throughput_coop, | ||||
| L_transparent_coop, | L_transparent_coop, | ||||
| PathRadiance_coop, | PathRadiance_coop, | ||||
| Show All 26 Lines | |||||