• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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         kConditionLinux,
51         kConditionAndroid,
52         kConditionNVIDIA,
53         kConditionAMD,
54         kConditionIntel,
55         kConditionVMWare,
56         kConditionRelease,
57         kConditionDebug,
58         kConditionD3D9,
59         kConditionD3D11,
60         kConditionGLDesktop,
61         kConditionGLES,
62         kConditionVulkan,
63         kConditionMetal,
64         kConditionNexus5X,
65         kConditionPixel2OrXL,
66         kConditionNVIDIAQuadroP400,
67         kConditionSwiftShader,
68 
69         kNumberOfConditions,
70     };
71 
72     using ConditionArray = angle::BitSet<GPUTestConfig::kNumberOfConditions>;
73 
74     GPUTestConfig();
75     GPUTestConfig(const API &api);
76 
77     const GPUTestConfig::ConditionArray &getConditions() const;
78 
79   protected:
80     GPUTestConfig::ConditionArray mConditions;
81 };
82 
83 }  // namespace angle
84 
85 #endif  // TEST_EXPECTATIONS_GPU_TEST_CONFIG_H_
86