Skip to content

Commit

Permalink
Gate the minimum iOS deployment versions in the generated shaders.
Browse files Browse the repository at this point in the history
  • Loading branch information
chinmaygarde authored and dnfield committed Apr 27, 2022
1 parent c66b7fb commit f700873
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion impeller/renderer/allocator.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion impeller/renderer/platform.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions impeller/tools/build_metal_library.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ def Main():
elif args.platform == "ios":
command += [
"--std=ios-metal1.2",
"-mios-version-min=10.0",
]

if args.optimize:
Expand Down

0 comments on commit f700873

Please sign in to comment.