安装Graphics Tools
创建可调试的DirectX 12程序
#if defined(_DEBUG)
{
ComPtr<ID3D12Debug> debugController;
ThrowIfFailed(D3D12GetDebugInterface(IID_PPV_ARGS(&debugController)));
debugController->EnableDebugLayer();
}
#endif
HRESULT hr =
D3D12CreateDevice (
NULL, /** Use the Default DXGI Adapter **/
D3D_FEATURE_LEVEL_11_0,
__uuidof(ID3D12Device),
reinterpret_cast<void**>(mDevice.GetInitReference ()));