Minor D3D9 fixes

This commit is contained in:
Henrik Rydgård 2020-10-30 23:58:53 +01:00
parent b7d674411e
commit 8d70fd269e
3 changed files with 8 additions and 2 deletions

View File

@ -7,6 +7,8 @@
#include "Common/GPU/D3D9/D3D9ShaderCompiler.h"
#include "Common/CommonFuncs.h"
#include "Common/SysError.h"
#include "Common/Log.h"
#include "Common/StringUtils.h"
struct ID3DXConstantTable;
@ -29,6 +31,10 @@ LPD3DBLOB CompileShaderToByteCodeD3D9(const char *code, const char *target, std:
if (pErrorMsg) {
*errorMessage = (CHAR *)pErrorMsg->GetBufferPointer();
OutputDebugStringUTF8(LineNumberString(std::string(code)).c_str());
OutputDebugStringUTF8(errorMessage->c_str());
pErrorMsg->Release();
} else if (FAILED(hr)) {
*errorMessage = GetStringErrorMsg(hr);

View File

@ -51,7 +51,7 @@ static const char *vscode =
"struct VS_IN {\n"
" float4 ObjPos : POSITION;\n"
" float2 Uv : TEXCOORD0;\n"
"};"
"};\n"
"struct VS_OUT {\n"
" float2 Uv : TEXCOORD0;\n"
" float4 ProjPos : SV_Position;\n"

View File

@ -52,7 +52,7 @@ static const char *vscode = R"(
struct VS_IN {
float4 ObjPos : POSITION;
float2 Uv : TEXCOORD0;
};"
};
struct VS_OUT {
float4 ProjPos : POSITION;
float2 Uv : TEXCOORD0;