summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngineMetal
diff options
context:
space:
mode:
authorEgor Yusov <egor.yusov@gmail.com>2019-10-30 17:46:28 +0000
committerEgor Yusov <egor.yusov@gmail.com>2019-10-30 17:46:28 +0000
commit13440e98e8cd926620d9913aa72780ceaca4f668 (patch)
tree1d40d82d0f450a2b2678642d6db9eff055dbee94 /Graphics/GraphicsEngineMetal
parentFixed few more gcc/clang compile issue (diff)
downloadDiligentCore-13440e98e8cd926620d9913aa72780ceaca4f668.tar.gz
DiligentCore-13440e98e8cd926620d9913aa72780ceaca4f668.zip
Some code refactoring
Diffstat (limited to 'Graphics/GraphicsEngineMetal')
-rw-r--r--Graphics/GraphicsEngineMetal/include/DeviceContextMtlImpl.h5
-rw-r--r--Graphics/GraphicsEngineMetal/src/DeviceContextMtlImpl.mm2
2 files changed, 5 insertions, 2 deletions
diff --git a/Graphics/GraphicsEngineMetal/include/DeviceContextMtlImpl.h b/Graphics/GraphicsEngineMetal/include/DeviceContextMtlImpl.h
index 43abc690..e64460df 100644
--- a/Graphics/GraphicsEngineMetal/include/DeviceContextMtlImpl.h
+++ b/Graphics/GraphicsEngineMetal/include/DeviceContextMtlImpl.h
@@ -36,11 +36,14 @@
namespace Diligent
{
+class RenderDeviceMtlImpl;
+
struct DeviceContextMtlImplTraits
{
using BufferType = BufferMtlImpl;
using TextureType = TextureMtlImpl;
using PipelineStateType = PipelineStateMtlImpl;
+ using DeviceType = RenderDeviceMtlImpl;
};
/// Implementation of the Diligent::IDeviceContextMtl interface
@@ -51,7 +54,7 @@ public:
DeviceContextMtlImpl(IReferenceCounters* pRefCounters,
IMemoryAllocator& Allocator,
- IRenderDevice* pDevice,
+ RenderDeviceMtlImpl* pDevice,
const struct EngineMtlCreateInfo& EngineAttribs,
bool bIsDeferred);
diff --git a/Graphics/GraphicsEngineMetal/src/DeviceContextMtlImpl.mm b/Graphics/GraphicsEngineMetal/src/DeviceContextMtlImpl.mm
index 8edcd8e1..0aff2c81 100644
--- a/Graphics/GraphicsEngineMetal/src/DeviceContextMtlImpl.mm
+++ b/Graphics/GraphicsEngineMetal/src/DeviceContextMtlImpl.mm
@@ -38,7 +38,7 @@ namespace Diligent
{
DeviceContextMtlImpl::DeviceContextMtlImpl( IReferenceCounters* pRefCounters,
IMemoryAllocator& Allocator,
- IRenderDevice* pDevice,
+ RenderDeviceMtlImpl* pDevice,
const struct EngineMtlCreateInfo& EngineAttribs,
bool bIsDeferred ) :
TDeviceContextBase(pRefCounters, pDevice, bIsDeferred)