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/GraphicsEngineVulkan/include/DeviceContextVkImpl.hpp | 6 ++++-- Graphics/GraphicsEngineVulkan/src/DeviceContextVkImpl.cpp | 3 +++ 2 files changed, 7 insertions(+), 2 deletions(-) (limited to 'Graphics/GraphicsEngineVulkan') diff --git a/Graphics/GraphicsEngineVulkan/include/DeviceContextVkImpl.hpp b/Graphics/GraphicsEngineVulkan/include/DeviceContextVkImpl.hpp index 50d1eb0c..7090f15a 100644 --- a/Graphics/GraphicsEngineVulkan/include/DeviceContextVkImpl.hpp +++ b/Graphics/GraphicsEngineVulkan/include/DeviceContextVkImpl.hpp @@ -45,6 +45,8 @@ #include "TextureVkImpl.hpp" #include "PipelineStateVkImpl.hpp" #include "QueryVkImpl.hpp" +#include "FramebufferVkImpl.hpp" +#include "RenderpassVkImpl.hpp" #include "HashUtils.hpp" #include "ManagedVulkanObject.hpp" #include "QueryManagerVk.hpp" @@ -53,8 +55,6 @@ namespace Diligent { -class RenderDeviceVkImpl; - struct DeviceContextVkImplTraits { using BufferType = BufferVkImpl; @@ -63,6 +63,8 @@ struct DeviceContextVkImplTraits using DeviceType = RenderDeviceVkImpl; using ICommandQueueType = ICommandQueueVk; using QueryType = QueryVkImpl; + using FramebufferType = FramebufferVkImpl; + using RenderPassType = RenderPassVkImpl; }; /// Device context implementation in Vulkan backend. diff --git a/Graphics/GraphicsEngineVulkan/src/DeviceContextVkImpl.cpp b/Graphics/GraphicsEngineVulkan/src/DeviceContextVkImpl.cpp index 7fef3833..d1528eaa 100644 --- a/Graphics/GraphicsEngineVulkan/src/DeviceContextVkImpl.cpp +++ b/Graphics/GraphicsEngineVulkan/src/DeviceContextVkImpl.cpp @@ -1193,16 +1193,19 @@ void DeviceContextVkImpl::ResetRenderTargets() void DeviceContextVkImpl::BeginRenderPass(const BeginRenderPassAttribs& Attribs) { + TDeviceContextBase::BeginRenderPass(Attribs); UNEXPECTED("Method not implemented"); } void DeviceContextVkImpl::NextSubpass() { + TDeviceContextBase::NextSubpass(); UNEXPECTED("Method not implemented"); } void DeviceContextVkImpl::EndRenderPass() { + TDeviceContextBase::EndRenderPass(); UNEXPECTED("Method not implemented"); } -- cgit v1.2.3