diff options
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) |
