From 8798aa2e94602372a61c362d5c3f288cc07388c9 Mon Sep 17 00:00:00 2001 From: assiduous Date: Sun, 26 Jul 2020 19:16:18 -0700 Subject: Added BeginRenderPass, NextSubpass, and EndRenderPass device context methods --- .../include/DeviceContextD3D12Impl.hpp | 9 +++++++++ .../GraphicsEngineD3D12/src/DeviceContextD3D12Impl.cpp | 15 +++++++++++++++ 2 files changed, 24 insertions(+) (limited to 'Graphics/GraphicsEngineD3D12') diff --git a/Graphics/GraphicsEngineD3D12/include/DeviceContextD3D12Impl.hpp b/Graphics/GraphicsEngineD3D12/include/DeviceContextD3D12Impl.hpp index 5c6912b6..cba29510 100644 --- a/Graphics/GraphicsEngineD3D12/include/DeviceContextD3D12Impl.hpp +++ b/Graphics/GraphicsEngineD3D12/include/DeviceContextD3D12Impl.hpp @@ -122,6 +122,15 @@ public: ITextureView* pDepthStencil, RESOURCE_STATE_TRANSITION_MODE StateTransitionMode) override final; + /// Implementation of IDeviceContext::BeginRenderPass() in Direct3D11 backend. + virtual void DILIGENT_CALL_TYPE BeginRenderPass(const BeginRenderPassAttribs& Attribs) override final; + + /// Implementation of IDeviceContext::NextSubpass() in Direct3D11 backend. + virtual void DILIGENT_CALL_TYPE NextSubpass() override final; + + /// Implementation of IDeviceContext::EndRenderPass() in Direct3D11 backend. + virtual void DILIGENT_CALL_TYPE EndRenderPass() override final; + // clang-format off /// Implementation of IDeviceContext::Draw() in Direct3D12 backend. virtual void DILIGENT_CALL_TYPE Draw (const DrawAttribs& Attribs) override final; diff --git a/Graphics/GraphicsEngineD3D12/src/DeviceContextD3D12Impl.cpp b/Graphics/GraphicsEngineD3D12/src/DeviceContextD3D12Impl.cpp index 5fa7f8e1..c367c586 100644 --- a/Graphics/GraphicsEngineD3D12/src/DeviceContextD3D12Impl.cpp +++ b/Graphics/GraphicsEngineD3D12/src/DeviceContextD3D12Impl.cpp @@ -969,6 +969,21 @@ void DeviceContextD3D12Impl::SetRenderTargets(Uint32 Num } } +void DeviceContextD3D12Impl::BeginRenderPass(const BeginRenderPassAttribs& Attribs) +{ + UNEXPECTED("Method not implemented"); +} + +void DeviceContextD3D12Impl::NextSubpass() +{ + UNEXPECTED("Method not implemented"); +} + +void DeviceContextD3D12Impl::EndRenderPass() +{ + UNEXPECTED("Method not implemented"); +} + D3D12DynamicAllocation DeviceContextD3D12Impl::AllocateDynamicSpace(size_t NumBytes, size_t Alignment) { return m_DynamicHeap.Allocate(NumBytes, Alignment, m_ContextFrameNumber); -- cgit v1.2.3