ios: Pass CAMetalLayer instead of void* to Obj-C++ bridging header

This commit is contained in:
wheremyfoodat 2025-03-08 22:11:56 +02:00
parent e378a52b5a
commit 90279e6f9e
4 changed files with 14 additions and 6 deletions

View file

@ -673,7 +673,7 @@ if(ENABLE_METAL AND APPLE)
target_compile_definitions(AlberCore PUBLIC "PANDA3DS_ENABLE_METAL=1")
target_include_directories(AlberCore PRIVATE third_party/metal-cpp)
# TODO: check if all of them are needed
target_link_libraries(AlberCore PRIVATE "-framework Metal" "-framework Foundation" "-framework QuartzCore" resources_renderer_mtl)
target_link_libraries(AlberCore PUBLIC "-framework Metal" "-framework Foundation" "-framework QuartzCore" resources_renderer_mtl)
endif()
source_group("Header Files\\Core" FILES ${HEADER_FILES})