firestar99
84e8cf52d5
user guide: crate structure shader crate overview
2025-11-06 17:53:29 +01:00
firestar99
4dbfcf62ce
user guide: split up old writing-shader-crates.md
2025-11-06 11:41:02 +01:00
firestar99
4e472cf91d
user guide: structure
2025-11-06 11:40:33 +01:00
firestar99
22a72113f6
docs: remove debugging link
2025-11-04 11:53:27 +01:00
Christian Legnitto
2232fcb7b5
Do not ICE on indirect fn pointers
...
Rust Toolchain Upgrade / check-and-upgrade (push) Has been skipped
Fixes https://github.com/Rust-GPU/rust-gpu/issues/452 .
2025-10-28 08:49:53 +00:00
foo
808974a0d0
Remove unnecessary closures
Rust Toolchain Upgrade / check-and-upgrade (push) Has been skipped
2025-10-27 03:55:32 +00:00
firestar99
67ccf2f6aa
format args decompiler: move support functions in spirv-std to mod debug_printf
...
Rust Toolchain Upgrade / check-and-upgrade (push) Has been skipped
Currently, every time `lib.rs` changes, there's a change in the debug printf compiletest stderr, which is causing a lot of churn.
2025-10-22 13:42:03 +00:00
firestar99
85f6c47012
macros: move gen_sample_param_permutations macro to separate mod
2025-10-22 13:42:03 +00:00
firestar99
921f692658
macros: move debug_printf macro to separate mod
2025-10-22 13:42:03 +00:00
firestar99
d5c290e6f7
format args decompiler: expand closures to proper types
2025-10-22 13:42:03 +00:00
firestar99
3d33a80618
format args decompiler: move to a separate mod
2025-10-22 13:42:03 +00:00
firestar99
8c3fa7b7e8
subgroup: add subgroup_broadcast_const variant for pre-spv1.5 broadcasts
2025-10-22 13:31:48 +00:00
firestar99
9fc1a5fe5d
subgroup: fix docs typo
2025-10-22 13:31:48 +00:00
firestar99
f438c8c817
scalar or vector: rename VectorOrScalar to ScalarOrVector and give it its own mod
2025-10-22 12:30:23 +00:00
firestar99
9806b1c1a9
scalar or vector: minor vector code cleanup
2025-10-22 12:30:23 +00:00
firestar99
08a245cb23
scalar or vector: move all scalar traits and impl macros to mod scalar
2025-10-22 12:30:23 +00:00
firestar99
0ada17d0ec
scalar or vector: reexport all Scalar traits in lib.rs, make mods private
...
apart from `mod float`, which contains functionality
2025-10-22 12:30:23 +00:00
firestar99
3e88a572c4
scalar or vector: unwrap is now a const fn cleanup
2025-10-22 12:30:23 +00:00
Nicholas Nethercote
25d9da35ab
Fix some formatting.
2025-10-22 09:33:57 +00:00
Nicholas Nethercote
648a020869
Remove an unnecessary pub.
2025-10-22 09:33:57 +00:00
Nicholas Nethercote
9f269e16f0
Simplify sample_type_impls!.
...
- The first `@single_rule` rule just repeats the contents of the
subsequent four `@single_rule` rules. So just call them.
- The subsequent four `@single_rule` rules don't need to handle
repetition, because the first rule handles that.
2025-10-22 09:33:57 +00:00
Nicholas Nethercote
bbe6725aa6
Remove extraneous whitespace in lod_type.
2025-10-22 09:33:57 +00:00
Nicholas Nethercote
ebdea09556
Rename parsing_error as parse_error.
...
`parsing_error` reads strangely. `parse_error` is much more normal.
2025-10-22 09:33:57 +00:00
firestar99
a28bd3a333
SpecConstant: add arrayed spec constants
2025-10-22 08:37:42 +00:00
firestar99
300da9c21d
compiletest: pass -Zui-testing to rustc
2025-10-22 03:55:58 +00:00
firestar99
50019a74a8
compiletest: normalize subgroup tests
2025-10-22 03:55:58 +00:00
firestar99
e767f24f25
remove example build scripts forwarding PROFILE env var
...
Rust Toolchain Upgrade / check-and-upgrade (push) Has been skipped
no longer necessary since d416b65572
2025-10-20 06:44:12 +00:00
firestar99
2aa4d4f8a8
abi layout: remove pqp_cg_ssa patch for #[repr(SIMD)]
Rust Toolchain Upgrade / check-and-upgrade (push) Has been skipped
2025-10-15 09:42:01 +00:00
firestar99
e7971d3695
compiletest: update readme normalize examples
2025-10-15 09:42:01 +00:00
firestar99
9dc925725e
abi layout: assert member offsets of vectors are as expected
2025-10-15 09:42:01 +00:00
firestar99
adf6ee9523
abi layout: add some compiletests
2025-10-15 09:42:01 +00:00
firestar99
7e02135fb8
abi layout: limit vectors to at most 4 components, as spec states
2025-10-15 09:42:01 +00:00
firestar99
94c26ffdee
abi layout: improve documentation on Scalar and Vector
2025-10-15 09:42:01 +00:00
firestar99
9218e64b59
abi layout: minor code cleanups
2025-10-15 09:42:01 +00:00
firestar99
95837d7999
abi layout difftest: cuda and scalar-math feature testing
2025-10-15 09:42:01 +00:00
firestar99
6ed642b5bb
abi layout difftest: cuda and scalar-math feature forwarding
2025-10-15 09:42:01 +00:00
firestar99
45147a21d5
abi layout difftest: add all remaining glam types
2025-10-15 09:42:01 +00:00
firestar99
5e6a1ccaef
abi layout: remove #[repr(SIMD)] hack
2025-10-15 09:42:01 +00:00
firestar99
a5442acd31
abi layout compiletest: bless complex_image_sample_inst
2025-10-15 09:42:01 +00:00
firestar99
9b2860639f
abi layout: change Subgroup from transparent struct to typedef
2025-10-15 09:42:01 +00:00
firestar99
f30056a1c1
abi layout compiletest: fix invalid-matrix-type
2025-10-15 09:42:01 +00:00
firestar99
372692fdd2
abi layout: make insert_value() support Array, Vector, Matrix
2025-10-15 09:42:01 +00:00
firestar99
e7f4f3b81b
abi layout: glam::BVec support
2025-10-15 09:42:01 +00:00
firestar99
be1dead8cd
abi layout: give Vector a dynamic size and alignment
2025-10-15 09:42:01 +00:00
firestar99
cb8df101b4
update glam: switch from #[repr(SIMD)] to #[rust_gpu::vector::v1]
2025-10-15 09:42:01 +00:00
firestar99
c83ef32ab7
abi layout difftest: add member offset checking
2025-10-15 09:42:01 +00:00
firestar99
5037751f8a
abi layout difftest: add difftest for layout size and alignment
2025-10-15 09:42:01 +00:00
Eduard-Mihai Burtescu
6a9ea3bb96
abi: use PassMode::Direct even for data types that can be passed as scalar pairs.
Rust Toolchain Upgrade / check-and-upgrade (push) Has been skipped
2025-10-13 13:12:48 +00:00
firestar99
3b1ad48cae
ci: ensure lint and cargo-deny succeed before merging
Rust Toolchain Upgrade / check-and-upgrade (push) Has been skipped
2025-10-12 18:03:00 +00:00
firestar99
a26e0df73a
compiletest: shared memory reductions, using the same type in buffers and as shared memory
Rust Toolchain Upgrade / check-and-upgrade (push) Has been skipped
2025-10-11 10:58:29 +00:00