ATOM-14947

-Fix vulkan graphics pipeline creation failure having depth clamp off with devices not supporting depth clip.
-Added reason for the mobile version of screen space reflection
This commit is contained in:
Peng
2021-04-26 18:12:50 -07:00
parent 41a2be2a71
commit a8a60eeea7
2 changed files with 4 additions and 2 deletions
@@ -247,6 +247,8 @@
}
},
{
// Using cut-down version of screen space reflection for handling the attachment format compatibility issues.
// This is used for mobile devices with limited capabilities.
"Name": "ReflectionScreenSpaceMobilePass",
"TemplateName": "ReflectionScreenSpaceMobilePassTemplate",
"Enabled": false,
@@ -287,8 +287,8 @@ namespace AZ
}
else if (!rasterState.m_depthClipEnable)
{
AZ_Error("Vulkan", false, "Depth clipping is being used but it's not supported on this device");
return RHI::ResultCode::InvalidArgument;
// depth clamp must be disabled if physical device does not support it
info.depthClampEnable = VK_FALSE;
}
switch (rasterState.m_fillMode)