我有问题,有错误无法创建的DirectX设备和Swapchain
if (FAILED(D3D11CreateDeviceAndSwapChain( nullptr, D3D_DRIVER_TYPE_HARDWARE, nullptr, createFlags, requestedLevels, sizeof(requestedLevels)/sizeof(D3D_FEATURE_LEVEL), D3D11_SDK_VERSION, &scd, &pSwapChain, &pDevice, &obtainedLevel, &pContext))) { MessageBox(hWnd, "Failed to create directX device and swapchain!", "Error", MB_ICONERROR); return NULL; }
消息显示截至任何时候都使用该.dll文件
我重新安装DirectX和Nvidia公司驱动程序。 下一步是什么? (其他电脑工作正常)
什么是请求的功能级别,创建标志,交换链的描述等。您没有发布足够的代码以及D3D11CreateDeviceAndSwapChain返回什么类型的HRESULT值? – Asesh
https://pastebin.com/4hMvjhP5 –
你可以编辑你的帖子吗?就像我说的你没有发布足够的代码 – Asesh