Preserve explicit RGBA8 sRGB views on capable D3D12 adapters #578
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/fxceless--victory-fork#578
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?
@akimfomin on GitHub · 2026-11-25 02:30 UTC · original
PortBridge found one explicit sampled-view conversion that the D3D12 backend narrows to the resource's format in
descriptor/host.rsatc96b4f2. An explicit RGBA8 sRGB view can therefore return linear UNORM values, even when D3D12 Options3 reports fully typed casting support.The source-generated check on an RTX 4070 Ti SUPER sampled a single
0x80texel through all four resource/view combinations. Both opposite-format views matched the same-format control for their requested view exactly. RGB was 0.5019608 for UNORM and 0.2158203 for sRGB. Alpha stayed 0.5019608. The exact-source CPU checks passed with capability enabled and disabled, both view directions, unrelated formats and UAV controls.The pinned patch, source fixture and GPU log limit the change to explicit sampled RGBA8 views on reporting adapters. The patch applies to the checked head. The narrow result concerns texture color conversion. Effects on rendered scenes and full integration CI remain unverified. See the D3D12 casting rules.
AI assistance from OpenAI Codex (GPT-6 family) for source analysis, implementation and verification.
github-bot referenced this issue2026-11-26 03:48:04 +00:00