Files
jak-project/game/graphics/gfx_test.h
T
Tyler Wilding e76a4399e5 game: Update game's GPU test to output the GPU vendor info (#3717)
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.


![image](https://github.com/user-attachments/assets/fa8ae365-b3f7-4794-81ed-fde0c2ffc651)
2024-10-19 15:56:43 -04:00

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