1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71
|
// Copyright 2017 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
#pragma once
#include <gtest/gtest.h>
#include <string>
#include <vector>
#include "ospray/ospray_cpp.h"
#include "ospray/ospray_cpp/ext/rkcommon.h"
using namespace ospray;
using namespace rkcommon::math;
namespace sycl {
inline namespace _V1 {
class queue;
}
} // namespace sycl
class OSPRayEnvironment : public ::testing::Environment
{
public:
OSPRayEnvironment(int argc, char **argv);
~OSPRayEnvironment()
#ifndef SYCL_LANGUAGE_VERSION
= default
#endif
;
bool GetDumpImg() const
{
return dumpImg;
}
std::string GetRendererType() const
{
return rendererType;
}
vec2i GetImgSize() const
{
return imgSize;
}
std::string GetBaselineDir() const
{
return baselineDir;
}
std::string GetFailedDir() const
{
return failedDir;
}
#ifdef SYCL_LANGUAGE_VERSION
sycl::queue *GetAppsSyclQueue();
#endif
void ParseArgs(int argc, char **argv);
std::string GetStrArgValue(std::string *arg) const;
int GetNumArgValue(std::string *arg) const;
private:
bool dumpImg{false};
std::string rendererType{"scivis"};
std::string baselineDir{"regression_test_baseline"};
std::string failedDir{false};
vec2i imgSize{1024, 768};
bool ownSYCL{false};
#ifdef SYCL_LANGUAGE_VERSION
sycl::queue *appsSyclQueue{nullptr};
#endif
};
|