Faces move, ray tracing mostly off, intro video fix, picture fixes
- Faces: the face network's 16-bit values travel through integer views; they were read as floats and came back as zeros on NVIDIA. Port of fxceless/victory-fork pull request 927 (tippythetaidum): emit/halves.rs, lower.rs, descriptor/host.rs, draw.rs. - Ray tracing mostly off: scripts/rt_off_hashes.txt lists the 1,000 CS_RaytracingResolve and 34 traced-shadow shaders, skipped by play-nvidia.ps1 through VICTORY_SKIP_PIPELINES (-RayTracing keeps them). The structure builder cannot run on NVIDIA, so every ray missed and rooms went white depending on the view angle. The screen-probe and visibility traces keep running; skipping them left rainbow glitter. - Intro video flicker: linear one-level R8 video planes always record their copy (texture.rs), so frames of the ring no longer show out of order. - VICTORY_AMBIENT_MOST (ambient.rs), VICTORY_NAN_SCRUB (emit/lower.rs) and VICTORY_PIPELINE_WAIT_ONCE (pipeline/make.rs, on by default). - Off by default: VICTORY_CONSTANT_MARKS (port of fxceless pull request 1216), VICTORY_TARGET_VARIANTS (port of fxceless a35c557393), F9 frame capture (capture.rs). - play-nvidia.ps1: the speed set by default, -Quality for the slower set with fewer stretched bodies and less rainbow skin. README updated. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
3e5fb36392
commit
77e13a974a
27 files changed
+1868
-73
No files matched your search
@@ -64,6 +64,10 @@ fn build() -> [u8; 32] {
|
||||
// executable had cached with the switch unset.
|
||||
for name in [
|
||||
"VICTORY_BVH_MISS",
|
||||
// LOCAL: colours and image stores with NaN made 0.
|
||||
"VICTORY_NAN_SCRUB",
|
||||
// LOCAL (fxceless #1216): constant buffer slots marked.
|
||||
"VICTORY_CONSTANT_MARKS",
|
||||
"VICTORY_WAVE_WIDE",
|
||||
"VICTORY_WAVE_DEEP_SKIPS",
|
||||
"VICTORY_WAVE_OWN_BITS",
|
||||
@@ -268,6 +272,11 @@ fn encode(s: &HostShader) -> Vec<u8> {
|
||||
word(&mut out, value);
|
||||
}
|
||||
}
|
||||
word(&mut out, s.half_views.len() as u32);
|
||||
for &(slot, dword) in &s.half_views {
|
||||
word(&mut out, u32::from(slot));
|
||||
word(&mut out, dword);
|
||||
}
|
||||
out
|
||||
}
|
||||
|
||||
@@ -336,6 +345,11 @@ fn decode(bytes: &[u8]) -> Option<HostShader> {
|
||||
shift: u8::try_from(r.word()?).ok().filter(|&s| s < 32)?,
|
||||
});
|
||||
}
|
||||
let n = r.word()? as usize;
|
||||
let mut half_views = Vec::with_capacity(n.min(256));
|
||||
for _ in 0..n {
|
||||
half_views.push((u8::try_from(r.word()?).ok()?, r.word()?));
|
||||
}
|
||||
r.0.is_empty().then_some(HostShader {
|
||||
stage,
|
||||
dxil,
|
||||
@@ -346,6 +360,7 @@ fn decode(bytes: &[u8]) -> Option<HostShader> {
|
||||
root_srvs,
|
||||
root_uavs,
|
||||
root_indexed_views,
|
||||
half_views,
|
||||
})
|
||||
}
|
||||
|
||||
@@ -380,6 +395,7 @@ mod tests {
|
||||
byte_offset: 32,
|
||||
shift: 5,
|
||||
}],
|
||||
half_views: vec![(0, 8), (4, 0)],
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user