Skip to content

Commit 9cdfbd9

Browse files
committed
Set vulkan path on windows
1 parent 618b65c commit 9cdfbd9

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

.github/workflows/ci.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,11 @@ jobs:
149149
with:
150150
version: 1.4.309.0
151151
cache: true
152+
- if: ${{ runner.os == 'Windows' }}
153+
name: Windows - Setup Vulkan Runtime
154+
run: |
155+
echo "VK_LAYER_PATH=$VULKAN_SDK/Bin" >> "$GITHUB_ENV"
156+
echo "$VULKAN_SDK/Bin" >> "$GITHUB_PATH"
152157
- if: ${{ runner.os == 'Linux' }}
153158
name: Linux - Install native dependencies
154159
run: sudo apt install libwayland-cursor0 libxkbcommon-dev libwayland-dev

tests/difftests/bin/src/differ.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ impl NumericType for u32 {
150150
format!("{}", value)
151151
}
152152
fn can_have_relative_diff() -> bool {
153-
false
153+
true
154154
}
155155
fn as_f64(value: Self) -> f64 {
156156
value as f64
@@ -403,8 +403,8 @@ mod tests {
403403
_ => panic!("Expected numeric difference"),
404404
}
405405
match &diffs[0].relative_diff {
406-
DiffMagnitude::Incomparable => {}
407-
_ => panic!("Expected incomparable relative diff for U32"),
406+
DiffMagnitude::Numeric(val) => assert_eq!(*val, 3.0 / 5.0), // 3/5 = 0.6
407+
_ => panic!("Expected numeric relative diff for U32"),
408408
}
409409

410410
// Check second difference (index 3: 4 vs 7)

0 commit comments

Comments
 (0)