summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngineMetal
diff options
context:
space:
mode:
authorassiduous <assiduous@diligentgraphics.com>2020-08-01 06:31:05 +0000
committerassiduous <assiduous@diligentgraphics.com>2020-08-02 19:21:42 +0000
commitb875435c82aa5efbea55ee17719c4a57b171a811 (patch)
treeea29b2579438e995d5b5ccdc655f516d3b23f95b /Graphics/GraphicsEngineMetal
parentAdded pRenderPass and SubpassIndex members to GraphicsPipelineDesc struct (diff)
downloadDiligentCore-b875435c82aa5efbea55ee17719c4a57b171a811.tar.gz
DiligentCore-b875435c82aa5efbea55ee17719c4a57b171a811.zip
Base implementation of BeginRenderPass/NextSubpass/EndRenderPass methods
Diffstat (limited to 'Graphics/GraphicsEngineMetal')
-rw-r--r--Graphics/GraphicsEngineMetal/include/DeviceContextMtlImpl.h4
-rw-r--r--Graphics/GraphicsEngineMetal/src/DeviceContextMtlImpl.mm3
2 files changed, 7 insertions, 0 deletions
diff --git a/Graphics/GraphicsEngineMetal/include/DeviceContextMtlImpl.h b/Graphics/GraphicsEngineMetal/include/DeviceContextMtlImpl.h
index 93532df9..0bfff2b3 100644
--- a/Graphics/GraphicsEngineMetal/include/DeviceContextMtlImpl.h
+++ b/Graphics/GraphicsEngineMetal/include/DeviceContextMtlImpl.h
@@ -33,6 +33,8 @@
#include "TextureMtlImpl.h"
#include "PipelineStateMtlImpl.h"
#include "QueryMtlImpl.h"
+#include "FramebufferMtlImpl.h"
+#include "RenderPassMtlImpl.h"
namespace Diligent
{
@@ -46,6 +48,8 @@ struct DeviceContextMtlImplTraits
using PipelineStateType = PipelineStateMtlImpl;
using DeviceType = RenderDeviceMtlImpl;
using QueryType = QueryMtlImpl;
+ using FramebufferType = FramebufferMtlImpl;
+ using RenderPassType = RenderPassMtlImpl;
};
/// Implementation of the Diligent::IDeviceContextMtl interface
diff --git a/Graphics/GraphicsEngineMetal/src/DeviceContextMtlImpl.mm b/Graphics/GraphicsEngineMetal/src/DeviceContextMtlImpl.mm
index e2a1362d..abfa15ba 100644
--- a/Graphics/GraphicsEngineMetal/src/DeviceContextMtlImpl.mm
+++ b/Graphics/GraphicsEngineMetal/src/DeviceContextMtlImpl.mm
@@ -373,16 +373,19 @@ namespace Diligent
void DeviceContextMtlImpl::BeginRenderPass(const BeginRenderPassAttribs& Attribs)
{
+ TDeviceContextBase::BeginRenderPass(Attribs);
LOG_ERROR_MESSAGE("DeviceContextMtlImpl::BeginRenderPass() is not implemented");
}
void DeviceContextMtlImpl::NextSubpass()
{
+ TDeviceContextBase::NextSubpass();
LOG_ERROR_MESSAGE("DeviceContextMtlImpl::NextSubpass() is not implemented");
}
void DeviceContextMtlImpl::EndRenderPass()
{
+ TDeviceContextBase::EndRenderPass();
LOG_ERROR_MESSAGE("DeviceContextMtlImpl::EndRenderPass() is not implemented");
}