Firestar99
082dd36a1e
nonuniform: ByteAddressableBuffer from RuntimeArray tests
2025-06-13 11:00:08 +02:00
Firestar99
6d786ff5a0
nonuniform: RuntimeArray::deref decorates index as NonUniform
2025-06-13 10:52:56 +02:00
Firestar99
d3662f113b
nonuniform: ByteAddressableBuffer decorates NonUniform if ShaderNonUniform capability is enabled
2025-06-13 10:52:56 +02:00
Firestar99
d3e739c4e5
nonuniform: add nonuniform declaration to all image operations, remove decoration during linking if undesired
2025-06-13 10:52:47 +02:00
Firestar99
9de728827d
nonuniform: unify image asm functions
2025-06-13 10:52:05 +02:00
Firestar99
d99cb688ef
compiletest: set default target to "vulkan1.2"
2025-06-13 10:13:18 +02:00
Christian Legnitto
30024f8641
Fix build
2025-06-12 06:26:15 -07:00
Christian Legnitto
4f3096a3b7
Add other cases to tests
2025-06-12 12:46:50 +00:00
Christian Legnitto
5ac73698e6
Add ImageSizeQuery
...
Without this cubemaps were broken...we were returning UVec3 but spirv
validation required UVec2.
2025-06-12 12:46:50 +00:00
Christian Legnitto
3da2aff3c1
Add query_size_lod and query_size methods to SampledImage
...
- Add query_size_lod for non-multisampled sampled images (Sampled=1)
- Add query_size for multisampled sampled images
- Add missing HasQuerySize trait implementations for Sampled::Yes
- Add tests for both methods
2025-06-12 12:46:50 +00:00
Christian Legnitto
73ae823661
Update mac target in CI to aarch64-apple-darwin
...
The `macOS-latest` images on GitHub are arm:
```
Current runner version: '2.324.0'
Operating System
macOS
14.7.5
23H527
Runner Image
Image: macos-14-arm64
```
2025-06-12 12:10:19 +00:00
Firestar99
fbe8893249
ci: replace spirv-tools prebuilds with vulkan sdk from lunarg
2025-06-11 20:15:13 +00:00
Firestar99
bd1a6fc5cb
compiletest: rewrite documentation
2025-06-11 07:12:51 +00:00
Firestar99
03e1fd7d98
difftests: don't cfg out the shader
2025-06-11 07:12:51 +00:00
Firestar99
77070b70b4
ci: move testing difftests to difftest ci
2025-06-05 10:29:25 +00:00
Firestar99
27564b0a32
ci: don't test example-runner-*, they have no tests, just check them
2025-06-05 10:29:25 +00:00
Firestar99
bf6f369edd
ci: test with "use-installed-tools"
2025-06-05 10:29:25 +00:00
Firestar99
88cc8e6224
ci: check lockfile of difftests
2025-06-05 10:29:25 +00:00
Firestar99
08a2ce5976
ci: separate out android build
2025-06-05 10:29:25 +00:00
Christian Legnitto
d9594d1b28
Split compiletests and difftests into parallel CI jobs
2025-06-05 10:29:25 +00:00
Christian Legnitto
63f98bbd44
Add explanation for why different workspace
2025-06-04 15:15:45 +00:00
Firestar99
d416b65572
accept absolute target_dir_path and properly resolve relative ones with cargo_metadata
2025-06-04 15:15:45 +00:00
Firestar99
98cc18fbd5
difftest: forward use-installed-tools
2025-06-04 15:15:45 +00:00
Firestar99
02fea9ced7
remove unused crate dependencies
2025-06-04 15:15:45 +00:00
Christian Legnitto
4fd2aad3d7
Prebuild all tests
2025-06-04 15:15:45 +00:00
Christian Legnitto
358712a5f2
Update lockfile
2025-06-04 15:15:45 +00:00
Christian Legnitto
401e0ef1d4
Fix warnings
2025-06-04 15:15:45 +00:00
Christian Legnitto
4e0da3fc0d
Add differential testing harness
...
This runs wgsl shaders and rust shaders and compares the output.
If the output differs, the test fails. Differential testing is better
than snapshot testing or golden file testing as there are no reference
files to get outdated.
2025-06-04 15:15:45 +00:00
Firestar99
32088c84f7
fix ci step Rustfmt compiletests
2025-06-04 11:21:47 +00:00
Firestar99
45a10f0405
move tests/* to tests/compiletests/*
2025-06-04 11:21:47 +00:00
Christian Legnitto
7526a78441
Fix inverted conditions in count_(leading|trailing)_zeros for 64-bit integers
...
Selecting between lower and upper 32-bit parts were swapped.
2025-06-03 22:18:07 +00:00
Eduard-Mihai Burtescu
e4375b1c82
Remove long-obsolete is_blocklisted_fn mechanism.
2025-06-03 16:29:32 +00:00
Firestar99
369122e170
add #[non_exhaustive] to SpirvBuilder and all dependent structs
2025-06-03 11:06:33 +00:00
Firestar99
86fc48032c
rename feature include_target_specs to include-target-specs
2025-05-29 09:36:11 +00:00
Firestar99
3dda1ae857
rename rustc_codegen_spirv_target_specs to rustc_codegen_spirv-target-specs
2025-05-29 09:36:11 +00:00
Firestar99
b7c9815b45
fix SpirvBuilder::print_metadata docs
2025-05-29 09:36:11 +00:00
Firestar99
3c70380cd9
remove non_exhaustive from SpirvBuilder
2025-05-29 09:36:11 +00:00
Firestar99
0b7ab4cf2b
make rustc_codegen_spirv depend on rustc_codegen_spirv_target_specs for cargo gpu
2025-05-29 09:36:11 +00:00
Firestar99
b4769685b0
fix spirv-builder with default-features = false failing to compile
2025-05-29 09:36:11 +00:00
Firestar99
950f065e60
move target specs to new rustc_codegen_spirv_target_specs crate
2025-05-29 09:36:11 +00:00
Firestar99
5d9750b322
upgrade compiletest
2025-05-26 13:50:50 +00:00
Firestar99
3b60bf9982
print possible values only once
2025-05-21 17:32:02 +00:00
Firestar99
f4a4ffb303
cargo fmt
2025-05-21 17:32:02 +00:00
jer
0b7db6432c
fix: remove unused import
2025-05-21 17:32:02 +00:00
jer
cfa458e277
fix: buff the help menu for the wgpu-runner
2025-05-21 17:32:02 +00:00
jer
fcb4fdf289
fix: undo doc edits, llvm-tools is already in the rust-toolchain.toml
2025-05-21 09:55:57 +00:00
jer
f944f0983b
fix: simplify comments..
2025-05-21 09:55:57 +00:00
jer
621f6acfd4
fix: use rust-lld and Zshare-generics=n
2025-05-21 09:55:57 +00:00
Firestar99
6d7c1cd6c0
compile_codegen: fix typo
2025-05-06 08:57:34 +00:00
Firestar99
e6933e7a91
compile_codegen: allow SpirvBuilder watch to return something on first completion
2025-05-06 08:57:34 +00:00