Take the test/fx-prs branch of asdaasdsaddf's fork (as one commit)
Double-precision shader instructions (v_cvt_f32_f64, v_add_f64 sums, the makeDouble overload name and flag), a first half of a paired interpolation read as data, sooner eviction of idle textures and caches under memory pressure, a retried DirectStorage destination write, the texture catch-up budget, VICTORY_FIRSTLANE_OWN, and zlib-rs in place of miniz_oxide. Left out: the fork's personal launcher scripts and its readme. Co-Authored-By: Claude Fable 5.2 <[email protected]>
This commit is contained in:
1 parent
2119b0e44c
commit
3bff182ef4
22 files changed
+1147
-64
No files matched your search
@@ -184,11 +184,10 @@ fn save_as(name: &str, width: u32, height: u32, pitch: usize, bgra: bool, rows:
|
||||
header.extend(h.to_be_bytes());
|
||||
header.extend([8, 2, 0, 0, 0]); // 8-bit RGB
|
||||
chunk(&mut png, b"IHDR", &header);
|
||||
chunk(
|
||||
&mut png,
|
||||
b"IDAT",
|
||||
&miniz_oxide::deflate::compress_to_vec_zlib(&raw, 3),
|
||||
);
|
||||
let mut compressed = vec![0u8; zlib_rs::compress_bound(raw.len())];
|
||||
let (idat, rc) = zlib_rs::compress_slice(&mut compressed, &raw, zlib_rs::DeflateConfig::new(3));
|
||||
debug_assert_eq!(rc, zlib_rs::ReturnCode::Ok);
|
||||
chunk(&mut png, b"IDAT", idat);
|
||||
chunk(&mut png, b"IEND", &[]);
|
||||
let path = folder.join(format!("{name}.png"));
|
||||
match std::fs::write(&path, png) {
|
||||
|
||||
Reference in new issue
Block a user