From 95371a593354d8fe46d9c1f8269429d5476dfc14 Mon Sep 17 00:00:00 2001 From: Yonggang Luo Date: Sat, 30 Apr 2022 04:16:23 +0800 Subject: [PATCH] dxguids: guard Direct3D with __d3d12_h__ By doing this so that WINADAPTER_IID can be used without include of `` Signed-off-by: Yonggang Luo --- include/dxguids/dxguids.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/dxguids/dxguids.h b/include/dxguids/dxguids.h index 0b515d0..6896aac 100644 --- a/include/dxguids/dxguids.h +++ b/include/dxguids/dxguids.h @@ -55,6 +55,7 @@ template <> constexpr GUID uuidof() \ #endif /* _WIN32 */ // Direct3D +#ifdef __d3d12_h__ WINADAPTER_IID(ID3D12Object, 0xc4fec28f, 0x7966, 0x4e95, 0x9f, 0x94, 0xf4, 0x31, 0xcb, 0x56, 0xc3, 0xb8); WINADAPTER_IID(ID3D12DeviceChild, 0x905db94b, 0xa00c, 0x4140, 0x9d, 0xf5, 0x2b, 0x64, 0xca, 0x9e, 0xa3, 0x57); WINADAPTER_IID(ID3D12RootSignature, 0xc54a6b66, 0x72df, 0x4ee8, 0x8b, 0xe5, 0xa9, 0x46, 0xa1, 0x42, 0x92, 0x14); @@ -113,6 +114,7 @@ WINADAPTER_IID(ID3D12SDKConfiguration, 0xe9eb5314, 0x33aa, 0x42b2, 0xa7, 0x18, 0 WINADAPTER_IID(ID3D12GraphicsCommandList5, 0x55050859, 0x4024, 0x474c, 0x87, 0xf5, 0x64, 0x72, 0xea, 0xee, 0x44, 0xea); WINADAPTER_IID(ID3D12GraphicsCommandList6, 0xc3827890, 0xe548, 0x4cfa, 0x96, 0xcf, 0x56, 0x89, 0xa9, 0x37, 0x0f, 0x80); WINADAPTER_IID(ID3D12GraphicsCommandList7, 0xdd171223, 0x8b61, 0x4769, 0x90, 0xe3, 0x16, 0x0c, 0xcd, 0xe4, 0xe2, 0xc1); +#endif #ifdef __d3d12sdklayers_h__ WINADAPTER_IID(ID3D12Debug, 0x344488b7, 0x6846, 0x474b, 0xb9, 0x89, 0xf0, 0x27, 0x44, 0x82, 0x45, 0xe0);