mirror of
https://github.com/doitsujin/dxvk.git
synced 2024-12-02 10:24:12 +01:00
[dxgi] Advertize support for ID3D10Device and ID3D10Device1
We don't actually support these, but applications can reasonably assume that D3D10 is supported if D3D11 is present. Closes #329.
This commit is contained in:
parent
27d3a78d79
commit
77d0424d7f
@ -1,6 +1,8 @@
|
|||||||
#include <cstdlib>
|
#include <cstdlib>
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
|
|
||||||
|
#include <d3d10_1.h>
|
||||||
|
|
||||||
#include "dxgi_adapter.h"
|
#include "dxgi_adapter.h"
|
||||||
#include "dxgi_device.h"
|
#include "dxgi_device.h"
|
||||||
#include "dxgi_enums.h"
|
#include "dxgi_enums.h"
|
||||||
@ -55,6 +57,12 @@ namespace dxvk {
|
|||||||
if (pUMDVersion != nullptr)
|
if (pUMDVersion != nullptr)
|
||||||
*pUMDVersion = LARGE_INTEGER();
|
*pUMDVersion = LARGE_INTEGER();
|
||||||
|
|
||||||
|
if (InterfaceName == __uuidof(ID3D10Device)
|
||||||
|
|| InterfaceName == __uuidof(ID3D10Device1)) {
|
||||||
|
Logger::warn("DXGI: CheckInterfaceSupport: No D3D10 support");
|
||||||
|
return S_OK;
|
||||||
|
}
|
||||||
|
|
||||||
Logger::err("DXGI: CheckInterfaceSupport: Unsupported interface");
|
Logger::err("DXGI: CheckInterfaceSupport: Unsupported interface");
|
||||||
Logger::err(str::format(InterfaceName));
|
Logger::err(str::format(InterfaceName));
|
||||||
return DXGI_ERROR_UNSUPPORTED;
|
return DXGI_ERROR_UNSUPPORTED;
|
||||||
|
Loading…
Reference in New Issue
Block a user