1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-12-02 19:24:12 +01:00

[dxgi] Bumped DxgiDevice to IDXGIDevice1

This commit is contained in:
Philip Rebohle 2017-12-09 14:45:52 +01:00
parent 4a0ff5343a
commit c92d68417e
3 changed files with 23 additions and 1 deletions

View File

@ -20,6 +20,7 @@ namespace dxvk {
COM_QUERY_IFACE(riid, ppvObject, IUnknown); COM_QUERY_IFACE(riid, ppvObject, IUnknown);
COM_QUERY_IFACE(riid, ppvObject, IDXGIObject); COM_QUERY_IFACE(riid, ppvObject, IDXGIObject);
COM_QUERY_IFACE(riid, ppvObject, IDXGIDevice); COM_QUERY_IFACE(riid, ppvObject, IDXGIDevice);
COM_QUERY_IFACE(riid, ppvObject, IDXGIDevice1);
COM_QUERY_IFACE(riid, ppvObject, IDXGIDevicePrivate); COM_QUERY_IFACE(riid, ppvObject, IDXGIDevicePrivate);
if (m_layer != nullptr) if (m_layer != nullptr)
@ -79,6 +80,21 @@ namespace dxvk {
} }
HRESULT DxgiDevice::GetMaximumFrameLatency(
UINT* pMaxLatency) {
Logger::warn("DxgiDevice::GetMaximumFrameLatency: Stub");
*pMaxLatency = 1;
return S_OK;
}
HRESULT DxgiDevice::SetMaximumFrameLatency(
UINT MaxLatency) {
Logger::warn("DxgiDevice::SetMaximumFrameLatency: Stub");
return S_OK;
}
void DxgiDevice::SetDeviceLayer(IUnknown* layer) { void DxgiDevice::SetDeviceLayer(IUnknown* layer) {
m_layer = layer; m_layer = layer;
} }

View File

@ -47,6 +47,12 @@ namespace dxvk {
HRESULT SetGPUThreadPriority( HRESULT SetGPUThreadPriority(
INT Priority) final; INT Priority) final;
HRESULT GetMaximumFrameLatency(
UINT* pMaxLatency) final;
HRESULT SetMaximumFrameLatency(
UINT MaxLatency) final;
void SetDeviceLayer( void SetDeviceLayer(
IUnknown* layer) final; IUnknown* layer) final;

View File

@ -52,7 +52,7 @@ IDXGIAdapterPrivate : public IDXGIAdapter1 {
* this interface. * this interface.
*/ */
MIDL_INTERFACE("7a622cf6-627a-46b2-b52f-360ef3da831c") MIDL_INTERFACE("7a622cf6-627a-46b2-b52f-360ef3da831c")
IDXGIDevicePrivate : public IDXGIDevice { IDXGIDevicePrivate : public IDXGIDevice1 {
static const GUID guid; static const GUID guid;
virtual void SetDeviceLayer( virtual void SetDeviceLayer(