blob: f8e7cd8ad0c7d2b9301ee796048a6a2fecd6e509 [file] [log] [blame]
//
// Copyright 2019 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.
//
// This file includes APIs to detect whether certain Apple renderer is availabe for testing.
//
#include "test_utils/angle_test_instantiate_apple.h"
#include "common/apple_platform_utils.h"
namespace angle
{
bool IsMetalRendererAvailable()
{
// NOTE(hqle): This code is currently duplicated with rx::IsMetalDisplayAvailable().
// Consider move it to a common source code accessible to both libANGLE and test apps.
if (ANGLE_APPLE_AVAILABLE_XCI(10.13, 13.0, 11))
{
return true;
}
return false;
}
} // namespace angle