1 // 2 // Copyright 2019 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 TEST_EXPECTATIONS_GPU_TEST_CONFIG_H_ 8 #define TEST_EXPECTATIONS_GPU_TEST_CONFIG_H_ 9 10 #include <common/bitset_utils.h> 11 12 namespace angle 13 { 14 15 struct GPUTestConfig 16 { 17 public: 18 enum API 19 { 20 kAPIUnknown = 0, 21 kAPID3D9, 22 kAPID3D11, 23 kAPIGLDesktop, 24 kAPIGLES, 25 kAPIVulkan, 26 kAPISwiftShader, 27 kAPIMetal, 28 }; 29 30 enum Condition 31 { 32 kConditionNone = 0, 33 kConditionWinXP, 34 kConditionWinVista, 35 kConditionWin7, 36 kConditionWin8, 37 kConditionWin10, 38 kConditionWin, 39 kConditionMacLeopard, 40 kConditionMacSnowLeopard, 41 kConditionMacLion, 42 kConditionMacMountainLion, 43 kConditionMacMavericks, 44 kConditionMacYosemite, 45 kConditionMacElCapitan, 46 kConditionMacSierra, 47 kConditionMacHighSierra, 48 kConditionMacMojave, 49 kConditionMac, 50 kConditionIOS, 51 kConditionLinux, 52 kConditionAndroid, 53 kConditionNVIDIA, 54 kConditionAMD, 55 kConditionIntel, 56 kConditionVMWare, 57 kConditionRelease, 58 kConditionDebug, 59 kConditionD3D9, 60 kConditionD3D11, 61 kConditionGLDesktop, 62 kConditionGLES, 63 kConditionVulkan, 64 kConditionMetal, 65 kConditionNexus5X, 66 kConditionPixel2OrXL, 67 kConditionPixel4OrXL, 68 kConditionNVIDIAQuadroP400, 69 kConditionSwiftShader, 70 kConditionPreRotation, 71 kConditionPreRotation90, 72 kConditionPreRotation180, 73 kConditionPreRotation270, 74 75 kNumberOfConditions, 76 }; 77 78 using ConditionArray = angle::BitSet<GPUTestConfig::kNumberOfConditions>; 79 80 GPUTestConfig(); 81 GPUTestConfig(bool isSwiftShader); 82 GPUTestConfig(const API &api, uint32_t preRotation); 83 84 const GPUTestConfig::ConditionArray &getConditions() const; 85 86 protected: 87 GPUTestConfig::ConditionArray mConditions; 88 }; 89 90 } // namespace angle 91 92 #endif // TEST_EXPECTATIONS_GPU_TEST_CONFIG_H_ 93