From 322a2f7b12bba610a70df3af90e236d0c0ef03f6 Mon Sep 17 00:00:00 2001 From: Michael Jones Date: Thu, 8 Feb 2024 16:31:52 +0100 Subject: [PATCH] Cycles: Future-proof ordering of AppleGPUArchitecture enum _No response_ Pull Request: https://projects.blender.org/blender/blender/pulls/117982 --- intern/cycles/device/metal/util.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/intern/cycles/device/metal/util.h b/intern/cycles/device/metal/util.h index 62b5902b1bd..96740888b66 100644 --- a/intern/cycles/device/metal/util.h +++ b/intern/cycles/device/metal/util.h @@ -27,11 +27,13 @@ enum MetalGPUVendor { }; enum AppleGPUArchitecture { - APPLE_UNKNOWN, APPLE_M1, APPLE_M2, APPLE_M2_BIG, APPLE_M3, + /* Keep APPLE_UNKNOWN at the end of this enum to ensure that unknown future architectures get + the most recent defaults when using comparison operators. */ + APPLE_UNKNOWN, }; /* Contains static Metal helper functions. */