From 49db958361912f5f829773caa187a72909dcd62c Mon Sep 17 00:00:00 2001 From: Egor Yusov Date: Thu, 27 Dec 2018 13:05:02 -0800 Subject: Updated device caps to indicate that GS and Tess are not supported on MoltenVK --- Graphics/GraphicsEngineVulkan/src/RenderDeviceVkImpl.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Graphics/GraphicsEngineVulkan') 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() -- cgit v1.2.3