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
main
Peng 5 years ago
parent 41a2be2a71
commit a8a60eeea7

@ -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)

Loading…
Cancel
Save