In MoltenVK >= 1.2.10, the useMetalArgumentBuffers private configuration parameter has changed from an enum to a boolean. This causes a compile failure with a mismatched type. This PR does the following:
Removes reference to the missing enum type and values, and instead uses a decltype() cast from an int to provide compatibility between old and new SDK (MoltenVK) versions.
Updates the cmake-xcode-debug.sh script to define MVK_CONFIG_USE_METAL_ARGUMENT_BUFFERS=1(On) for compatibility between old and new SDK (MoltenVK) versions.
This is a macOS-only fix.
In MoltenVK >= 1.2.10, the
useMetalArgumentBuffers
private configuration parameter has changed from an enum to a boolean. This causes a compile failure with a mismatched type. This PR does the following:decltype()
cast from an int to provide compatibility between old and new SDK (MoltenVK) versions.MVK_CONFIG_USE_METAL_ARGUMENT_BUFFERS=1
(On) for compatibility between old and new SDK (MoltenVK) versions.CVAR_NEW
tag tor_mvk*
cvar declarations.