(D3D) Comment out Debug functions

This commit is contained in:
twinaphex 2021-03-23 21:23:57 +01:00
parent 605a96a096
commit 26824b1f27
4 changed files with 24 additions and 1 deletions

View File

@ -52,7 +52,9 @@ typedef ID3D10Predicate* D3D10Predicate;
typedef ID3D10Counter* D3D10Counter;
typedef ID3D10Device* D3D10Device;
typedef ID3D10Multithread* D3D10Multithread;
#ifdef DEBUG
typedef ID3D10Debug* D3D10Debug;
#endif
typedef ID3D10SwitchToRef* D3D10SwitchToRef;
typedef ID3D10InfoQueue* D3D10InfoQueue;
@ -821,6 +823,7 @@ static INLINE BOOL D3D10GetMultithreadProtected(D3D10Multithread multithread)
{
return multithread->lpVtbl->GetMultithreadProtected(multithread);
}
#ifdef DEBUG
static INLINE HRESULT D3D10SetDebugFeatureMask(D3D10Debug debug, UINT mask)
{
return debug->lpVtbl->SetFeatureMask(debug, mask);
@ -846,6 +849,7 @@ static INLINE HRESULT D3D10GetSwapChain(D3D10Debug debug, IDXGISwapChain** swap_
return debug->lpVtbl->GetSwapChain(debug, (IDXGISwapChain**)swap_chain);
}
static INLINE HRESULT D3D10Validate(D3D10Debug debug) { return debug->lpVtbl->Validate(debug); }
#endif
static INLINE BOOL D3D10SetUseRef(D3D10SwitchToRef switch_to_ref, BOOL use_ref)
{
return switch_to_ref->lpVtbl->SetUseRef(switch_to_ref, use_ref);
@ -1007,6 +1011,7 @@ static INLINE BOOL D3D10GetBreakOnID(D3D10InfoQueue info_queue, D3D10_MESSAGE_ID
{
return info_queue->lpVtbl->GetBreakOnID(info_queue, id);
}
#ifdef DEBUG
static INLINE void D3D10SetMuteDebugOutput(D3D10InfoQueue info_queue, BOOL mute)
{
info_queue->lpVtbl->SetMuteDebugOutput(info_queue, mute);
@ -1015,6 +1020,7 @@ static INLINE BOOL D3D10GetMuteDebugOutput(D3D10InfoQueue info_queue)
{
return info_queue->lpVtbl->GetMuteDebugOutput(info_queue);
}
#endif
/* end of auto-generated */

View File

@ -74,7 +74,9 @@ typedef ID3D11VideoProcessorOutputView* D3D11VideoProcessorOutputView;
typedef ID3D11VideoContext* D3D11VideoContext;
typedef ID3D11VideoDevice* D3D11VideoDevice;
typedef ID3D11Device* D3D11Device;
#ifdef DEBUG
typedef ID3D11Debug* D3D11Debug;
#endif
typedef ID3D11SwitchToRef* D3D11SwitchToRef;
typedef ID3D11TracingDevice* D3D11TracingDevice;
typedef ID3D11InfoQueue* D3D11InfoQueue;
@ -2141,6 +2143,8 @@ static INLINE UINT D3D11GetExceptionMode(D3D11Device device)
{
return device->lpVtbl->GetExceptionMode(device);
}
#ifdef DEBUG
static INLINE HRESULT D3D11SetDebugFeatureMask(D3D11Debug debug, UINT mask)
{
return debug->lpVtbl->SetFeatureMask(debug, mask);
@ -2177,6 +2181,8 @@ static INLINE HRESULT D3D11ValidateContextForDispatch(D3D11Debug debug, D3D11Dev
{
return debug->lpVtbl->ValidateContextForDispatch(debug, context);
}
#endif
#ifndef __WINRT__
static INLINE BOOL D3D11SetUseRef(D3D11SwitchToRef switch_to_ref, BOOL use_ref)
{
@ -2354,6 +2360,7 @@ static INLINE BOOL D3D11GetBreakOnID(D3D11InfoQueue info_queue, D3D11_MESSAGE_ID
{
return info_queue->lpVtbl->GetBreakOnID(info_queue, id);
}
#ifdef DEBUG
static INLINE void D3D11SetMuteDebugOutput(D3D11InfoQueue info_queue, BOOL mute)
{
info_queue->lpVtbl->SetMuteDebugOutput(info_queue, mute);
@ -2362,6 +2369,7 @@ static INLINE BOOL D3D11GetMuteDebugOutput(D3D11InfoQueue info_queue)
{
return info_queue->lpVtbl->GetMuteDebugOutput(info_queue);
}
#endif
/* end of auto-generated */

View File

@ -63,6 +63,7 @@ DEFINE_GUIDW(IID_ID3D12CommandSignature, 0xc36a797c, 0xec80, 0x4f0a, 0x89, 0x85,
DEFINE_GUIDW(IID_ID3D12CommandList, 0x7116d91c, 0xe7e4, 0x47ce, 0xb8, 0xc6, 0xec, 0x81, 0x68, 0xf4, 0x37, 0xe5);
DEFINE_GUIDW(IID_ID3D12PipelineLibrary, 0xc64226a8, 0x9201, 0x46af, 0xb4, 0xcc, 0x53, 0xfb, 0x9f, 0xf7, 0x41, 0x4f);
DEFINE_GUIDW(IID_ID3D12Device1, 0x77acce80, 0x638e, 0x4e65, 0x88, 0x95, 0xc1, 0xf2, 0x33, 0x86, 0x86, 0x3e);
#ifdef DEBUG
DEFINE_GUIDW(IID_ID3D12Debug, 0x344488b7, 0x6846, 0x474b, 0xb9, 0x89, 0xf0, 0x27, 0x44, 0x82, 0x45, 0xe0);
DEFINE_GUIDW(IID_ID3D12Debug1, 0xaffaa4ca, 0x63fe, 0x4d8e, 0xb8, 0xad, 0x15, 0x90, 0x00, 0xaf, 0x43, 0x04);
DEFINE_GUIDW(IID_ID3D12DebugDevice1, 0xa9b71770, 0xd099, 0x4a65, 0xa6, 0x98, 0x3d, 0xee, 0x10, 0x02, 0x0f, 0x88);
@ -70,6 +71,7 @@ DEFINE_GUIDW(IID_ID3D12DebugDevice, 0x3febd6dd, 0x4973, 0x4787, 0x81, 0x94, 0xe4
DEFINE_GUIDW(IID_ID3D12DebugCommandQueue, 0x09e0bf36, 0x54ac, 0x484f, 0x88, 0x47, 0x4b, 0xae, 0xea, 0xb6, 0x05, 0x3a);
DEFINE_GUIDW(IID_ID3D12DebugCommandList1, 0x102ca951, 0x311b, 0x4b01, 0xb1, 0x1f, 0xec, 0xb8, 0x3e, 0x06, 0x1b, 0x37);
DEFINE_GUIDW(IID_ID3D12DebugCommandList, 0x09e0bf36, 0x54ac, 0x484f, 0x88, 0x47, 0x4b, 0xae, 0xea, 0xb6, 0x05, 0x3f);
#endif
/* clang-format on */
#endif

View File

@ -44,10 +44,12 @@ typedef ID3D12GraphicsCommandList* D3D12GraphicsCommandList;
typedef ID3D12CommandQueue* D3D12CommandQueue;
typedef ID3D12Device* D3D12Device;
typedef ID3D12PipelineLibrary* D3D12PipelineLibrary;
#ifdef DEBUG
typedef ID3D12Debug* D3D12Debug;
typedef ID3D12DebugDevice* D3D12DebugDevice;
typedef ID3D12DebugCommandQueue* D3D12DebugCommandQueue;
typedef ID3D12DebugCommandList* D3D12DebugCommandList;
#endif
typedef ID3D12InfoQueue* D3D12InfoQueue;
static INLINE ULONG D3D12Release(void* object)
@ -936,6 +938,8 @@ D3D12Serialize(D3D12PipelineLibrary pipeline_library, void* data, SIZE_T data_si
{
return pipeline_library->lpVtbl->Serialize(pipeline_library, data, data_size_in_bytes);
}
#ifdef DEBUG
static INLINE ULONG D3D12ReleaseDebug(D3D12Debug debug) { return debug->lpVtbl->Release(debug); }
static INLINE void D3D12EnableDebugLayer(D3D12Debug debug)
{
@ -989,6 +993,8 @@ D3D12GetDebugCommandListFeatureMask(D3D12DebugCommandList debug_command_list)
{
return debug_command_list->lpVtbl->GetFeatureMask(debug_command_list);
}
#endif
static INLINE ULONG D3D12ReleaseInfoQueue(D3D12InfoQueue info_queue)
{
return info_queue->lpVtbl->Release(info_queue);
@ -1159,11 +1165,12 @@ static INLINE BOOL D3D12GetMuteDebugOutput(D3D12InfoQueue info_queue)
}
/* end of auto-generated */
#ifdef DEBUG
static INLINE HRESULT D3D12GetDebugInterface_(D3D12Debug* out)
{
return D3D12GetDebugInterface(uuidof(ID3D12Debug), (void**)out);
}
#endif
static INLINE HRESULT
D3D12CreateDevice_(DXGIAdapter adapter, D3D_FEATURE_LEVEL MinimumFeatureLevel, D3D12Device* out)