diff options
| author | Egor Yusov <egor.yusov@gmail.com> | 2019-10-30 17:46:28 +0000 |
|---|---|---|
| committer | Egor Yusov <egor.yusov@gmail.com> | 2019-10-30 17:46:28 +0000 |
| commit | 13440e98e8cd926620d9913aa72780ceaca4f668 (patch) | |
| tree | 1d40d82d0f450a2b2678642d6db9eff055dbee94 /Graphics/GraphicsEngineMetal | |
| parent | Fixed few more gcc/clang compile issue (diff) | |
| download | DiligentCore-13440e98e8cd926620d9913aa72780ceaca4f668.tar.gz DiligentCore-13440e98e8cd926620d9913aa72780ceaca4f668.zip | |
Some code refactoring
Diffstat (limited to 'Graphics/GraphicsEngineMetal')
| -rw-r--r-- | Graphics/GraphicsEngineMetal/include/DeviceContextMtlImpl.h | 5 | ||||
| -rw-r--r-- | Graphics/GraphicsEngineMetal/src/DeviceContextMtlImpl.mm | 2 |
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) |
