Commit Graph

782 Commits

Author SHA1 Message Date
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
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
d416b65572 accept absolute target_dir_path and properly resolve relative ones with cargo_metadata 2025-06-04 15:15:45 +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
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
Firestar99
11162812f2 compile_codegen: refactor watcher to call on_compilation_finishes() even on first completion, code cleanup 2025-05-06 08:57:34 +00:00
Firestar99
a89fd93f81 compile_codegen: change default MetadataPrintout to None 2025-05-06 08:57:34 +00:00
Firestar99
214e8a738d compile_codegen: SpirvBuilder: fix query_rustc_version() for stable rustc versions 2025-05-06 08:57:34 +00:00
Firestar99
0d8970a36f compile_codegen: SpirvBuilder: only use target_spec json when compiler is new enough 2025-05-06 08:57:34 +00:00
Firestar99
5ea9ced818 compile_codegen: SpirvBuilder: remove RUSTC env var before calling cargo 2025-05-06 08:57:34 +00:00
Firestar99
fe58d777a3 compile_codegen: include_str! all target_spec jsons for cargo gpu 2025-05-06 08:57:34 +00:00
Firestar99
c429b5121d compile_codegen: add SpirvBuilder.toolchain_overwrite 2025-05-06 08:57:34 +00:00
Firestar99
0ad224c32f compile_codegen: make SpirvBuilder::build() no longer consume self 2025-05-06 08:57:34 +00:00
Firestar99
a8737f2883 compile_codegen: add warning in build.rs about cargo gpu parsing 2025-05-06 08:57:34 +00:00
Firestar99
3f07cb9265 compile_codegen: serde flatten 2025-05-06 08:57:34 +00:00
Firestar99
329c670c08 compile_codegen: make clip skip variables not previously exposed 2025-05-06 08:57:34 +00:00
Firestar99
3bdcc83edd compile_codegen: derive Debug for SpirvBuilder 2025-05-06 08:57:34 +00:00
Firestar99
ca5b6575b8 compile_codegen: add clap feature, make SpirvBuilder args the same as cargo gpu 2025-05-06 08:57:34 +00:00
Firestar99
3114d941fe compile_codegen: add serde derives 2025-05-06 08:57:34 +00:00
Firestar99
e2f8a0036a compile_codegen: rename feature from compile_codegen to rustc_codegen_spirv 2025-05-06 08:57:34 +00:00
Firestar99
e5174d157a compile_codegen: validate rustc_codegen_spirv_location on build 2025-05-06 08:57:34 +00:00
Firestar99
b089f30d65 compile_codegen: fix lint 2025-05-06 08:57:34 +00:00
Firestar99
4a4f18b9b5 compile_codegen: fix watch feature 2025-05-06 08:57:34 +00:00
Firestar99
b1aadd6f93 compile_codegen: forward missing codegen backend error 2025-05-06 08:57:34 +00:00
Firestar99
7e419b634f compile_codegen: make SpirvBuilder fields pub, reuse spirv-tools structs 2025-05-06 08:57:34 +00:00
Firestar99
7b53ee341c compile_codegen: make SpirvBuilderError use thiserror 2025-05-06 08:57:34 +00:00
Firestar99
7d755f6f7c compile_codegen: panic when rustc_codegen_spirv_location is not set 2025-05-06 08:57:34 +00:00
Firestar99
489b8f6039 compile_codegen: add compile_codegen feature 2025-05-06 08:57:34 +00:00
Firestar99
1e4e468ccf force libm <=0.2.11, as 0.2.12 has breaking changes 2025-04-26 16:51:03 +00:00
Firestar99
f6e22b45d2 fix warnings 2025-04-21 14:47:13 +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
dd3ed28a3f derivative: fix doc links 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