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:
parent
65cc8c2b31
commit
9785fba66e
@ -115,6 +115,11 @@ namespace dxvk {
|
||||
}
|
||||
|
||||
|
||||
HANDLE STDMETHODCALLTYPE D3D11SwapChain::GetFrameLatencyEvent() {
|
||||
return m_frameLatencyEvent;
|
||||
}
|
||||
|
||||
|
||||
HRESULT STDMETHODCALLTYPE D3D11SwapChain::ChangeProperties(
|
||||
const DXGI_SWAP_CHAIN_DESC1* pDesc) {
|
||||
|
||||
|
@ -58,6 +58,8 @@ namespace dxvk {
|
||||
|
||||
UINT STDMETHODCALLTYPE GetFrameLatency();
|
||||
|
||||
HANDLE STDMETHODCALLTYPE GetFrameLatencyEvent();
|
||||
|
||||
HRESULT STDMETHODCALLTYPE ChangeProperties(
|
||||
const DXGI_SWAP_CHAIN_DESC1* pDesc);
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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();
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user