Gate the minimum iOS deployment versions in the generated shaders.

This commit is contained in:
Chinmay Garde 2022-01-31 14:57:21 -08:00 committed by Dan Field
parent 5ab0413c4f
commit da1929b38b
3 changed files with 3 additions and 2 deletions

View File

@ -15,7 +15,7 @@ bool Allocator::RequiresExplicitHostSynchronization(StorageMode mode) {
return false;
}
#if FML_OS_IOS
#if OS_IOS
// StorageMode::kHostVisible is MTLStorageModeShared already.
return false;
#else // OS_IOS

View File

@ -12,7 +12,7 @@
namespace impeller {
constexpr size_t DefaultUniformAlignment() {
#if FML_OS_IOS
#if OS_IOS
return 16u;
#elif FML_OS_MACOSX
return 256u;

View File

@ -74,6 +74,7 @@ def Main():
elif args.platform == "ios":
command += [
"--std=ios-metal1.2",
"-mios-version-min=10.0",
]
if args.optimize: