diff options
| author | assiduous <assiduous@diligentgraphics.com> | 2020-10-01 00:01:15 +0000 |
|---|---|---|
| committer | assiduous <assiduous@diligentgraphics.com> | 2020-10-01 00:01:15 +0000 |
| commit | 3941b472dedd0836b5e4970460fbf0e38a42e4e4 (patch) | |
| tree | fc4d0002e0c17cab1f09f4f1955e80c2b5fa4ce0 /Graphics/GraphicsEngineMetal | |
| parent | Updated Metal interfaces plus a number of misc fixes (diff) | |
| download | DiligentCore-3941b472dedd0836b5e4970460fbf0e38a42e4e4.tar.gz DiligentCore-3941b472dedd0836b5e4970460fbf0e38a42e4e4.zip | |
A number of updates to support Metal backend
Diffstat (limited to 'Graphics/GraphicsEngineMetal')
| -rw-r--r-- | Graphics/GraphicsEngineMetal/interface/BufferMtl.h | 4 | ||||
| -rw-r--r-- | Graphics/GraphicsEngineMetal/interface/TextureMtl.h | 4 |
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 |
