summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngineMetal
diff options
context:
space:
mode:
Diffstat (limited to 'Graphics/GraphicsEngineMetal')
-rw-r--r--Graphics/GraphicsEngineMetal/interface/BufferMtl.h4
-rw-r--r--Graphics/GraphicsEngineMetal/interface/TextureMtl.h4
2 files changed, 6 insertions, 2 deletions
diff --git a/Graphics/GraphicsEngineMetal/interface/BufferMtl.h b/Graphics/GraphicsEngineMetal/interface/BufferMtl.h
index 1ed88a5c..7f4a0a61 100644
--- a/Graphics/GraphicsEngineMetal/interface/BufferMtl.h
+++ b/Graphics/GraphicsEngineMetal/interface/BufferMtl.h
@@ -41,8 +41,8 @@ static const INTERFACE_ID IID_BufferMtl =
class IBufferMtl : public IBuffer
{
public:
- /// Returns a pointer to Metal buffer (MTLBuffer)
- virtual void* GetMtlBuffer() const = 0;
+ /// Returns a pointer to a Metal buffer (MTLBuffer).
+ virtual void* GetMtlResource() const = 0;
};
} // namespace Diligent
diff --git a/Graphics/GraphicsEngineMetal/interface/TextureMtl.h b/Graphics/GraphicsEngineMetal/interface/TextureMtl.h
index da2db211..bced9bb7 100644
--- a/Graphics/GraphicsEngineMetal/interface/TextureMtl.h
+++ b/Graphics/GraphicsEngineMetal/interface/TextureMtl.h
@@ -41,6 +41,10 @@ static const INTERFACE_ID IID_TextureMtl =
class ITextureMtl : public ITexture
{
public:
+ /// Returns a pointer to a Metal resource.
+ /// For a staging texture, this will be a pointer to a MTLStorageModeShared buffer (MTLBuffer).
+ /// For all other texture types, this will be a pointer to Metal texture object (MTLTexture).
+ virtual void* GetMtlResource() const = 0;
};
} // namespace Diligent