zink: Fix MacOS compiling issues
Add a moltenvk-dir build option to supply the MacOS Vulkan SDK MoltenVK location. Force compiler, for zink only, into object-c mode when MoltenVK is used to allow for the MacOS ioSurface and CAMetalLayer types that the headers expose. Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11129>
This commit is contained in:

committed by
Marge Bot

parent
3102892fb8
commit
a2d6a5f885
@@ -223,6 +223,12 @@ option(
|
||||
value : '',
|
||||
description : 'Location relative to prefix to put vulkan icds on install. Default: $datadir/vulkan/icd.d'
|
||||
)
|
||||
option(
|
||||
'moltenvk-dir',
|
||||
type : 'string',
|
||||
value : '',
|
||||
description : 'Location of the MoltenVk SDK. Default: '
|
||||
)
|
||||
option(
|
||||
'vulkan-layers',
|
||||
type : 'array',
|
||||
|
Reference in New Issue
Block a user