Edit

kc3-lang/angle/src/gpu_info_util/SystemInfo_ios.cpp

Branch :

  • Show log

    Commit

  • Author : Kenneth Russell
    Date : 2021-07-13 16:49:16
    Hash : 2a668d92
    Message : Fix iOS Simulator build after direct-to-Metal upstreaming. Bug: angleproject:5505 Change-Id: I4e690099502be2f2404a25d67356d452cf63451b Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3025240 Reviewed-by: Cody Northrop <cnorthrop@google.com> Reviewed-by: Yuly Novikov <ynovikov@chromium.org> Commit-Queue: Cody Northrop <cnorthrop@google.com>

  • src/gpu_info_util/SystemInfo_ios.cpp
  • //
    // Copyright 2020 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.
    //
    
    // SystemInfo_ios.cpp: implementation of the iOS-specific parts of SystemInfo.h
    
    #include "common/platform.h"
    
    #if defined(ANGLE_PLATFORM_IOS) || (defined(ANGLE_PLATFORM_MACCATALYST) && defined(ANGLE_CPU_ARM64))
    
    #    include "gpu_info_util/SystemInfo_internal.h"
    
    namespace angle
    {
    
    bool GetSystemInfo_ios(SystemInfo *info)
    {
        {
            // TODO(anglebug.com/4275): Get the actual system version and GPU info.
            info->machineModelVersion = "0.0";
            GPUDeviceInfo deviceInfo;
            deviceInfo.vendorId = kVendorID_Apple;
            info->gpus.push_back(deviceInfo);
        }
    
        return true;
    }
    
    }  // namespace angle
    
    #endif  // defined(ANGLE_PLATFORM_IOS) || (defined(ANGLE_PLATFORM_MACCATALYST) &&
            // defined(ANGLE_CPU_ARM64))