add BLI_strcpy_rlen, replace strcat, which was used in misleading way.
[blender.git] / intern / cycles / kernel / kernel_textures.h
1 /*
2  * Copyright 2011, Blender Foundation.
3  *
4  * This program is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU General Public License
6  * as published by the Free Software Foundation; either version 2
7  * of the License, or (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, write to the Free Software Foundation,
16  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17  */
18
19 #ifndef KERNEL_TEX
20 #define KERNEL_TEX(type, ttype, name)
21 #endif
22
23 #ifndef KERNEL_IMAGE_TEX
24 #define KERNEL_IMAGE_TEX(type, ttype, name)
25 #endif
26
27 /* bvh */
28 KERNEL_TEX(float4, texture_float4, __bvh_nodes)
29 KERNEL_TEX(float4, texture_float4, __tri_woop)
30 KERNEL_TEX(uint, texture_uint, __prim_segment)
31 KERNEL_TEX(uint, texture_uint, __prim_visibility)
32 KERNEL_TEX(uint, texture_uint, __prim_index)
33 KERNEL_TEX(uint, texture_uint, __prim_object)
34 KERNEL_TEX(uint, texture_uint, __object_node)
35
36 /* objects */
37 KERNEL_TEX(float4, texture_float4, __objects)
38 KERNEL_TEX(float4, texture_float4, __objects_vector)
39
40 /* triangles */
41 KERNEL_TEX(float4, texture_float4, __tri_normal)
42 KERNEL_TEX(float4, texture_float4, __tri_vnormal)
43 KERNEL_TEX(float4, texture_float4, __tri_vindex)
44 KERNEL_TEX(float4, texture_float4, __tri_verts)
45
46 /* curves */
47 KERNEL_TEX(float4, texture_float4, __curves)
48 KERNEL_TEX(float4, texture_float4, __curve_keys)
49
50 /* attributes */
51 KERNEL_TEX(uint4, texture_uint4, __attributes_map)
52 KERNEL_TEX(float, texture_float, __attributes_float)
53 KERNEL_TEX(float4, texture_float4, __attributes_float3)
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 KERNEL_IMAGE_TEX(uchar4, texture_image_uchar4, __tex_image_099)
178
179 /* packed image (opencl) */
180 KERNEL_TEX(uchar4, texture_uchar4, __tex_image_packed)
181 KERNEL_TEX(uint4, texture_uint4, __tex_image_packed_info)
182
183 #undef KERNEL_TEX
184 #undef KERNEL_IMAGE_TEX
185
186