From 15740faf9fe9fe4be08965098bbf2947e096aeeb Mon Sep 17 00:00:00 2001 From: chai Date: Wed, 14 Aug 2019 22:50:43 +0800 Subject: +Unity Runtime code --- Runtime/GfxDevice/d3d11/D3D11Utils.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 Runtime/GfxDevice/d3d11/D3D11Utils.h (limited to 'Runtime/GfxDevice/d3d11/D3D11Utils.h') 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); + -- cgit v1.1-26-g67d0