Cycles: Make all #include statements relative to cycles source directory
[blender.git] / intern / cycles / kernel / kernels / opencl / kernel_data_init.cl
1 /*
2  * Copyright 2011-2015 Blender Foundation
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16
17 #include "kernel/kernel_compat_opencl.h"
18 #include "kernel/split/kernel_split_common.h"
19 #include "kernel/split/kernel_data_init.h"
20
21 __kernel void kernel_ocl_path_trace_data_init(
22         ccl_global char *kg,
23         ccl_constant KernelData *data,
24         ccl_global void *split_data_buffer,
25         int num_elements,
26         ccl_global char *ray_state,
27         ccl_global uint *rng_state,
28
29 #define KERNEL_TEX(type, ttype, name)                                   \
30         ccl_global type *name,
31 #include "kernel/kernel_textures.h"
32
33         int start_sample,
34         int end_sample,
35         int sx, int sy, int sw, int sh, int offset, int stride,
36         ccl_global int *Queue_index,                 /* Tracks the number of elements in queues */
37         int queuesize,                               /* size (capacity) of the queue */
38         ccl_global char *use_queues_flag,            /* flag to decide if scene-intersect kernel should use queues to fetch ray index */
39         ccl_global unsigned int *work_pool_wgs,      /* Work pool for each work group */
40         unsigned int num_samples,                    /* Total number of samples per pixel */
41         ccl_global float *buffer)
42 {
43         kernel_data_init((KernelGlobals*)kg,
44                          data,
45                          split_data_buffer,
46                          num_elements,
47                          ray_state,
48                          rng_state,
49
50 #define KERNEL_TEX(type, ttype, name) name,
51 #include "kernel/kernel_textures.h"
52
53                          start_sample,
54                          end_sample,
55                          sx, sy, sw, sh, offset, stride,
56                          Queue_index,
57                          queuesize,
58                          use_queues_flag,
59                          work_pool_wgs,
60                          num_samples,
61                          buffer);
62 }