From fd01dbb17a98d17bf5e4dec616f3bd67c91f7506 Mon Sep 17 00:00:00 2001 From: Jack Andersen Date: Sun, 20 Dec 2015 15:06:08 -1000 Subject: [PATCH] Brought windows in sync --- lib/graphicsdev/D3D11.cpp | 5 +++++ lib/graphicsdev/D3D12.cpp | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/lib/graphicsdev/D3D11.cpp b/lib/graphicsdev/D3D11.cpp index 9bf7050..efcf9c6 100644 --- a/lib/graphicsdev/D3D11.cpp +++ b/lib/graphicsdev/D3D11.cpp @@ -795,6 +795,11 @@ struct D3D11CommandQueue : IGraphicsCommandQueue m_texResizes[ctex] = std::make_pair(width, height); } + void schedulePostFrameHandler(std::function&& func) + { + func(); + } + float m_clearColor[4] = {0.0,0.0,0.0,1.0}; void setClearColor(const float rgba[4]) { diff --git a/lib/graphicsdev/D3D12.cpp b/lib/graphicsdev/D3D12.cpp index 1428129..7097c19 100644 --- a/lib/graphicsdev/D3D12.cpp +++ b/lib/graphicsdev/D3D12.cpp @@ -1058,6 +1058,11 @@ struct D3D12CommandQueue : IGraphicsCommandQueue m_texResizes[ctex] = std::make_pair(width, height); } + void schedulePostFrameHandler(std::function&& func) + { + func(); + } + float m_clearColor[4] = {0.0,0.0,0.0,1.0}; void setClearColor(const float rgba[4]) {