aboutsummaryrefslogtreecommitdiff
path: root/dxcommon/dxcommon.h
diff options
context:
space:
mode:
authorMarc Sunet <marc.sunet@amd.com>2025-11-19 11:24:21 -0800
committerMarc Sunet <marc.sunet@amd.com>2025-11-19 11:24:21 -0800
commit556cf073d61875368fe8511b75f5cb7db04ccb52 (patch)
tree356c3cfdfa926b7e3b11767dc76ab981610a463b /dxcommon/dxcommon.h
parent5516490fd5bea08d253dcaed59c430c2dada5c2d (diff)
Use C++ modules
Diffstat (limited to 'dxcommon/dxcommon.h')
-rw-r--r--dxcommon/dxcommon.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/dxcommon/dxcommon.h b/dxcommon/dxcommon.h
new file mode 100644
index 0000000..addb8c3
--- /dev/null
+++ b/dxcommon/dxcommon.h
@@ -0,0 +1,17 @@
1#pragma once
2
3#include <d3d12.h>
4#include <dxgi1_4.h>
5#include <directx/d3dx12.h>
6
7#define THROW(error) throw exception(error, __FILE__, __LINE__)
8
9#define ThrowIfFailed(result) \
10{\
11 if (result != S_OK) \
12 {\
13 THROW(result);\
14 }\
15}
16
17//#define IID_PPV_ARGS(ppType) __uuidof(**(ppType)), static_cast<void**>(ppType)