summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngineVulkan
diff options
context:
space:
mode:
authorEgor Yusov <egor.yusov@gmail.com>2018-12-27 21:05:02 +0000
committerEgor Yusov <egor.yusov@gmail.com>2018-12-27 21:05:02 +0000
commit49db958361912f5f829773caa187a72909dcd62c (patch)
tree9fbcdce512252e099eddd1e1275ca6260994dbb5 /Graphics/GraphicsEngineVulkan
parentFix for memory access violation when reading debug name from d3d11 textures (diff)
downloadDiligentCore-49db958361912f5f829773caa187a72909dcd62c.tar.gz
DiligentCore-49db958361912f5f829773caa187a72909dcd62c.zip
Updated device caps to indicate that GS and Tess are not supported on MoltenVK
Diffstat (limited to 'Graphics/GraphicsEngineVulkan')
-rw-r--r--Graphics/GraphicsEngineVulkan/src/RenderDeviceVkImpl.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/Graphics/GraphicsEngineVulkan/src/RenderDeviceVkImpl.cpp b/Graphics/GraphicsEngineVulkan/src/RenderDeviceVkImpl.cpp
index 6aa8db27..b4b8bf7f 100644
--- a/Graphics/GraphicsEngineVulkan/src/RenderDeviceVkImpl.cpp
+++ b/Graphics/GraphicsEngineVulkan/src/RenderDeviceVkImpl.cpp
@@ -126,6 +126,12 @@ RenderDeviceVkImpl :: RenderDeviceVkImpl(IReferenceCounters*
m_DeviceCaps.bMultithreadedResourceCreationSupported = True;
for(int fmt = 1; fmt < m_TextureFormatsInfo.size(); ++fmt)
m_TextureFormatsInfo[fmt].Supported = true; // We will test every format on a specific hardware device
+
+#if PLATFORM_MACOS || PLATFORM_IOS
+ // MoltenVK does not support geometry shaders and tessellation
+ m_DeviceCaps.bGeometryShadersSupported = False;
+ m_DeviceCaps.bTessellationSupported = False;
+#endif
}
RenderDeviceVkImpl::~RenderDeviceVkImpl()