Skip to content

Dev/depth clip toggle#190

Merged
crud89 merged 5 commits intomainfrom
dev/depth-clip-toggle
Oct 22, 2025
Merged

Dev/depth clip toggle#190
crud89 merged 5 commits intomainfrom
dev/depth-clip-toggle

Conversation

@crud89
Copy link
Copy Markdown
Owner

@crud89 crud89 commented Oct 21, 2025

Describe the pull request

This PR adds support for the "depth clip" switch of the rasterizer state. Effectively this switch can be used to disable z-clipping in the rasterizer. The switch is natively supported in DirectX 12. However, in Vulkan it is usually implicitly controlled when using depth clamping, which in DirectX 12 is always active. For compatibility reasons, Vulkan provides the VK_EXT_depth_clip_enable extension, which is now required by the engine. Support for this extension is basically guaranteed on desktop. A new setting has been added to the rasterizer state, as well as to the rasterizer builder to control depth clipping.

@crud89 crud89 added this to the Alpha #05 milestone Oct 21, 2025
@crud89 crud89 self-assigned this Oct 21, 2025
@crud89 crud89 added Vulkan πŸŒ‹ The issue involves the Vulkan backend. DX12 ❎ The issue involves the DX12 backend. labels Oct 21, 2025
@crud89 crud89 added this to LiteFX Oct 21, 2025
@crud89 crud89 moved this to In Progress in LiteFX Oct 21, 2025
@crud89
Copy link
Copy Markdown
Owner Author

crud89 commented Oct 21, 2025

Run: checks

@crud89
Copy link
Copy Markdown
Owner Author

crud89 commented Oct 22, 2025

Run: checks

@crud89 crud89 merged commit ab8dfea into main Oct 22, 2025
9 checks passed
@crud89 crud89 deleted the dev/depth-clip-toggle branch October 22, 2025 08:07
@crud89 crud89 moved this from In Progress to v0.5.1 in LiteFX Oct 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

DX12 ❎ The issue involves the DX12 backend. Vulkan πŸŒ‹ The issue involves the Vulkan backend.

Projects

Status: v0.5.1

Development

Successfully merging this pull request may close these issues.

1 participant