Implement depth bounds testing. #35
Labels
Module: DX12 ❎
The issue involves the DX12 backend.
Module: Vulkan 🌋
The issue involves the Vulkan backend.
Priority: Low
A low priority issue.
Type: Feature Request
New feature or request.
This is a follow up to issue #17.
We should add support for depth bounds. The static pipeline state controls whether to use depth bounds or not, whilst the bounds themselves are part of the dynamic state. Support for this feature is optional and must be checked. In Vulkan the
VkPhysicalDeviceFeatures::depthBounds
property is used for this, in DirectX 12CheckFeatureSupport
must be called. If the feature is not available, the static state must be disabled.To implement this...
... in DX12:
DepthClipEnable
property of theD3D12_RASTERIZER_DESC
.OMSetDepthBounds
on the pipeline.In Vulkan:
depthBoundsTestEnable
on the pipeline static state.VK_DYNAMIC_STATE_DEPTH_BOUNDS
/vkCmdSetDepthBounds
to set dynamic state.We could extent the
DepthStencilState
to cover this.The text was updated successfully, but these errors were encountered: