Path: blob/main_old/src/tests/deqp_support/angle_deqp_libtester.h
1693 views
//1// Copyright 2014 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// angle_deqp_libtester.h:7// Exports for the ANGLE dEQP libtester module.89#ifndef ANGLE_DEQP_LIBTESTER_H_10#define ANGLE_DEQP_LIBTESTER_H_1112#include <stdint.h>1314#if defined(_WIN32)15# if defined(ANGLE_DEQP_LIBTESTER_IMPLEMENTATION)16# define ANGLE_LIBTESTER_EXPORT __declspec(dllexport)17# else18# define ANGLE_LIBTESTER_EXPORT __declspec(dllimport)19# endif20#elif defined(__GNUC__)21# if defined(ANGLE_DEQP_LIBTESTER_IMPLEMENTATION)22# define ANGLE_LIBTESTER_EXPORT __attribute__((visibility("default")))23# else24# define ANGLE_LIBTESTER_EXPORT25# endif26#else27# define ANGLE_LIBTESTER_EXPORT28#endif2930// Possible results of deqp_libtester_run31enum class dEQPTestResult32{33Pass,34Fail,35NotSupported,36Exception,37};3839struct dEQPOptions40{41uint32_t preRotation;42bool enableDirectSPIRVGen; // TODO: remove when no longer needed. http://anglebug.com/621043bool enableRenderDocCapture;44};4546// Exported to the tester app.47ANGLE_LIBTESTER_EXPORT int deqp_libtester_main(int argc, const char *argv[]);48ANGLE_LIBTESTER_EXPORT bool deqp_libtester_init_platform(int argc,49const char *argv[],50void *logErrorFunc,51const dEQPOptions &options);52ANGLE_LIBTESTER_EXPORT void deqp_libtester_shutdown_platform();53ANGLE_LIBTESTER_EXPORT dEQPTestResult deqp_libtester_run(const char *caseName);5455#endif // ANGLE_DEQP_LIBTESTER_H_565758