mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-04-22 03:02:01 -04:00
Fix span includes into function validation (#1500)
This commit is contained in:
13
.github/workflows/lazy.yml
vendored
13
.github/workflows/lazy.yml
vendored
@@ -26,6 +26,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
name: code-coverage-report
|
name: code-coverage-report
|
||||||
path: cobertura.xml
|
path: cobertura.xml
|
||||||
|
|
||||||
parse-dota2:
|
parse-dota2:
|
||||||
name: Parse Dota2 shaders
|
name: Parse Dota2 shaders
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -44,6 +45,7 @@ jobs:
|
|||||||
run: cargo build --release --bin naga
|
run: cargo build --release --bin naga
|
||||||
- name: Convert shaders
|
- name: Convert shaders
|
||||||
run: for file in data/*.spv ; do echo "Translating" ${file} && target/release/naga --validate 27 ${file} ${file}.metal; done
|
run: for file in data/*.spv ; do echo "Translating" ${file} && target/release/naga --validate 27 ${file} ${file}.metal; done
|
||||||
|
|
||||||
parse-vulkan-tutorial-shaders:
|
parse-vulkan-tutorial-shaders:
|
||||||
name: Parse Sascha Willems Vulkan tutorial shaders
|
name: Parse Sascha Willems Vulkan tutorial shaders
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -76,6 +78,7 @@ jobs:
|
|||||||
echo "Result: $(expr $FILE_COUNT - $SUCCESS_RESULT_COUNT) / $FILE_COUNT" > counter
|
echo "Result: $(expr $FILE_COUNT - $SUCCESS_RESULT_COUNT) / $FILE_COUNT" > counter
|
||||||
done
|
done
|
||||||
cat counter
|
cat counter
|
||||||
|
|
||||||
dneto0_spirv-samples:
|
dneto0_spirv-samples:
|
||||||
name: Parse dneto0 spirv-samples
|
name: Parse dneto0 spirv-samples
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -149,8 +152,9 @@ jobs:
|
|||||||
echo "Result: $(expr $FILE_COUNT - $SUCCESS_RESULT_COUNT) / $FILE_COUNT" > counter
|
echo "Result: $(expr $FILE_COUNT - $SUCCESS_RESULT_COUNT) / $FILE_COUNT" > counter
|
||||||
done
|
done
|
||||||
cat counter
|
cat counter
|
||||||
check_snapshots_without_validation:
|
|
||||||
name: Check snapshots (without validation)
|
check-snapshots-extra:
|
||||||
|
name: Check snapshots (validated or not)
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
@@ -158,6 +162,11 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
profile: minimal
|
profile: minimal
|
||||||
toolchain: stable
|
toolchain: stable
|
||||||
|
- uses: actions-rs/cargo@v1
|
||||||
|
name: Test minimal (without span)
|
||||||
|
with:
|
||||||
|
command: test
|
||||||
|
args: --features validate -p naga
|
||||||
- uses: actions-rs/cargo@v1
|
- uses: actions-rs/cargo@v1
|
||||||
name: Test all (without validation)
|
name: Test all (without validation)
|
||||||
with:
|
with:
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ use super::{
|
|||||||
ExpressionError, FunctionInfo, ModuleInfo,
|
ExpressionError, FunctionInfo, ModuleInfo,
|
||||||
};
|
};
|
||||||
use crate::span::WithSpan;
|
use crate::span::WithSpan;
|
||||||
#[cfg(feature = "span")]
|
#[cfg(feature = "validate")]
|
||||||
use crate::span::{AddSpan as _, MapErrWithSpan as _};
|
use crate::span::{AddSpan as _, MapErrWithSpan as _};
|
||||||
|
|
||||||
#[cfg(feature = "validate")]
|
#[cfg(feature = "validate")]
|
||||||
|
|||||||
Reference in New Issue
Block a user