summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngineMetal
diff options
context:
space:
mode:
Diffstat (limited to 'Graphics/GraphicsEngineMetal')
-rw-r--r--Graphics/GraphicsEngineMetal/interface/RenderDeviceMtl.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/Graphics/GraphicsEngineMetal/interface/RenderDeviceMtl.h b/Graphics/GraphicsEngineMetal/interface/RenderDeviceMtl.h
index 5c1d8233..def6c787 100644
--- a/Graphics/GraphicsEngineMetal/interface/RenderDeviceMtl.h
+++ b/Graphics/GraphicsEngineMetal/interface/RenderDeviceMtl.h
@@ -46,6 +46,16 @@ public:
/// Returns the pointer to Metal command queue (MTLCommandQueue).
virtual id<MTLCommandQueue> GetMtlCommandQueue() const = 0;
+
+ /// Creates a texture from existing Metal resource
+ virtual void DILIGENT_CALL_TYPE CreateTextureFromMtlResource(id<MTLTexture> mtlTexture,
+ RESOURCE_STATE InitialState,
+ ITexture** ppTexture) = 0;
+
+ /// Creates a buffer from existing Metal resource
+ virtual void DILIGENT_CALL_TYPE CreateBufferFromMtlResource(id<MTLBuffer> mtlBuffer,
+ RESOURCE_STATE InitialState,
+ IBuffer** ppBuffer) = 0;
};
} // namespace Diligent