From b875435c82aa5efbea55ee17719c4a57b171a811 Mon Sep 17 00:00:00 2001 From: assiduous Date: Fri, 31 Jul 2020 23:31:05 -0700 Subject: Base implementation of BeginRenderPass/NextSubpass/EndRenderPass methods --- Graphics/GraphicsEngineD3D12/include/DeviceContextD3D12Impl.hpp | 6 ++++-- Graphics/GraphicsEngineD3D12/src/DeviceContextD3D12Impl.cpp | 3 +++ 2 files changed, 7 insertions(+), 2 deletions(-) (limited to 'Graphics/GraphicsEngineD3D12') diff --git a/Graphics/GraphicsEngineD3D12/include/DeviceContextD3D12Impl.hpp b/Graphics/GraphicsEngineD3D12/include/DeviceContextD3D12Impl.hpp index cba29510..28f336d4 100644 --- a/Graphics/GraphicsEngineD3D12/include/DeviceContextD3D12Impl.hpp +++ b/Graphics/GraphicsEngineD3D12/include/DeviceContextD3D12Impl.hpp @@ -37,14 +37,14 @@ #include "BufferD3D12Impl.hpp" #include "TextureD3D12Impl.hpp" #include "QueryD3D12Impl.hpp" +#include "FramebufferD3D12Impl.hpp" +#include "RenderPassD3D12Impl.hpp" #include "PipelineStateD3D12Impl.hpp" #include "D3D12DynamicHeap.hpp" namespace Diligent { -class RenderDeviceD3D12Impl; - struct DeviceContextD3D12ImplTraits { using BufferType = BufferD3D12Impl; @@ -53,6 +53,8 @@ struct DeviceContextD3D12ImplTraits using DeviceType = RenderDeviceD3D12Impl; using ICommandQueueType = ICommandQueueD3D12; using QueryType = QueryD3D12Impl; + using FramebufferType = FramebufferD3D12Impl; + using RenderPassType = RenderPassD3D12Impl; }; /// Device context implementation in Direct3D12 backend. diff --git a/Graphics/GraphicsEngineD3D12/src/DeviceContextD3D12Impl.cpp b/Graphics/GraphicsEngineD3D12/src/DeviceContextD3D12Impl.cpp index c367c586..6a6739f0 100644 --- a/Graphics/GraphicsEngineD3D12/src/DeviceContextD3D12Impl.cpp +++ b/Graphics/GraphicsEngineD3D12/src/DeviceContextD3D12Impl.cpp @@ -971,16 +971,19 @@ void DeviceContextD3D12Impl::SetRenderTargets(Uint32 Num void DeviceContextD3D12Impl::BeginRenderPass(const BeginRenderPassAttribs& Attribs) { + TDeviceContextBase::BeginRenderPass(Attribs); UNEXPECTED("Method not implemented"); } void DeviceContextD3D12Impl::NextSubpass() { + TDeviceContextBase::NextSubpass(); UNEXPECTED("Method not implemented"); } void DeviceContextD3D12Impl::EndRenderPass() { + TDeviceContextBase::EndRenderPass(); UNEXPECTED("Method not implemented"); } -- cgit v1.2.3