The same render targets are not set again (after ZJOU acf478b8, author local); VICTORY_BIND_CACHE=0 sets them every time

Theirs compares the handles, which a title may write other views behind;
here the views themselves (resource, host texture, description) are compared.
A call with the same ones saves a host view per target and the driver's call.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
localandClaude Opus 5.5 committed 2026-11-25 15:44:14 -06:00
1 parent a869d90e3a
commit 5e2394c2f4
2 files changed
+40 -5

No files matched your search

+9
View File
@@ -643,6 +643,15 @@ const RTV_TAG: u32 = u32::from_le_bytes(*b"vRTV");
const _: () = assert!(size_of::<RtvRecord>() <= 112);
impl RtvRecord {
/// All the view it records is made from: records with equal keys have
/// equal views (of the same host texture).
#[cfg(windows)]
pub(crate) fn key(&self) -> (usize, [u32; 7]) {
let mut words = [self.described; 7];
words[1..].copy_from_slice(&self.desc);
(self.resource as usize, words)
}
/// The view description in the host's type (the same layout).
#[cfg(windows)]
pub(crate) fn desc(