Cycles: Remove few function arguments needed only for the split kernel
[blender.git] / intern / cycles / kernel / kernel_textures.h
1 /*
2  * Copyright 2011-2013 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 #ifndef KERNEL_TEX
18 #define KERNEL_TEX(type, ttype, name)
19 #endif
20
21 #ifndef KERNEL_IMAGE_TEX
22 #define KERNEL_IMAGE_TEX(type, ttype, name)
23 #endif
24
25 /* bvh */
26 KERNEL_TEX(float4, texture_float4, __bvh_nodes)
27 KERNEL_TEX(float4, texture_float4, __bvh_leaf_nodes)
28 KERNEL_TEX(float4, texture_float4, __tri_woop)
29 KERNEL_TEX(uint, texture_uint, __prim_type)
30 KERNEL_TEX(uint, texture_uint, __prim_visibility)
31 KERNEL_TEX(uint, texture_uint, __prim_index)
32 KERNEL_TEX(uint, texture_uint, __prim_object)
33 KERNEL_TEX(uint, texture_uint, __object_node)
34
35 /* objects */
36 KERNEL_TEX(float4, texture_float4, __objects)
37 KERNEL_TEX(float4, texture_float4, __objects_vector)
38
39 /* triangles */
40 KERNEL_TEX(uint, texture_uint, __tri_shader)
41 KERNEL_TEX(float4, texture_float4, __tri_vnormal)
42 KERNEL_TEX(float4, texture_float4, __tri_vindex)
43 KERNEL_TEX(float4, texture_float4, __tri_verts)
44
45 /* curves */
46 KERNEL_TEX(float4, texture_float4, __curves)
47 KERNEL_TEX(float4, texture_float4, __curve_keys)
48
49 /* attributes */
50 KERNEL_TEX(uint4, texture_uint4, __attributes_map)
51 KERNEL_TEX(float, texture_float, __attributes_float)
52 KERNEL_TEX(float4, texture_float4, __attributes_float3)
53 KERNEL_TEX(uchar4, texture_uchar4, __attributes_uchar4)
54
55 /* lights */
56 KERNEL_TEX(float4, texture_float4, __light_distribution)
57 KERNEL_TEX(float4, texture_float4, __light_data)
58 KERNEL_TEX(float2, texture_float2, __light_background_marginal_cdf)
59 KERNEL_TEX(float2, texture_float2, __light_background_conditional_cdf)
60
61 /* particles */
62 KERNEL_TEX(float4, texture_float4, __particles)
63
64 /* shaders */
65 KERNEL_TEX(uint4, texture_uint4, __svm_nodes)
66 KERNEL_TEX(uint, texture_uint, __shader_flag)
67 KERNEL_TEX(uint, texture_uint, __object_flag)
68
69 /* lookup tables */
70 KERNEL_TEX(float, texture_float, __lookup_table)
71
72 /* sobol */
73 KERNEL_TEX(uint, texture_uint, __sobol_directions)
74
75 /* full-float image */
76 KERNEL_IMAGE_TEX(float4, texture_image_float4, __tex_image_float_000)
77 KERNEL_IMAGE_TEX(float4, texture_image_float4, __tex_image_float_001)
78 KERNEL_IMAGE_TEX(float4, texture_image_float4, __tex_image_float_002)
79 KERNEL_IMAGE_TEX(float4, texture_image_float4, __tex_image_float_003)
80 KERNEL_IMAGE_TEX(float4, texture_image_float4, __tex_image_float_004)
81
82 /* image */
83 KERNEL_IMAGE_TEX(uchar4, texture_image_uchar4, __tex_image_005)
84 KERNEL_IMAGE_TEX(uchar4, texture_image_uchar4, __tex_image_006)
85 KERNEL_IMAGE_TEX(uchar4, texture_image_uchar4, __tex_image_007)
86 KERNEL_IMAGE_TEX(uchar4, texture_image_uchar4, __tex_image_008)
87 KERNEL_IMAGE_TEX(uchar4, texture_image_uchar4, __tex_image_009)
88 KERNEL_IMAGE_TEX(uchar4, texture_image_uchar4, __tex_image_010)
89 KERNEL_IMAGE_TEX(uchar4, texture_image_uchar4, __tex_image_011)
90 KERNEL_IMAGE_TEX(uchar4, texture_image_uchar4, __tex_image_012)
91 KERNEL_IMAGE_TEX(uchar4, texture_image_uchar4, __tex_image_013)
92 KERNEL_IMAGE_TEX(uchar4, texture_image_uchar4, __tex_image_014)
93 KERNEL_IMAGE_TEX(uchar4, texture_image_uchar4, __tex_image_015)
94 KERNEL_IMAGE_TEX(uchar4, texture_image_uchar4, __tex_image_016)
95 KERNEL_IMAGE_TEX(uchar4, texture_image_uchar4, __tex_image_017)
96 KERNEL_IMAGE_TEX(uchar4, texture_image_uchar4, __tex_image_018)
97 KERNEL_IMAGE_TEX(uchar4, texture_image_uchar4, __tex_image_019)
98 KERNEL_IMAGE_TEX(uchar4, texture_image_uchar4, __tex_image_020)
99 KERNEL_IMAGE_TEX(uchar4, texture_image_uchar4, __tex_image_021)
100 KERNEL_IMAGE_TEX(uchar4, texture_image_uchar4, __tex_image_022)
101 KERNEL_IMAGE_TEX(uchar4, texture_image_uchar4, __tex_image_023)
102 KERNEL_IMAGE_TEX(uchar4, texture_image_uchar4, __tex_image_024)
103 KERNEL_IMAGE_TEX(uchar4, texture_image_uchar4, __tex_image_025)
104 KERNEL_IMAGE_TEX(uchar4, texture_image_uchar4, __tex_image_026)
105 KERNEL_IMAGE_TEX(uchar4, texture_image_uchar4, __tex_image_027)
106 KERNEL_IMAGE_TEX(uchar4, texture_image_uchar4, __tex_image_028)
107 KERNEL_IMAGE_TEX(uchar4, texture_image_uchar4, __tex_image_029)
108 KERNEL_IMAGE_TEX(uchar4, texture_image_uchar4, __tex_image_030)
109 KERNEL_IMAGE_TEX(uchar4, texture_image_uchar4, __tex_image_031)
110 KERNEL_IMAGE_TEX(uchar4, texture_image_uchar4, __tex_image_032)
111 KERNEL_IMAGE_TEX(uchar4, texture_image_uchar4, __tex_image_033)
112 KERNEL_IMAGE_TEX(uchar4, texture_image_uchar4, __tex_image_034)
113 KERNEL_IMAGE_TEX(uchar4, texture_image_uchar4, __tex_image_035)
114 KERNEL_IMAGE_TEX(uchar4, texture_image_uchar4, __tex_image_036)
115 KERNEL_IMAGE_TEX(uchar4, texture_image_uchar4, __tex_image_037)
116 KERNEL_IMAGE_TEX(uchar4, texture_image_uchar4, __tex_image_038)
117 KERNEL_IMAGE_TEX(uchar4, texture_image_uchar4, __tex_image_039)
118 KERNEL_IMAGE_TEX(uchar4, texture_image_uchar4, __tex_image_040)
119 KERNEL_IMAGE_TEX(uchar4, texture_image_uchar4, __tex_image_041)
120 KERNEL_IMAGE_TEX(uchar4, texture_image_uchar4, __tex_image_042)
121 KERNEL_IMAGE_TEX(uchar4, texture_image_uchar4, __tex_image_043)
122 KERNEL_IMAGE_TEX(uchar4, texture_image_uchar4, __tex_image_044)
123 KERNEL_IMAGE_TEX(uchar4, texture_image_uchar4, __tex_image_045)
124 KERNEL_IMAGE_TEX(uchar4, texture_image_uchar4, __tex_image_046)
125 KERNEL_IMAGE_TEX(uchar4, texture_image_uchar4, __tex_image_047)
126 KERNEL_IMAGE_TEX(uchar4, texture_image_uchar4, __tex_image_048)
127 KERNEL_IMAGE_TEX(uchar4, texture_image_uchar4, __tex_image_049)
128 KERNEL_IMAGE_TEX(uchar4, texture_image_uchar4, __tex_image_050)
129 KERNEL_IMAGE_TEX(uchar4, texture_image_uchar4, __tex_image_051)
130 KERNEL_IMAGE_TEX(uchar4, texture_image_uchar4, __tex_image_052)
131 KERNEL_IMAGE_TEX(uchar4, texture_image_uchar4, __tex_image_053)
132 KERNEL_IMAGE_TEX(uchar4, texture_image_uchar4, __tex_image_054)
133 KERNEL_IMAGE_TEX(uchar4, texture_image_uchar4, __tex_image_055)
134 KERNEL_IMAGE_TEX(uchar4, texture_image_uchar4, __tex_image_056)
135 KERNEL_IMAGE_TEX(uchar4, texture_image_uchar4, __tex_image_057)
136 KERNEL_IMAGE_TEX(uchar4, texture_image_uchar4, __tex_image_058)
137 KERNEL_IMAGE_TEX(uchar4, texture_image_uchar4, __tex_image_059)
138 KERNEL_IMAGE_TEX(uchar4, texture_image_uchar4, __tex_image_060)
139 KERNEL_IMAGE_TEX(uchar4, texture_image_uchar4, __tex_image_061)
140 KERNEL_IMAGE_TEX(uchar4, texture_image_uchar4, __tex_image_062)
141 KERNEL_IMAGE_TEX(uchar4, texture_image_uchar4, __tex_image_063)
142 KERNEL_IMAGE_TEX(uchar4, texture_image_uchar4, __tex_image_064)
143 KERNEL_IMAGE_TEX(uchar4, texture_image_uchar4, __tex_image_065)
144 KERNEL_IMAGE_TEX(uchar4, texture_image_uchar4, __tex_image_066)
145 KERNEL_IMAGE_TEX(uchar4, texture_image_uchar4, __tex_image_067)
146 KERNEL_IMAGE_TEX(uchar4, texture_image_uchar4, __tex_image_068)
147 KERNEL_IMAGE_TEX(uchar4, texture_image_uchar4, __tex_image_069)
148 KERNEL_IMAGE_TEX(uchar4, texture_image_uchar4, __tex_image_070)
149 KERNEL_IMAGE_TEX(uchar4, texture_image_uchar4, __tex_image_071)
150 KERNEL_IMAGE_TEX(uchar4, texture_image_uchar4, __tex_image_072)
151 KERNEL_IMAGE_TEX(uchar4, texture_image_uchar4, __tex_image_073)
152 KERNEL_IMAGE_TEX(uchar4, texture_image_uchar4, __tex_image_074)
153 KERNEL_IMAGE_TEX(uchar4, texture_image_uchar4, __tex_image_075)
154 KERNEL_IMAGE_TEX(uchar4, texture_image_uchar4, __tex_image_076)
155 KERNEL_IMAGE_TEX(uchar4, texture_image_uchar4, __tex_image_077)
156 KERNEL_IMAGE_TEX(uchar4, texture_image_uchar4, __tex_image_078)
157 KERNEL_IMAGE_TEX(uchar4, texture_image_uchar4, __tex_image_079)
158 KERNEL_IMAGE_TEX(uchar4, texture_image_uchar4, __tex_image_080)
159 KERNEL_IMAGE_TEX(uchar4, texture_image_uchar4, __tex_image_081)
160 KERNEL_IMAGE_TEX(uchar4, texture_image_uchar4, __tex_image_082)
161 KERNEL_IMAGE_TEX(uchar4, texture_image_uchar4, __tex_image_083)
162 KERNEL_IMAGE_TEX(uchar4, texture_image_uchar4, __tex_image_084)
163 KERNEL_IMAGE_TEX(uchar4, texture_image_uchar4, __tex_image_085)
164 KERNEL_IMAGE_TEX(uchar4, texture_image_uchar4, __tex_image_086)
165 KERNEL_IMAGE_TEX(uchar4, texture_image_uchar4, __tex_image_087)
166 KERNEL_IMAGE_TEX(uchar4, texture_image_uchar4, __tex_image_088)
167 KERNEL_IMAGE_TEX(uchar4, texture_image_uchar4, __tex_image_089)
168 KERNEL_IMAGE_TEX(uchar4, texture_image_uchar4, __tex_image_090)
169 KERNEL_IMAGE_TEX(uchar4, texture_image_uchar4, __tex_image_091)
170 KERNEL_IMAGE_TEX(uchar4, texture_image_uchar4, __tex_image_092)
171 KERNEL_IMAGE_TEX(uchar4, texture_image_uchar4, __tex_image_093)
172 KERNEL_IMAGE_TEX(uchar4, texture_image_uchar4, __tex_image_094)
173 KERNEL_IMAGE_TEX(uchar4, texture_image_uchar4, __tex_image_095)
174 KERNEL_IMAGE_TEX(uchar4, texture_image_uchar4, __tex_image_096)
175 KERNEL_IMAGE_TEX(uchar4, texture_image_uchar4, __tex_image_097)
176 KERNEL_IMAGE_TEX(uchar4, texture_image_uchar4, __tex_image_098)
177
178 /* Kepler and above */
179 KERNEL_IMAGE_TEX(uchar4, texture_image_uchar4, __tex_image_099)
180 KERNEL_IMAGE_TEX(uchar4, texture_image_uchar4, __tex_image_100)
181 KERNEL_IMAGE_TEX(uchar4, texture_image_uchar4, __tex_image_101)
182 KERNEL_IMAGE_TEX(uchar4, texture_image_uchar4, __tex_image_102)
183 KERNEL_IMAGE_TEX(uchar4, texture_image_uchar4, __tex_image_103)
184 KERNEL_IMAGE_TEX(uchar4, texture_image_uchar4, __tex_image_104)
185 KERNEL_IMAGE_TEX(uchar4, texture_image_uchar4, __tex_image_105)
186 KERNEL_IMAGE_TEX(uchar4, texture_image_uchar4, __tex_image_106)
187 KERNEL_IMAGE_TEX(uchar4, texture_image_uchar4, __tex_image_107)
188 KERNEL_IMAGE_TEX(uchar4, texture_image_uchar4, __tex_image_108)
189 KERNEL_IMAGE_TEX(uchar4, texture_image_uchar4, __tex_image_109)
190 KERNEL_IMAGE_TEX(uchar4, texture_image_uchar4, __tex_image_110)
191 KERNEL_IMAGE_TEX(uchar4, texture_image_uchar4, __tex_image_111)
192 KERNEL_IMAGE_TEX(uchar4, texture_image_uchar4, __tex_image_112)
193 KERNEL_IMAGE_TEX(uchar4, texture_image_uchar4, __tex_image_113)
194 KERNEL_IMAGE_TEX(uchar4, texture_image_uchar4, __tex_image_114)
195 KERNEL_IMAGE_TEX(uchar4, texture_image_uchar4, __tex_image_115)
196 KERNEL_IMAGE_TEX(uchar4, texture_image_uchar4, __tex_image_116)
197 KERNEL_IMAGE_TEX(uchar4, texture_image_uchar4, __tex_image_117)
198 KERNEL_IMAGE_TEX(uchar4, texture_image_uchar4, __tex_image_118)
199 KERNEL_IMAGE_TEX(uchar4, texture_image_uchar4, __tex_image_119)
200 KERNEL_IMAGE_TEX(uchar4, texture_image_uchar4, __tex_image_120)
201 KERNEL_IMAGE_TEX(uchar4, texture_image_uchar4, __tex_image_121)
202 KERNEL_IMAGE_TEX(uchar4, texture_image_uchar4, __tex_image_122)
203 KERNEL_IMAGE_TEX(uchar4, texture_image_uchar4, __tex_image_123)
204 KERNEL_IMAGE_TEX(uchar4, texture_image_uchar4, __tex_image_124)
205 KERNEL_IMAGE_TEX(uchar4, texture_image_uchar4, __tex_image_125)
206 KERNEL_IMAGE_TEX(uchar4, texture_image_uchar4, __tex_image_126)
207 KERNEL_IMAGE_TEX(uchar4, texture_image_uchar4, __tex_image_127)
208 KERNEL_IMAGE_TEX(uchar4, texture_image_uchar4, __tex_image_128)
209 KERNEL_IMAGE_TEX(uchar4, texture_image_uchar4, __tex_image_129)
210 KERNEL_IMAGE_TEX(uchar4, texture_image_uchar4, __tex_image_130)
211 KERNEL_IMAGE_TEX(uchar4, texture_image_uchar4, __tex_image_131)
212 KERNEL_IMAGE_TEX(uchar4, texture_image_uchar4, __tex_image_132)
213 KERNEL_IMAGE_TEX(uchar4, texture_image_uchar4, __tex_image_133)
214 KERNEL_IMAGE_TEX(uchar4, texture_image_uchar4, __tex_image_134)
215 KERNEL_IMAGE_TEX(uchar4, texture_image_uchar4, __tex_image_135)
216 KERNEL_IMAGE_TEX(uchar4, texture_image_uchar4, __tex_image_136)
217 KERNEL_IMAGE_TEX(uchar4, texture_image_uchar4, __tex_image_137)
218 KERNEL_IMAGE_TEX(uchar4, texture_image_uchar4, __tex_image_138)
219 KERNEL_IMAGE_TEX(uchar4, texture_image_uchar4, __tex_image_139)
220 KERNEL_IMAGE_TEX(uchar4, texture_image_uchar4, __tex_image_140)
221 KERNEL_IMAGE_TEX(uchar4, texture_image_uchar4, __tex_image_141)
222 KERNEL_IMAGE_TEX(uchar4, texture_image_uchar4, __tex_image_142)
223 KERNEL_IMAGE_TEX(uchar4, texture_image_uchar4, __tex_image_143)
224 KERNEL_IMAGE_TEX(uchar4, texture_image_uchar4, __tex_image_144)
225 KERNEL_IMAGE_TEX(uchar4, texture_image_uchar4, __tex_image_145)
226 KERNEL_IMAGE_TEX(uchar4, texture_image_uchar4, __tex_image_146)
227 KERNEL_IMAGE_TEX(uchar4, texture_image_uchar4, __tex_image_147)
228 KERNEL_IMAGE_TEX(uchar4, texture_image_uchar4, __tex_image_148)
229 KERNEL_IMAGE_TEX(uchar4, texture_image_uchar4, __tex_image_149)
230 KERNEL_IMAGE_TEX(uchar4, texture_image_uchar4, __tex_image_150)
231
232 /* packed image (opencl) */
233 KERNEL_TEX(uchar4, texture_uchar4, __tex_image_packed)
234 KERNEL_TEX(uint4, texture_uint4, __tex_image_packed_info)
235
236 #undef KERNEL_TEX
237 #undef KERNEL_IMAGE_TEX
238
239