feat: initial DX12 foundation framework

This commit is contained in:
SpecialX
2026-03-19 18:27:49 +08:00
commit 60f73b525d
70 changed files with 8993 additions and 0 deletions

View File

@@ -0,0 +1,55 @@
#pragma once
#ifdef _WIN64
#pragma warning(disable: 4530)
#endif // _WIN64
#include <stdint.h>
#include <assert.h>
#include <typeinfo>
#include <memory>
#include <unordered_map>
#include <string>
#include <mutex>
#include <cstring>
//#define USESTDFUNC
#if defined USESTDFUNC
#include <functional>
#endif
#if defined(_WIN64)
#include <DirectXMath.h>
#endif
#ifndef DISABLE_COPY
#define DISABLE_COPY(T) \
explicit T(const T&) = delete; \
T& operator=(const T&) = delete;
#endif
#ifndef DISABLE_MOVE
#define DISABLE_MOVE(T) \
explicit T(T&&) = delete; \
T& operator=(T&&) = delete
#endif
#ifndef DISABLE_COPY_AND_MOVE
#define DISABLE_COPY_AND_MOVE(T) DISABLE_COPY(T) DISABLE_MOVE(T);
#endif
#ifdef _DEBUG
#define DEBUG_OP(x) x
#else
#define DEBUG_OP(x)
#endif
//Common Header
#include "XEnginType.h"
#include "..\Utilities\Math.h"
#include "..\Utilities\MathTypes.h"
#include "..\Utilities\Utilities.h"
#include "Id.h"