diff options
author | Brecht Van Lommel <brecht> | 2021-12-13 15:48:36 +0300 |
---|---|---|
committer | Brecht Van Lommel <brecht@blender.org> | 2021-12-13 15:57:13 +0300 |
commit | 3f96555123db2b48047c40a45a6b78d6cd760dc4 (patch) | |
tree | 711738d87051eb16eec538a0fa2d8116fc0f5336 /CMakeLists.txt | |
parent | 8ba63026964bce2b8e454f50766627ce629a0da4 (diff) |
Cycles: enable Metal GPU rendering
This adds the remaining bits to enable Metal on macOS. There are still
performance optimizations and other improvements planned, but it should
now be ready for early testing.
This is currently only enabled on in Arm builds for M1 GPUs. It is not
yet working on AMD or Intel GPUs.
Ref T92212
Differential Revision: https://developer.blender.org/D13503
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 59d07fd1a74..5c5b5eb317e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -463,6 +463,11 @@ if(NOT APPLE) mark_as_advanced(CYCLES_HIP_BINARIES_ARCH) endif() +# Apple Metal +if(APPLE) + option(WITH_CYCLES_DEVICE_METAL "Enable Cycles Apple Metal compute support" ON) +endif() + # Draw Manager option(WITH_DRAW_DEBUG "Add extra debug capabilities to Draw Manager" OFF) mark_as_advanced(WITH_DRAW_DEBUG) |