1 // 2 // Copyright 2020 The ANGLE Project Authors. All rights reserved. 3 // Use of this source code is governed by a BSD-style license that can be 4 // found in the LICENSE file. 5 // 6 7 #ifndef ANGLE_TESTS_ANGLE_TEST_PLATFORM_H_ 8 #define ANGLE_TESTS_ANGLE_TEST_PLATFORM_H_ 9 10 #include <string> 11 12 #include "util/util_gl.h" 13 14 // Driver vendors 15 bool IsAdreno(); 16 17 // Renderer back-ends 18 bool IsD3D11(); 19 // Is a D3D9-class renderer. 20 bool IsD3D9(); 21 bool IsDesktopOpenGL(); 22 bool IsOpenGLES(); 23 bool IsOpenGL(); 24 bool IsNULL(); 25 bool IsVulkan(); 26 bool IsMetal(); 27 bool IsD3D(); 28 29 // Debug/Release 30 bool IsDebug(); 31 bool IsRelease(); 32 33 bool EnsureGLExtensionEnabled(const std::string &extName); 34 bool IsEGLClientExtensionEnabled(const std::string &extName); 35 bool IsEGLDeviceExtensionEnabled(EGLDeviceEXT device, const std::string &extName); 36 bool IsEGLDisplayExtensionEnabled(EGLDisplay display, const std::string &extName); 37 bool IsGLExtensionEnabled(const std::string &extName); 38 bool IsGLExtensionRequestable(const std::string &extName); 39 40 #endif // ANGLE_TESTS_ANGLE_TEST_PLATFORM_H_ 41