Skip to content

Depth Test Overlay does not accound for Depth Bounds Test in Vulkan backend #3701

@helviett

Description

@helviett

Description of Bug

Depth Test Overlay doesn't account for Depth Bounds Test in Vulkan Backend (D3D12 works perfectly).

Steps to reproduce

Create pipeline that supports with depthBoundsTest = true and with dynamic states containing VK_DYNAMIC_STATE_DEPTH_BOUNDS.
Set depth bounds to something low enough so that any mesh in front of you won't pass depths bounds. E.g. vkCmdSetDepthBounds(cmd, 0.0f, 0.01f).
Draw any mesh in front of you.

Environment

  • RenderDoc version: 1.40
  • Operating System: Windows 11
  • Graphics API: Vulkan

Additional Details

Here is a screenshot from my capture. I rasterize multiple spheres and (for the test) set depth bound so low that none of them should pass Depth Bounds Test. They do no pass it (nothing is drawn), Pixel History shows "Depth bounds test failed" but Depth Test Overlay still shows some parts as green. Everything works as expected in D3D12 capture.

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions