1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-01-18 20:52:10 +01:00

[dxgi] Implement IDXGISwapChain2::GetFrameLatencyWaitableObject

This commit is contained in:
Philip Rebohle 2019-11-26 01:17:22 +01:00
parent 65cc8c2b31
commit 9785fba66e
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99
4 changed files with 13 additions and 2 deletions

View File

@ -115,6 +115,11 @@ namespace dxvk {
}
HANDLE STDMETHODCALLTYPE D3D11SwapChain::GetFrameLatencyEvent() {
return m_frameLatencyEvent;
}
HRESULT STDMETHODCALLTYPE D3D11SwapChain::ChangeProperties(
const DXGI_SWAP_CHAIN_DESC1* pDesc) {

View File

@ -58,6 +58,8 @@ namespace dxvk {
UINT STDMETHODCALLTYPE GetFrameLatency();
HANDLE STDMETHODCALLTYPE GetFrameLatencyEvent();
HRESULT STDMETHODCALLTYPE ChangeProperties(
const DXGI_SWAP_CHAIN_DESC1* pDesc);

View File

@ -58,6 +58,8 @@ IDXGIVkSwapChain : public IUnknown {
virtual UINT STDMETHODCALLTYPE GetFrameLatency() = 0;
virtual HANDLE STDMETHODCALLTYPE GetFrameLatencyEvent() = 0;
virtual HRESULT STDMETHODCALLTYPE ChangeProperties(
const DXGI_SWAP_CHAIN_DESC1* pDesc) = 0;

View File

@ -406,8 +406,10 @@ namespace dxvk {
HANDLE STDMETHODCALLTYPE DxgiSwapChain::GetFrameLatencyWaitableObject() {
Logger::err("DxgiSwapChain::GetFrameLatencyWaitableObject: Not implemented");
return nullptr;
if (!(m_desc.Flags & DXGI_SWAP_CHAIN_FLAG_FRAME_LATENCY_WAITABLE_OBJECT))
return nullptr;
return m_presenter->GetFrameLatencyEvent();
}