// // Copyright 2021 The ANGLE Project Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // // driver_utils_ios.mm : provides ios-specific information about current driver. #include "libANGLE/renderer/driver_utils.h" #import namespace rx { OSVersion GetiOSVersion() { OSVersion result; NSOperatingSystemVersion version = [[NSProcessInfo processInfo] operatingSystemVersion]; result.majorVersion = static_cast(version.majorVersion); result.minorVersion = static_cast(version.minorVersion); result.patchVersion = static_cast(version.patchVersion); return result; } }