summaryrefslogtreecommitdiff
path: root/Runtime/GfxDevice/d3d11/D3D11Utils.h
blob: 69c5f44b9c970b4cc0d5629a715b83f48d9f0aa9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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);