summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngineD3D11
diff options
context:
space:
mode:
authorassiduous <assiduous@diligentgraphics.com>2020-07-23 22:24:54 +0000
committerassiduous <assiduous@diligentgraphics.com>2020-08-02 19:21:32 +0000
commita78add37a57b51d80ef2fd21a7a0799ba73dd937 (patch)
tree76bf8bf0afdc1bc872cdda0bcbcf3e973bcbdaa9 /Graphics/GraphicsEngineD3D11
parentSwitched to using Volk on Windows (https://github.com/DiligentGraphics/Dilige... (diff)
downloadDiligentCore-a78add37a57b51d80ef2fd21a7a0799ba73dd937.tar.gz
DiligentCore-a78add37a57b51d80ef2fd21a7a0799ba73dd937.zip
Added Render pass interface stub
Diffstat (limited to 'Graphics/GraphicsEngineD3D11')
-rw-r--r--Graphics/GraphicsEngineD3D11/include/RenderDeviceD3D11Impl.hpp4
-rw-r--r--Graphics/GraphicsEngineD3D11/src/RenderDeviceD3D11Impl.cpp11
2 files changed, 15 insertions, 0 deletions
diff --git a/Graphics/GraphicsEngineD3D11/include/RenderDeviceD3D11Impl.hpp b/Graphics/GraphicsEngineD3D11/include/RenderDeviceD3D11Impl.hpp
index 0daef6b3..8f50f8f8 100644
--- a/Graphics/GraphicsEngineD3D11/include/RenderDeviceD3D11Impl.hpp
+++ b/Graphics/GraphicsEngineD3D11/include/RenderDeviceD3D11Impl.hpp
@@ -81,6 +81,10 @@ public:
virtual void DILIGENT_CALL_TYPE CreateQuery(const QueryDesc& Desc,
IQuery** ppQuery) override final;
+ /// Implementation of IRenderDevice::CreateRenderPass() in Direct3D11 backend.
+ virtual void DILIGENT_CALL_TYPE CreateRenderPass(const RenderPassDesc& Desc,
+ IRenderPass** ppRenderPass) override final;
+
/// Implementation of IRenderDeviceD3D11::GetD3D11Device() in Direct3D11 backend.
ID3D11Device* DILIGENT_CALL_TYPE GetD3D11Device() override final { return m_pd3d11Device; }
diff --git a/Graphics/GraphicsEngineD3D11/src/RenderDeviceD3D11Impl.cpp b/Graphics/GraphicsEngineD3D11/src/RenderDeviceD3D11Impl.cpp
index e73bec3a..ce0dc402 100644
--- a/Graphics/GraphicsEngineD3D11/src/RenderDeviceD3D11Impl.cpp
+++ b/Graphics/GraphicsEngineD3D11/src/RenderDeviceD3D11Impl.cpp
@@ -372,6 +372,17 @@ void RenderDeviceD3D11Impl::CreateQuery(const QueryDesc& Desc, IQuery** ppQuery)
});
}
+void RenderDeviceD3D11Impl::CreateRenderPass(const RenderPassDesc& Desc, IRenderPass** ppRenderPass)
+{
+ //CreateDeviceObject("RenderPass", Desc, ppRenderPass,
+ // [&]() //
+ // {
+ // RenderPassD3D11Impl* pRenderPassD3D11(NEW_RC_OBJ(m_RenderPassAllocator, "RenderPassD3D11Impl instance", RenderPassD3D11Impl)(this, Desc));
+ // pRenderPassD3D11->RenderPassInterface(IID_RenderPass, reinterpret_cast<IObject**>(ppRenderPass));
+ // OnCreateDeviceObject(pRenderPassD3D11);
+ // });
+}
+
void RenderDeviceD3D11Impl::IdleGPU()
{
if (auto pImmediateCtx = m_wpImmediateContext.Lock())