summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngine
diff options
context:
space:
mode:
authorassiduous <assiduous@diligentgraphics.com>2020-10-01 00:01:15 +0000
committerassiduous <assiduous@diligentgraphics.com>2020-10-01 00:01:15 +0000
commit3941b472dedd0836b5e4970460fbf0e38a42e4e4 (patch)
treefc4d0002e0c17cab1f09f4f1955e80c2b5fa4ce0 /Graphics/GraphicsEngine
parentUpdated Metal interfaces plus a number of misc fixes (diff)
downloadDiligentCore-3941b472dedd0836b5e4970460fbf0e38a42e4e4.tar.gz
DiligentCore-3941b472dedd0836b5e4970460fbf0e38a42e4e4.zip
A number of updates to support Metal backend
Diffstat (limited to 'Graphics/GraphicsEngine')
-rw-r--r--Graphics/GraphicsEngine/interface/GraphicsTypes.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/Graphics/GraphicsEngine/interface/GraphicsTypes.h b/Graphics/GraphicsEngine/interface/GraphicsTypes.h
index 93295972..e8263232 100644
--- a/Graphics/GraphicsEngine/interface/GraphicsTypes.h
+++ b/Graphics/GraphicsEngine/interface/GraphicsTypes.h
@@ -1743,6 +1743,10 @@ struct DeviceCaps
{
return DevType == RENDER_DEVICE_TYPE_VULKAN;
}
+ bool IsMetalDevice()const
+ {
+ return DevType == RENDER_DEVICE_TYPE_METAL;
+ }
struct NDCAttribs
{