summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngineMetal
diff options
context:
space:
mode:
authorassiduous <assiduous@diligentgraphics.com>2020-11-19 07:06:42 +0000
committerassiduous <assiduous@diligentgraphics.com>2020-11-19 07:06:42 +0000
commit08c264975bda87998ae431e1ccb3dd8cebadb087 (patch)
tree1e8529c336a2b668a0ca3c7d544b813adf6bab2e /Graphics/GraphicsEngineMetal
parentBroken Shader Test: added shader macros (diff)
downloadDiligentCore-08c264975bda87998ae431e1ccb3dd8cebadb087.tar.gz
DiligentCore-08c264975bda87998ae431e1ccb3dd8cebadb087.zip
Implemented testing of texture/buffer creation from Metal resources
Diffstat (limited to 'Graphics/GraphicsEngineMetal')
-rw-r--r--Graphics/GraphicsEngineMetal/interface/RenderDeviceMtl.h7
1 files changed, 4 insertions, 3 deletions
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> mtlBuffer,
- RESOURCE_STATE InitialState,
- IBuffer** ppBuffer) = 0;
+ virtual void DILIGENT_CALL_TYPE CreateBufferFromMtlResource(id<MTLBuffer> mtlBuffer,
+ const BufferDesc& BuffDesc,
+ RESOURCE_STATE InitialState,
+ IBuffer** ppBuffer) = 0;
};
} // namespace Diligent