Log views in another format than their typed host texture

Each pair (kind of view, texture format, view format) is said once, with
the host's casting support: shader and unordered access views that
`fits` gives the texture's own format, and render target views made in
another format than their typed host copy. On an RTX 4070 SUPER both
CastingFullyTypedFormatSupported and RelaxedFormatCastingSupported hold,
and the opening of GTA VI makes one such pair (a UNORM render target
view of an sRGB texture): not the cause of its posterised shading.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
readmet3xt-labandClaude Opus 5.5 committed 2026-11-26 15:37:04 +05:30
1 parent 22035389e6
commit cb191f38e4
3 files changed
+88

No files matched your search

+5
View File
@@ -6090,6 +6090,11 @@ impl Host {
desc: Option<&D3D12_RENDER_TARGET_VIEW_DESC>,
) -> D3D12_CPU_DESCRIPTOR_HANDLE {
let slot = self.next_rtv.fetch_add(1, Ordering::Relaxed) % RTV_RING;
if let (Some(r), Some(d)) = (resource, desc) {
// SAFETY: a live resource.
let own = unsafe { r.GetDesc() }.Format.0 as u32;
crate::resource::note_cast("render target", own, d.Format.0 as u32);
}
// SAFETY: a slot of our heap and a live resource, or none with a
// description (a typed null view).
unsafe {