blender/intern/cycles/kernel/device/metal/function_constants.h
Jonas Holzman 6daa1e354c Refactor: Cycles: Remove macOS 12 32-bit kernel feature split
Following-up on !163627, which bumped the macOS minimum deployment
target to 13.0, this commit removes the Metal workaround for macOS
versions older than 12, where the 64-bit Cycles kernel features value
was split into two 32-bit function constants.

Now that 64-bit constants are always available, the remaining
`KernelData_kernel_features_64bit` was also renammed to
`KernelData_kernel_features`.

Pull Request: https://projects.blender.org/blender/blender/pulls/163663
2026-09-08 14:46:32 +02:00

21 lines
608 B
C

/* SPDX-FileCopyrightText: 2021-2022 Blender Foundation
*
* SPDX-License-Identifier: Apache-2.0 */
enum {
Kernel_DummyConstant,
#define KERNEL_STRUCT_MEMBER(parent, type, name) KernelData_##parent##_##name,
#include "kernel/data_template.h"
KernelData_kernel_features,
};
#ifdef __KERNEL_METAL__
# define KERNEL_STRUCT_MEMBER(parent, type, name) \
constant type kernel_data_##parent##_##name \
[[function_constant(KernelData_##parent##_##name)]];
# include "kernel/data_template.h"
constant ulong kernel_data_kernel_features [[function_constant(KernelData_kernel_features)]];
#endif