add d3d11 project

This commit is contained in:
2025-12-03 15:50:25 +01:00
parent 770c3f790b
commit 0e73ed0ee3
36 changed files with 2791 additions and 1 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;
}
}