mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 23:10:53 +01:00
[PR #2271] Preserve fractional viewport coverage in attachmentless draws #2274
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#2274
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/2271
Author: @Bonchaloo
Created: 11/26/2026
Status: 🔄 Open
Base:
main← Head:fix/attachmentless-fractional-area📝 Commits (1)
39434d4Round fractional viewport edges outward for attachmentless rendering📊 Changes
2 files changed (+25 additions, -6 deletions)
View changed files
📝
runtime/src/vulkan_replay.h(+6 -5)📝
runtime/test/d3d12_state_map_test.cpp(+19 -1)📄 Description
Claimed in #1608 as RT-ATTACHMENTLESS-FRACTIONAL-AREA.
Fix
With no color or depth attachment, Vulkan replay derives the render area from the viewports. Converting their right and bottom edges directly to integers could clip a row or column that contains covered samples. Round the maximum right and bottom edges outward after considering all viewports.
Tests
Full native runtime CTest suite on Apple M5 Max with MoltenVK 1.4.2: 105 passed, 0 failed, 3 skipped (shader_library_corpus, vk_device_markers, vk_sync_validation).
AI-assisted: yes.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.