• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 //
2 // Copyright 2014 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 // angle_deqp_libtester.h:
8 //   Exports for the ANGLE dEQP libtester module.
9 
10 #ifndef ANGLE_DEQP_LIBTESTER_H_
11 #define ANGLE_DEQP_LIBTESTER_H_
12 
13 #include <stdint.h>
14 
15 #if defined(_WIN32)
16 #    if defined(ANGLE_DEQP_LIBTESTER_IMPLEMENTATION)
17 #        define ANGLE_LIBTESTER_EXPORT __declspec(dllexport)
18 #    else
19 #        define ANGLE_LIBTESTER_EXPORT __declspec(dllimport)
20 #    endif
21 #elif defined(__GNUC__)
22 #    if defined(ANGLE_DEQP_LIBTESTER_IMPLEMENTATION)
23 #        define ANGLE_LIBTESTER_EXPORT __attribute__((visibility("default")))
24 #    else
25 #        define ANGLE_LIBTESTER_EXPORT
26 #    endif
27 #else
28 #    define ANGLE_LIBTESTER_EXPORT
29 #endif
30 
31 // Possible results of deqp_libtester_run
32 enum class dEQPTestResult
33 {
34     Pass,
35     Fail,
36     NotSupported,
37     Exception,
38 };
39 
40 // Exported to the tester app.
41 ANGLE_LIBTESTER_EXPORT int deqp_libtester_main(int argc, const char *argv[]);
42 ANGLE_LIBTESTER_EXPORT bool deqp_libtester_init_platform(int argc,
43                                                          const char *argv[],
44                                                          void *logErrorFunc,
45                                                          uint32_t preRotation,
46                                                          bool enableRenderDocCapture);
47 ANGLE_LIBTESTER_EXPORT void deqp_libtester_shutdown_platform();
48 ANGLE_LIBTESTER_EXPORT dEQPTestResult deqp_libtester_run(const char *caseName);
49 
50 #endif  // ANGLE_DEQP_LIBTESTER_H_
51