From 08c264975bda87998ae431e1ccb3dd8cebadb087 Mon Sep 17 00:00:00 2001 From: assiduous Date: Wed, 18 Nov 2020 23:06:42 -0800 Subject: Implemented testing of texture/buffer creation from Metal resources --- Graphics/GraphicsEngineMetal/interface/RenderDeviceMtl.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'Graphics/GraphicsEngineMetal') diff --git a/Graphics/GraphicsEngineMetal/interface/RenderDeviceMtl.h b/Graphics/GraphicsEngineMetal/interface/RenderDeviceMtl.h index def6c787..a9a1f218 100644 --- a/Graphics/GraphicsEngineMetal/interface/RenderDeviceMtl.h +++ b/Graphics/GraphicsEngineMetal/interface/RenderDeviceMtl.h @@ -53,9 +53,10 @@ public: ITexture** ppTexture) = 0; /// Creates a buffer from existing Metal resource - virtual void DILIGENT_CALL_TYPE CreateBufferFromMtlResource(id mtlBuffer, - RESOURCE_STATE InitialState, - IBuffer** ppBuffer) = 0; + virtual void DILIGENT_CALL_TYPE CreateBufferFromMtlResource(id mtlBuffer, + const BufferDesc& BuffDesc, + RESOURCE_STATE InitialState, + IBuffer** ppBuffer) = 0; }; } // namespace Diligent -- cgit v1.2.3