MCPcopy Create free account
hub / github.com/TheRealMJP/DeferredTexturing / GetDXErrorString

Function GetDXErrorString

SampleFramework12/v1.00/Exceptions.h:52–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50}
51
52inline std::wstring GetDXErrorString(HRESULT hr)
53{
54 const uint32 errStringSize = 1024;
55 wchar errorString[errStringSize];
56 DXGetErrorDescriptionW(hr, errorString, errStringSize);
57
58 std::wstring message = L"DirectX Error: ";
59 message += errorString;
60 return message;
61}
62
63inline std::string GetDXErrorStringAnsi(HRESULT hr)
64{

Callers 3

GetDXErrorStringAnsiFunction · 0.85
DXExceptionMethod · 0.85

Calls 1

DXGetErrorDescriptionWFunction · 0.85

Tested by

no test coverage detected