mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-30 09:39:46 -06:00
Vulkan: Add support for unrestricted depth range.
This commit is contained in:
@ -131,6 +131,11 @@ void VertexShaderManager::SetProjectionMatrix(XFStateManager& xf_state_manager)
|
||||
|
||||
bool VertexShaderManager::UseVertexDepthRange()
|
||||
{
|
||||
// Backend has full support for unrestricted depth ranges including the ability to clamp the
|
||||
// final depth value to MAX_EFB_DEPTH.
|
||||
if (g_backend_info.bSupportsUnrestrictedDepthRange)
|
||||
return false;
|
||||
|
||||
// We can't compute the depth range in the vertex shader if we don't support depth clamp.
|
||||
if (!g_backend_info.bSupportsDepthClamp)
|
||||
return false;
|
||||
|
Reference in New Issue
Block a user