Skip to content

Commit d2abda9

Browse files
committed
DebugUtils.h remove debug break
1 parent 8c0e2d9 commit d2abda9

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

Renderer/Utils/DebugUtils.h

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,12 @@ namespace Utility
6060
#ifdef _DEBUG
6161
#define CheckHR(hr) \
6262
{ \
63-
Utility::CheckHResult(hr, __FILEW__, (DWORD)__LINE__); \
64-
if (FAILED(hr)) __debugbreak(); \
63+
if (FAILED(hr)) \
64+
{ \
65+
Utility::PrintMessage(L"hr = 0x%08X", hr); \
66+
Utility::PrintMessage(L"HRESULT failed in " STRINGIFY_BUILTIN(__FILEW__) " Line: " STRINGIFY_BUILTIN(__LINE__) " \n"); \
67+
__debugbreak(); \
68+
} \
6569
}
6670

6771
#define WARN_IF( isTrue, ... ) \

Shader/MeshRender/ForwardVS.hlsl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,5 +46,9 @@ VSOutput main(VSInput vsInput)
4646
vsOutput.normalWorld = mul(gWorldITMatrix, vsInput.normal * 2.0 - 1.0);
4747
vsOutput.tangetWorld = float4(mul(gWorldITMatrix, vsInput.tanget.xyz * 2.0 - 1.0), vsInput.tanget.w);
4848
vsOutput.shadowCoord = mul(gShadowFinalMatrix, float4(vsOutput.positionWorld, 1.0)).xy;
49+
vsOutput.uv0 = vsInput.uv0;
50+
#ifdef SECOND_UV
51+
vsOutput.uv1 = vsInput.uv1;
52+
#endif
4953
return vsOutput;
5054
}

0 commit comments

Comments
 (0)