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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user