Add Dolphin version and current video backend to shader compilation logs

This commit is contained in:
Ryan Meredith
2020-01-24 03:29:38 -05:00
parent 04e9279f3d
commit e5f6d9320f
5 changed files with 35 additions and 9 deletions

View File

@ -10,10 +10,13 @@
#include <string>
#include <vector>
#include "fmt/format.h"
#include "Common/ChunkFile.h"
#include "Common/CommonTypes.h"
#include "Common/Event.h"
#include "Common/Logging/Log.h"
#include "Core/ConfigManager.h"
#include "Core/Core.h"
@ -68,6 +71,12 @@ __declspec(dllexport) DWORD NvOptimusEnablement = 1;
}
#endif
std::string VideoBackendBase::BadShaderFilename(const char* shader_stage, int counter)
{
return fmt::format("{}bad_{}_{}_{}.txt", File::GetUserPath(D_DUMP_IDX), shader_stage,
g_video_backend->GetName(), counter);
}
void VideoBackendBase::Video_ExitLoop()
{
Fifo::ExitGpuLoop();