Blender V4.5
data_arrays.h
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2011-2022 Blender Foundation
2 *
3 * SPDX-License-Identifier: Apache-2.0 */
4
5#include "kernel/types.h"
6
7#ifndef KERNEL_DATA_ARRAY
8# define KERNEL_DATA_ARRAY(type, name)
9#endif
10
11/* BVH2, not used for OptiX or Embree. */
12KERNEL_DATA_ARRAY(float4, bvh_nodes)
13KERNEL_DATA_ARRAY(float4, bvh_leaf_nodes)
14KERNEL_DATA_ARRAY(uint, prim_type)
15KERNEL_DATA_ARRAY(uint, prim_visibility)
16KERNEL_DATA_ARRAY(uint, prim_index)
17KERNEL_DATA_ARRAY(uint, prim_object)
18KERNEL_DATA_ARRAY(uint, object_node)
19KERNEL_DATA_ARRAY(float2, prim_time)
20
21/* objects */
23KERNEL_DATA_ARRAY(Transform, object_motion_pass)
25KERNEL_DATA_ARRAY(uint, object_flag)
26KERNEL_DATA_ARRAY(float, object_volume_step)
27KERNEL_DATA_ARRAY(uint, object_prim_offset)
28
29/* cameras */
31
32/* triangles */
33KERNEL_DATA_ARRAY(uint, tri_shader)
37
38/* curves */
40KERNEL_DATA_ARRAY(float4, curve_keys)
42
43/* pointclouds */
45KERNEL_DATA_ARRAY(uint, points_shader)
46
47/* attributes */
48KERNEL_DATA_ARRAY(AttributeMap, attributes_map)
49KERNEL_DATA_ARRAY(float, attributes_float)
50KERNEL_DATA_ARRAY(float2, attributes_float2)
51KERNEL_DATA_ARRAY(packed_float3, attributes_float3)
52KERNEL_DATA_ARRAY(float4, attributes_float4)
53KERNEL_DATA_ARRAY(uchar4, attributes_uchar4)
54
55/* lights */
58KERNEL_DATA_ARRAY(float2, light_background_marginal_cdf)
59KERNEL_DATA_ARRAY(float2, light_background_conditional_cdf)
60
61/* light tree */
63KERNEL_DATA_ARRAY(KernelLightTreeEmitter, light_tree_emitters)
64KERNEL_DATA_ARRAY(uint, light_to_tree)
65KERNEL_DATA_ARRAY(uint, object_to_tree)
66KERNEL_DATA_ARRAY(uint, object_lookup_offset)
67KERNEL_DATA_ARRAY(uint, triangle_to_tree)
68
69/* particles */
71
72/* shaders */
73KERNEL_DATA_ARRAY(uint4, svm_nodes)
75
76/* lookup tables */
77KERNEL_DATA_ARRAY(float, lookup_table)
78
79/* tabulated Sobol sample pattern */
80KERNEL_DATA_ARRAY(float, sample_pattern_lut)
81
82/* image textures */
83KERNEL_DATA_ARRAY(TextureInfo, texture_info)
84
85/* ies lights */
86KERNEL_DATA_ARRAY(float, ies)
87
88#undef KERNEL_DATA_ARRAY
unsigned int uint
#define KERNEL_DATA_ARRAY(type, name)
Definition data_arrays.h:8
VecBase< float, 4 > float4