Blender  V2.93
kernel_textures.h
Go to the documentation of this file.
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, name)
19 #endif
20 
21 /* bvh */
22 KERNEL_TEX(float4, __bvh_nodes)
23 KERNEL_TEX(float4, __bvh_leaf_nodes)
24 KERNEL_TEX(float4, __prim_tri_verts)
25 KERNEL_TEX(uint, __prim_tri_index)
26 KERNEL_TEX(uint, __prim_type)
27 KERNEL_TEX(uint, __prim_visibility)
28 KERNEL_TEX(uint, __prim_index)
29 KERNEL_TEX(uint, __prim_object)
30 KERNEL_TEX(uint, __object_node)
31 KERNEL_TEX(float2, __prim_time)
32 
33 /* objects */
34 KERNEL_TEX(KernelObject, __objects)
35 KERNEL_TEX(Transform, __object_motion_pass)
36 KERNEL_TEX(DecomposedTransform, __object_motion)
37 KERNEL_TEX(uint, __object_flag)
38 KERNEL_TEX(float, __object_volume_step)
39 
40 /* cameras */
41 KERNEL_TEX(DecomposedTransform, __camera_motion)
42 
43 /* triangles */
44 KERNEL_TEX(uint, __tri_shader)
45 KERNEL_TEX(float4, __tri_vnormal)
46 KERNEL_TEX(uint4, __tri_vindex)
47 KERNEL_TEX(uint, __tri_patch)
48 KERNEL_TEX(float2, __tri_patch_uv)
49 
50 /* curves */
51 KERNEL_TEX(float4, __curves)
52 KERNEL_TEX(float4, __curve_keys)
53 
54 /* patches */
55 KERNEL_TEX(uint, __patches)
56 
57 /* attributes */
58 KERNEL_TEX(uint4, __attributes_map)
59 KERNEL_TEX(float, __attributes_float)
60 KERNEL_TEX(float2, __attributes_float2)
61 KERNEL_TEX(float4, __attributes_float3)
62 KERNEL_TEX(uchar4, __attributes_uchar4)
63 
64 /* lights */
65 KERNEL_TEX(KernelLightDistribution, __light_distribution)
66 KERNEL_TEX(KernelLight, __lights)
67 KERNEL_TEX(float2, __light_background_marginal_cdf)
68 KERNEL_TEX(float2, __light_background_conditional_cdf)
69 
70 /* particles */
71 KERNEL_TEX(KernelParticle, __particles)
72 
73 /* shaders */
74 KERNEL_TEX(uint4, __svm_nodes)
75 KERNEL_TEX(KernelShader, __shaders)
76 
77 /* lookup tables */
78 KERNEL_TEX(float, __lookup_table)
79 
80 /* sobol */
81 KERNEL_TEX(uint, __sample_pattern_lut)
82 
83 /* image textures */
84 KERNEL_TEX(TextureInfo, __texture_info)
85 
86 /* ies lights */
87 KERNEL_TEX(float, __ies)
88 
89 #undef KERNEL_TEX
unsigned int uint
Definition: BLI_sys_types.h:83
#define KERNEL_TEX(type, name)