summaryrefslogtreecommitdiff
path: root/Runtime/GfxDevice/d3d11/D3D11Utils.h
diff options
context:
space:
mode:
Diffstat (limited to 'Runtime/GfxDevice/d3d11/D3D11Utils.h')
-rw-r--r--Runtime/GfxDevice/d3d11/D3D11Utils.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/Runtime/GfxDevice/d3d11/D3D11Utils.h b/Runtime/GfxDevice/d3d11/D3D11Utils.h
new file mode 100644
index 0000000..69c5f44
--- /dev/null
+++ b/Runtime/GfxDevice/d3d11/D3D11Utils.h
@@ -0,0 +1,20 @@
+#pragma once
+
+#include "D3D11Includes.h"
+
+//#define DUMMY_D3D11_CALLS
+
+#ifndef DUMMY_D3D11_CALLS
+#define D3D11_CALL(x) x
+#define D3D11_CALL_HR(x) x
+#else
+HRESULT CallDummyD3D11Function();
+#define D3D11_CALL(x) CallDummyD3D11Function()
+#define D3D11_CALL_HR(x) CallDummyD3D11Function()
+#endif
+
+int GetBPPFromDXGIFormat (DXGI_FORMAT fmt);
+void ReportLiveObjectsD3D11 (ID3D11Device* dev);
+void SetDebugNameD3D11 (ID3D11DeviceChild* obj, const std::string& name);
+std::string GetDebugNameD3D11 (ID3D11DeviceChild* obj);
+