mirror of
https://github.com/doitsujin/dxvk.git
synced 2024-12-02 10:24:12 +01:00
[dxgi] Bumped DxgiDevice to IDXGIDevice1
This commit is contained in:
parent
4a0ff5343a
commit
c92d68417e
@ -20,6 +20,7 @@ namespace dxvk {
|
||||
COM_QUERY_IFACE(riid, ppvObject, IUnknown);
|
||||
COM_QUERY_IFACE(riid, ppvObject, IDXGIObject);
|
||||
COM_QUERY_IFACE(riid, ppvObject, IDXGIDevice);
|
||||
COM_QUERY_IFACE(riid, ppvObject, IDXGIDevice1);
|
||||
COM_QUERY_IFACE(riid, ppvObject, IDXGIDevicePrivate);
|
||||
|
||||
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) {
|
||||
m_layer = layer;
|
||||
}
|
||||
|
@ -47,6 +47,12 @@ namespace dxvk {
|
||||
HRESULT SetGPUThreadPriority(
|
||||
INT Priority) final;
|
||||
|
||||
HRESULT GetMaximumFrameLatency(
|
||||
UINT* pMaxLatency) final;
|
||||
|
||||
HRESULT SetMaximumFrameLatency(
|
||||
UINT MaxLatency) final;
|
||||
|
||||
void SetDeviceLayer(
|
||||
IUnknown* layer) final;
|
||||
|
||||
|
@ -52,7 +52,7 @@ IDXGIAdapterPrivate : public IDXGIAdapter1 {
|
||||
* this interface.
|
||||
*/
|
||||
MIDL_INTERFACE("7a622cf6-627a-46b2-b52f-360ef3da831c")
|
||||
IDXGIDevicePrivate : public IDXGIDevice {
|
||||
IDXGIDevicePrivate : public IDXGIDevice1 {
|
||||
static const GUID guid;
|
||||
|
||||
virtual void SetDeviceLayer(
|
||||
|
Loading…
Reference in New Issue
Block a user