From 13440e98e8cd926620d9913aa72780ceaca4f668 Mon Sep 17 00:00:00 2001 From: Egor Yusov Date: Wed, 30 Oct 2019 10:46:28 -0700 Subject: Some code refactoring --- Graphics/GraphicsEngineMetal/include/DeviceContextMtlImpl.h | 5 ++++- Graphics/GraphicsEngineMetal/src/DeviceContextMtlImpl.mm | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'Graphics/GraphicsEngineMetal') 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) -- cgit v1.2.3