Get D3D shaders to build (though not working correctly)

This commit is contained in:
Henrik Rydgård
2022-07-24 18:43:27 +02:00
parent 787de81437
commit 269bff9c0b
4 changed files with 14 additions and 2 deletions
+5
View File
@@ -23,6 +23,7 @@
#include "Common/Math/lin/matrix4x4.h"
#include "Common/GPU/thin3d.h"
#include "Common/GPU/D3D9/D3D9StateCache.h"
#include "Common/StringUtils.h"
#include "Common/Log.h"
@@ -1062,6 +1063,10 @@ bool D3D9ShaderModule::Compile(LPDIRECT3DDEVICE9 device, const uint8_t *data, si
// No D3D9-compatible shader compiler installed.
error = "D3D9 shader compiler not installed";
}
ERROR_LOG(G3D, "Compile error: %s", error);
ERROR_LOG(G3D, "%s", LineNumberString(std::string((const char *)data)).c_str());
OutputDebugStringA(source);
OutputDebugStringA(error);
if (errorBuffer)