Blender V5.0
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
12#include "util/color.h"
19#define KERNEL_DATA_ARRAY(type, name) ccl_global const type *name;
21#undef KERNEL_DATA_ARRAY
24 const KernelData data;
25};
28 int unused[1];
29};
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
const ThreadKernelGlobalsCPU * KernelGlobals
#define CCL_NAMESPACE_END
#define ccl_restrict
#define ccl_global
CCL_NAMESPACE_END const IntegratorStateGPU integrator_state
const KernelData data