Blender
V4.3
intern
cycles
kernel
device
metal
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
#include "
kernel/util/profiling.h
"
9
10
#include "
kernel/integrator/state.h
"
11
12
CCL_NAMESPACE_BEGIN
13
14
typedef
struct
KernelParamsMetal
{
15
16
#define KERNEL_DATA_ARRAY(type, name) ccl_global const type *name;
17
#include "
kernel/data_arrays.h
"
18
#undef KERNEL_DATA_ARRAY
19
20
const
IntegratorStateGPU
integrator_state
;
21
const
KernelData
data
;
22
23
}
KernelParamsMetal
;
24
25
typedef
struct
KernelGlobalsGPU
{
26
int
unused
[1];
27
}
KernelGlobalsGPU
;
28
29
typedef
ccl_global
const
KernelGlobalsGPU
*
ccl_restrict
KernelGlobals
;
30
31
/* Abstraction macros */
32
#define kernel_data launch_params_metal.data
33
#define kernel_data_fetch(name, index) launch_params_metal.name[index]
34
#define kernel_data_array(name) launch_params_metal.name
35
#define kernel_integrator_state launch_params_metal.integrator_state
36
37
CCL_NAMESPACE_END
data_arrays.h
KernelGlobals
const KernelGlobalsCPU *ccl_restrict KernelGlobals
Definition
device/cpu/globals.h:71
ccl_restrict
#define ccl_restrict
Definition
device/cuda/compat.h:54
ccl_global
#define ccl_global
Definition
device/cuda/compat.h:45
CCL_NAMESPACE_END
#define CCL_NAMESPACE_END
Definition
device/cuda/compat.h:10
types.h
KernelData
KernelData
Definition
kernel/types.h:1509
profiling.h
CCL_NAMESPACE_BEGIN
Definition
python.cpp:44
state.h
IntegratorStateGPU
Definition
state.h:141
KernelGlobalsGPU
Definition
device/cuda/globals.h:19
KernelGlobalsGPU::unused
int unused[1]
Definition
device/cuda/globals.h:20
KernelParamsMetal
Definition
device/metal/globals.h:14
KernelParamsMetal::integrator_state
const IntegratorStateGPU integrator_state
Definition
device/metal/globals.h:20
KernelParamsMetal::data
const KernelData data
Definition
device/metal/globals.h:21
Generated on Sat Oct 4 2025 05:32:23 for Blender by
doxygen
1.14.0