File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff 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, ... ) \
Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments