Commit Graph

339 Commits

Author SHA1 Message Date
Firestar99
082dd36a1e nonuniform: ByteAddressableBuffer from RuntimeArray tests 2025-06-13 11:00:08 +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
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
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
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
Firestar99
3dda1ae857 rename rustc_codegen_spirv_target_specs to rustc_codegen_spirv-target-specs 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
Joerg Wollenschlaeger
2220ab1ed1 Only decorate physically sized types with ArrayStride 2025-04-21 14:47:13 +00:00
Christian Legnitto
2f915a09f1 Correctly calculate access chains for compound types
Fixes #46.
2025-04-20 22:45:03 -04:00
Firestar99
0b37696e9f derivative: fix missing safety doc 2025-04-10 20:21:12 +00:00
Firestar99
dd0c512d5c derivative: rename derivative functions to match GLSL 2025-04-10 20:21:12 +00:00
Firestar99
1151ec177d derivative: do not implicitly turn on OpCapability DerivativeControl, fix warnings 2025-04-10 20:21:12 +00:00
Firestar99
7a430903cb derivative: add compiletests 2025-04-10 20:21:12 +00:00
julianknodt
f180b8de09 Account for signedness in memset const pat
Fixes https://github.com/Rust-GPU/rust-gpu/issues/85.
Fixes https://github.com/EmbarkStudios/rust-gpu/issues/1061

Thanks to @LegNeato
2025-04-09 19:26:55 +00:00
Firestar99
cef45477fa count_ones: add failing tests for count_ones and bit_reverse 2025-03-21 23:17:37 +00:00
Firestar99
95d29022a2 leading_zeros: support 8bit, 16bit and emulate 64bit 2025-03-21 23:17:37 +00:00
Firestar99
488bbd838a leading_zeros: add tests for non 32bit integers, failing 2025-03-21 23:17:37 +00:00
Firestar99
21eb5fd110 leading_zeros: add support for leading_zeros and trailing_zeros, limited to u32/i32 2025-03-21 23:17:37 +00:00
Eduard-Mihai Burtescu
ea20ef36a7 WIP: couple of inliner things that need to be disentangled 2025-03-17 16:49:44 +00:00
Christian Legnitto
854e9ba7da Use fmul in log10 intrinsic
Fixes https://github.com/Rust-GPU/rust-gpu/issues/199.
2025-01-13 09:27:06 -04:00
Firestar99
f815534258 mesh shaders: added per_primitive_ext output attribute 2024-12-25 15:27:30 +00:00
Firestar99
3500363ed4 mesh shader ext: added test for task shader mispile when shader may panic 2024-12-25 15:27:30 +00:00
Firestar99
21f46d9856 mesh shader ext: fix task shader payload passing 2024-12-25 15:27:30 +00:00
Firestar99
710e394df7 mesh shader ext: cargo fmt compiletests 2024-12-25 15:27:30 +00:00
BeastLe9enD
da0e7dbc43 mesh shader ext: compiletest for mesh shaders, from @BeastLe9enD 2024-12-25 15:27:30 +00:00
Firestar99
565db88a8c make vector and scalar traits also imply Copy 2024-12-20 14:46:27 +00:00
Eduard-Mihai Burtescu
c3410d45e0 rustup: update to nightly-2024-11-22 (~1.84). 2024-12-18 10:46:51 +00:00
Eduard-Mihai Burtescu
76b96c0e05 rustup: update to nightly-2024-10-12 (~1.83). 2024-12-18 10:46:51 +00:00
Eduard-Mihai Burtescu
596512884a Update formatting for nightly-2024-10-12 (~1.83). 2024-12-18 10:46:51 +00:00
Eduard-Mihai Burtescu
016122df03 rustup: update to nightly-2024-09-01 (~1.82). 2024-12-18 10:46:51 +00:00
Eduard-Mihai Burtescu
3e56c3deda rustup: update to nightly-2024-07-20 (~1.81). 2024-12-18 10:46:51 +00:00
Eduard-Mihai Burtescu
5279b19a51 rustup: update to nightly-2024-06-08 (~1.80). 2024-12-18 10:46:51 +00:00
Eduard-Mihai Burtescu
274a0dddc8 rustup: update to nightly-2024-05-01. 2024-12-18 10:46:51 +00:00
Christian Legnitto
d9dba916e9 Add failing tests for https://github.com/Rust-GPU/rust-gpu/issues/46 (#165)
These passed before 02cd3248ad.
2024-12-12 20:36:59 -04:00