Blender V5.0
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(uint, object_prim_offset)
27
28/* cameras */
30
31/* triangles */
32KERNEL_DATA_ARRAY(uint, tri_shader)
36
37/* curves */
39KERNEL_DATA_ARRAY(float4, curve_keys)
41
42/* pointclouds */
44KERNEL_DATA_ARRAY(uint, points_shader)
45
46/* attributes */
47KERNEL_DATA_ARRAY(AttributeMap, attributes_map)
48KERNEL_DATA_ARRAY(float, attributes_float)
49KERNEL_DATA_ARRAY(float2, attributes_float2)
50KERNEL_DATA_ARRAY(packed_float3, attributes_float3)
51KERNEL_DATA_ARRAY(float4, attributes_float4)
52KERNEL_DATA_ARRAY(uchar4, attributes_uchar4)
53
54/* lights */
57KERNEL_DATA_ARRAY(float2, light_background_marginal_cdf)
58KERNEL_DATA_ARRAY(float2, light_background_conditional_cdf)
59
60/* light tree */
62KERNEL_DATA_ARRAY(KernelLightTreeEmitter, light_tree_emitters)
63KERNEL_DATA_ARRAY(uint, light_to_tree)
64KERNEL_DATA_ARRAY(uint, object_to_tree)
65KERNEL_DATA_ARRAY(uint, object_lookup_offset)
66KERNEL_DATA_ARRAY(uint, triangle_to_tree)
67
68/* particles */
70
71/* shaders */
72KERNEL_DATA_ARRAY(uint4, svm_nodes)
74
75/* lookup tables */
76KERNEL_DATA_ARRAY(float, lookup_table)
77
78/* tabulated Sobol sample pattern */
79KERNEL_DATA_ARRAY(float, sample_pattern_lut)
80
81/* image textures */
82KERNEL_DATA_ARRAY(TextureInfo, texture_info)
83
84/* ies lights */
85KERNEL_DATA_ARRAY(float, ies)
86
87/* Volume. */
88KERNEL_DATA_ARRAY(KernelOctreeNode, volume_tree_nodes)
89KERNEL_DATA_ARRAY(KernelOctreeRoot, volume_tree_roots)
90KERNEL_DATA_ARRAY(int, volume_tree_root_ids)
91KERNEL_DATA_ARRAY(float, volume_step_size)
92
93#undef KERNEL_DATA_ARRAY
unsigned int uint
#define KERNEL_DATA_ARRAY(type, name)
Definition data_arrays.h:8