Blender  V3.3
device/metal/globals.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: Apache-2.0
2  * Copyright 2021-2022 Blender Foundation */
3 
4 /* Constant Globals */
5 
6 #include "kernel/types.h"
8 
10 
12 
13 typedef struct KernelParamsMetal {
14 
15 #define KERNEL_DATA_ARRAY(type, name) ccl_global const type *name;
16 #include "kernel/data_arrays.h"
17 #undef KERNEL_DATA_ARRAY
18 
21 
23 
24 typedef struct KernelGlobalsGPU {
25  int unused[1];
27 
29 
30 /* Abstraction macros */
31 #define kernel_data launch_params_metal.data
32 #define kernel_data_fetch(name, index) launch_params_metal.name[index]
33 #define kernel_data_array(name) launch_params_metal.name
34 #define kernel_integrator_state launch_params_metal.integrator_state
35 
#define ccl_restrict
Definition: cuda/compat.h:50
#define ccl_global
Definition: cuda/compat.h:43
#define CCL_NAMESPACE_END
Definition: cuda/compat.h:9
struct KernelGlobalsGPU KernelGlobalsGPU
CCL_NAMESPACE_BEGIN struct KernelParamsMetal KernelParamsMetal
ccl_global const KernelGlobalsGPU *ccl_restrict KernelGlobals
const IntegratorStateGPU integrator_state
const KernelData data