Add Depth Buffer Support #15

Closed
opened 2026-01-18 14:16:13 +00:00 by akadmin · 0 comments
Owner

Description:
Implement depth testing by adding a depth attachment to the render pass and creating depth images.
Tasks:

  • Create depth image allocation function
  • Add depth format selection (D32_SFLOAT or D24_UNORM_S8_UINT)
  • Update render pass to include depth attachment
  • Create depth image views for each swapchain image
  • Update framebuffer creation to include depth views
  • Handle depth image recreation on swapchain resize
  • Enable depth testing in pipeline
  • Test with overlapping geometry

Acceptance Criteria:

Depth testing works correctly (objects occlude properly)
Depth buffer recreates on window resize
No depth fighting or z-order issues

Related Issues: Depends on #13
Estimated Time: 1-2 days

Description: Implement depth testing by adding a depth attachment to the render pass and creating depth images. Tasks: - [x] Create depth image allocation function - [x] Add depth format selection (D32_SFLOAT or D24_UNORM_S8_UINT) - [x] Update render pass to include depth attachment - [x] Create depth image views for each swapchain image - [x] Update framebuffer creation to include depth views - [x] Handle depth image recreation on swapchain resize - [x] Enable depth testing in pipeline - [x] Test with overlapping geometry Acceptance Criteria: Depth testing works correctly (objects occlude properly) Depth buffer recreates on window resize No depth fighting or z-order issues Related Issues: Depends on #13 Estimated Time: 1-2 days
akadmin added this to the Foundation milestone 2026-01-18 14:16:13 +00:00
Sign in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
akadmin/NemesisEngine#15
No description provided.