Blender V4.5
device/metal/globals.h
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2021-2022 Blender Foundation
2 *
3 * SPDX-License-Identifier: Apache-2.0 */
4
5/* Constant Globals */
6
7#include "kernel/types.h"
8
11
12#include "util/color.h"
13#include "util/texture.h"
14
16
18
19#define KERNEL_DATA_ARRAY(type, name) ccl_global const type *name;
20#include "kernel/data_arrays.h"
21#undef KERNEL_DATA_ARRAY
22
24 const KernelData data;
25};
26
27struct KernelGlobalsGPU {
28 int unused[1];
29};
30
32
33/* Abstraction macros */
34#define kernel_data launch_params_metal.data
35#define kernel_data_fetch(name, index) launch_params_metal.name[index]
36#define kernel_data_array(name) launch_params_metal.name
37#define kernel_integrator_state launch_params_metal.integrator_state
38
#define ccl_restrict
#define ccl_global
#define CCL_NAMESPACE_END
const IntegratorStateGPU integrator_state
const KernelData data