Blender  V3.3
data_arrays.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: Apache-2.0
2  * Copyright 2011-2022 Blender Foundation */
3 
4 #ifndef KERNEL_DATA_ARRAY
5 # define KERNEL_DATA_ARRAY(type, name)
6 #endif
7 
8 /* BVH2, not used for OptiX or Embree. */
9 KERNEL_DATA_ARRAY(float4, bvh_nodes)
10 KERNEL_DATA_ARRAY(float4, bvh_leaf_nodes)
11 KERNEL_DATA_ARRAY(uint, prim_type)
12 KERNEL_DATA_ARRAY(uint, prim_visibility)
13 KERNEL_DATA_ARRAY(uint, prim_index)
14 KERNEL_DATA_ARRAY(uint, prim_object)
15 KERNEL_DATA_ARRAY(uint, object_node)
16 KERNEL_DATA_ARRAY(float2, prim_time)
17 
18 /* objects */
20 KERNEL_DATA_ARRAY(Transform, object_motion_pass)
22 KERNEL_DATA_ARRAY(uint, object_flag)
23 KERNEL_DATA_ARRAY(float, object_volume_step)
24 KERNEL_DATA_ARRAY(uint, object_prim_offset)
25 
26 /* cameras */
28 
29 /* triangles */
30 KERNEL_DATA_ARRAY(uint, tri_shader)
31 KERNEL_DATA_ARRAY(packed_float3, tri_vnormal)
32 KERNEL_DATA_ARRAY(uint4, tri_vindex)
33 KERNEL_DATA_ARRAY(uint, tri_patch)
34 KERNEL_DATA_ARRAY(float2, tri_patch_uv)
36 
37 /* curves */
39 KERNEL_DATA_ARRAY(float4, curve_keys)
41 
42 /* patches */
43 KERNEL_DATA_ARRAY(uint, patches)
44 
45 /* pointclouds */
47 KERNEL_DATA_ARRAY(uint, points_shader)
48 
49 /* attributes */
50 KERNEL_DATA_ARRAY(AttributeMap, attributes_map)
51 KERNEL_DATA_ARRAY(float, attributes_float)
52 KERNEL_DATA_ARRAY(float2, attributes_float2)
53 KERNEL_DATA_ARRAY(packed_float3, attributes_float3)
54 KERNEL_DATA_ARRAY(float4, attributes_float4)
55 KERNEL_DATA_ARRAY(uchar4, attributes_uchar4)
56 
57 /* lights */
58 KERNEL_DATA_ARRAY(KernelLightDistribution, light_distribution)
60 KERNEL_DATA_ARRAY(float2, light_background_marginal_cdf)
61 KERNEL_DATA_ARRAY(float2, light_background_conditional_cdf)
62 
63 /* particles */
65 
66 /* shaders */
67 KERNEL_DATA_ARRAY(uint4, svm_nodes)
69 
70 /* lookup tables */
71 KERNEL_DATA_ARRAY(float, lookup_table)
72 
73 /* sobol */
74 KERNEL_DATA_ARRAY(float, sample_pattern_lut)
75 
76 /* image textures */
77 KERNEL_DATA_ARRAY(TextureInfo, texture_info)
78 
79 /* ies lights */
80 KERNEL_DATA_ARRAY(float, ies)
81 
82 #undef KERNEL_DATA_ARRAY
unsigned int uint
Definition: BLI_sys_types.h:67
float float4[4]
Group Output data from inside of a node group A color picker Mix two input colors RGB to Convert a color s luminance to a grayscale value Generate a normal vector and a dot product Bright Control the brightness and contrast of the input color Vector Map an input vectors to curves
#define KERNEL_DATA_ARRAY(type, name)
Definition: data_arrays.h:5