Blender V5.3
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#ifndef KERNEL_DATA_ARRAY_WRITABLE
11# define KERNEL_DATA_ARRAY_WRITABLE(type, name) KERNEL_DATA_ARRAY(type, name)
12#endif
13
14/* BVH2, not used for OptiX or Embree. */
15KERNEL_DATA_ARRAY(float4, bvh_nodes)
16KERNEL_DATA_ARRAY(float4, bvh_leaf_nodes)
17KERNEL_DATA_ARRAY(uint, prim_type)
18KERNEL_DATA_ARRAY(uint, prim_visibility)
19KERNEL_DATA_ARRAY(uint, prim_index)
20KERNEL_DATA_ARRAY(uint, prim_object)
21KERNEL_DATA_ARRAY(uint, object_node)
22KERNEL_DATA_ARRAY(float2, prim_time)
23
24/* objects */
26KERNEL_DATA_ARRAY(Transform, object_motion_pass)
28KERNEL_DATA_ARRAY(uint, object_flag)
29KERNEL_DATA_ARRAY(uint, object_prim_offset)
30
31/* cameras */
33
34/* triangles */
35KERNEL_DATA_ARRAY(uint, tri_shader)
38
39/* curves */
41KERNEL_DATA_ARRAY(float4, curve_keys)
43
44/* pointclouds */
46KERNEL_DATA_ARRAY(uint, points_shader)
47
48/* attributes */
49KERNEL_DATA_ARRAY(AttributeMap, attributes_map)
50KERNEL_DATA_ARRAY(float, attributes_float)
51KERNEL_DATA_ARRAY(float2, attributes_float2)
52KERNEL_DATA_ARRAY(packed_float3, attributes_float3)
53KERNEL_DATA_ARRAY(float4, attributes_float4)
54KERNEL_DATA_ARRAY(uchar4, attributes_uchar4)
55KERNEL_DATA_ARRAY(packed_normal, attributes_normal)
56KERNEL_DATA_ARRAY(Quaternion, attributes_quaternion)
57KERNEL_DATA_ARRAY(PackedSphericalHarmonicsRest, attributes_spherical_harmonics_rest)
58
59/* lights */
62KERNEL_DATA_ARRAY(float2, light_background_marginal_cdf)
63KERNEL_DATA_ARRAY(float2, light_background_conditional_cdf)
64
65/* light tree */
67KERNEL_DATA_ARRAY(KernelLightTreeEmitter, light_tree_emitters)
68KERNEL_DATA_ARRAY(uint, light_to_tree)
69KERNEL_DATA_ARRAY(uint, object_lookup_offset)
70KERNEL_DATA_ARRAY(uint, triangle_to_tree)
71
72/* particles */
74
75/* shaders */
76KERNEL_DATA_ARRAY(uint, svm_nodes)
78
79/* lookup tables */
80KERNEL_DATA_ARRAY(float, lookup_table)
81
82/* tabulated Sobol sample pattern */
83KERNEL_DATA_ARRAY(float, sample_pattern_lut)
84
85/* ies lights */
86KERNEL_DATA_ARRAY(float, ies)
87
88/* Volume. */
89KERNEL_DATA_ARRAY(KernelOctreeNode, volume_tree_nodes)
90KERNEL_DATA_ARRAY(KernelOctreeRoot, volume_tree_roots)
91KERNEL_DATA_ARRAY(int, volume_tree_root_ids)
92KERNEL_DATA_ARRAY(float, volume_step_size)
93
94/* image textures */
96KERNEL_DATA_ARRAY_WRITABLE(KernelTileDescriptor, image_texture_tile_descriptors)
97KERNEL_DATA_ARRAY_WRITABLE(uint8_t, image_texture_tile_access_state)
98KERNEL_DATA_ARRAY(KernelImageUDIM, image_texture_udims)
100
101#undef KERNEL_DATA_ARRAY
102#undef KERNEL_DATA_ARRAY_WRITABLE
#define KERNEL_DATA_ARRAY(type, name)
Definition data_arrays.h:8
#define KERNEL_DATA_ARRAY_WRITABLE(type, name)
Definition data_arrays.h:11
uint KernelTileDescriptor