Blender had some support for using MoltenVK. However there are some key issues why MotlenVK cannot be used. Bugs have been reported up-stream. As it doesn't work and holds back regular developments it will be removed from the main branch. Any efforts on making Vulkan run on Apple (including KosmicKrisp) is considered a community effort and can be done in a development branch. Pull Request: https://projects.blender.org/blender/blender/pulls/144602
29 lines
483 B
CMake
29 lines
483 B
CMake
# SPDX-FileCopyrightText: 2022 Blender Foundation
|
|
#
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
set(INC
|
|
.
|
|
)
|
|
|
|
set(INC_SYS
|
|
${VULKAN_INCLUDE_DIRS}
|
|
)
|
|
|
|
set(SRC
|
|
vk_mem_alloc_impl.cc
|
|
|
|
vk_mem_alloc.h
|
|
)
|
|
|
|
set(LIB
|
|
)
|
|
|
|
blender_add_lib(extern_vulkan_memory_allocator "${SRC}" "${INC}" "${INC_SYS}" "${LIB}")
|
|
|
|
if(CMAKE_COMPILER_IS_GNUCC OR CMAKE_C_COMPILER_ID MATCHES "Clang")
|
|
target_compile_options(extern_vulkan_memory_allocator
|
|
PRIVATE "-Wno-nullability-completeness"
|
|
)
|
|
endif()
|