Added: D3D11 project

This commit is contained in:
2026-09-29 22:45:21 +02:00
parent dd2c2ef3b2
commit cfd2960180
21 changed files with 1247 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
#pragma once
#include <Windows.h>
#include <string>
void ShowError(UINT error);
#define CheckError(x) if (x != 0) \
{ \
ShowError(x); \
return x; \
}
#define CheckFailed(hr, x) if (FAILED(hr)) \
{ \
ShowError(x); \
return x; \
}
template<typename T>
void safeRelease(T*& obj)
{
if (obj != nullptr)
{
obj->Release();
obj = nullptr;
}
}