Fix wipeout rotation and block frame width

This commit is contained in:
Hakan Seven committed 2026-09-11 20:38:00 +03:00
1 parent 4a7f08f80e
commit d07e8cf7d4
4 files changed
+61 -8

No files matched your search

+13
View File
@@ -1495,6 +1495,19 @@ mod block_wire_storage_tests {
assert_eq!(names(&packed), names(&storage));
}
#[test]
fn both_block_wire_shaders_honor_fixed_screen_width() {
for source in [
include_str!("../../shaders/block_wire.wgsl"),
include_str!("../../shaders/block_wire_storage.wgsl"),
] {
assert!(source.contains("if world_hw < 0.0"));
assert!(source.contains(
"resolve_hw(0.0, wire_const.world_half_width, wire_const.half_width)"
));
}
}
#[test]
fn wire_shader_validates_with_naga() {
let source = include_str!("../../shaders/wire.wgsl");