mirror of
https://github.com/open-goal/jak-project
synced 2026-07-08 14:36:52 -04:00
e76a4399e5
This is so I can get rid of wgpu from the launcher, where it's only purpose is to figure out the GPU name for the support package. The problem with it is that on some environments, it errors, but the function cannot have it's errors gracefully handled (it panics and crashes instead). So I'm tired of it, do it ourselves. 
19 lines
400 B
C++
19 lines
400 B
C++
#pragma once
|
|
|
|
#include <string>
|
|
|
|
#include "common/util/json_util.h"
|
|
|
|
namespace tests {
|
|
struct GPUTestOutput {
|
|
bool success;
|
|
std::string error;
|
|
std::string errorCause;
|
|
std::optional<std::string> gpuRendererString;
|
|
std::optional<std::string> gpuVendorString;
|
|
};
|
|
void to_json(json& j, const GPUTestOutput& obj);
|
|
|
|
GPUTestOutput run_gpu_test(const std::string& test_type);
|
|
} // namespace tests
|