Path: blob/main_old/src/tests/test_utils/angle_test_platform.h
1693 views
//1// Copyright 2020 The ANGLE Project Authors. All rights reserved.2// Use of this source code is governed by a BSD-style license that can be3// found in the LICENSE file.4//56#ifndef ANGLE_TESTS_ANGLE_TEST_PLATFORM_H_7#define ANGLE_TESTS_ANGLE_TEST_PLATFORM_H_89#include <string>1011#include "util/util_gl.h"1213// Driver vendors14bool IsAdreno();1516// Renderer back-ends17// Note: FL9_3 is explicitly *not* considered D3D11.18bool IsD3D11();19bool IsD3D11_FL93();20// Is a D3D9-class renderer.21bool IsD3D9();22// Is D3D9 or SM9_3 renderer.23bool IsD3DSM3();24bool IsDesktopOpenGL();25bool IsOpenGLES();26bool IsOpenGL();27bool IsNULL();28bool IsVulkan();29bool IsMetal();30bool IsD3D();3132// Debug/Release33bool IsDebug();34bool IsRelease();3536bool EnsureGLExtensionEnabled(const std::string &extName);37bool IsEGLClientExtensionEnabled(const std::string &extName);38bool IsEGLDeviceExtensionEnabled(EGLDeviceEXT device, const std::string &extName);39bool IsEGLDisplayExtensionEnabled(EGLDisplay display, const std::string &extName);40bool IsGLExtensionEnabled(const std::string &extName);41bool IsGLExtensionRequestable(const std::string &extName);4243#endif // ANGLE_TESTS_ANGLE_TEST_PLATFORM_H_444546