[Vulkan] Truncate depth to float24 in EDRAM range ownership transfers and resolves by default
Doesn't ruin the "greater or equal" depth test in subsequent rendering passes if precision is lost, unlike rounding to the nearest
This commit is contained in:
@@ -128,6 +128,8 @@ class VulkanRenderTargetCache final : public RenderTargetCache {
|
||||
return last_update_framebuffer_;
|
||||
}
|
||||
|
||||
bool depth_float24_round() const { return depth_float24_round_; }
|
||||
|
||||
bool msaa_2x_attachments_supported() const {
|
||||
return msaa_2x_attachments_supported_;
|
||||
}
|
||||
@@ -824,6 +826,8 @@ class VulkanRenderTargetCache final : public RenderTargetCache {
|
||||
|
||||
bool gamma_render_target_as_srgb_ = false;
|
||||
|
||||
bool depth_float24_round_ = false;
|
||||
|
||||
bool msaa_2x_attachments_supported_ = false;
|
||||
bool msaa_2x_no_attachments_supported_ = false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user