Don't try to create pipelines with sample rate shading if not supported

This commit is contained in:
baldurk
2019-08-14 11:00:41 +01:00
parent 3a304862f4
commit 7c1d4189cc
+6
View File
@@ -696,6 +696,12 @@ VulkanDebugManager::VulkanDebugManager(WrappedVulkan *driver)
m_pDriver->vkDestroyRenderPass(dev, depthMS2ArrayRP, NULL);
if(!m_pDriver->GetDeviceFeatures().sampleRateShading)
{
RDCDEBUG("No depth Array -> MSAA copies can be supported without sample rate shading");
continue;
}
for(size_t s = 0; s < ARRAY_COUNT(sampleCounts); s++)
{
// if this sample count isn't supported, don't create it