firestar99
70b1df24ca
dylib: update docs
2025-12-05 23:29:56 +00:00
Christian Legnitto
6fb875068d
Fix docs.
...
Rust Toolchain Upgrade / check-and-upgrade (push) Has been skipped
Fixes https://github.com/Rust-GPU/rust-gpu/issues/470
2025-11-30 16:44:15 +00:00
Eduard-Mihai Burtescu
c3f51fd578
linker: early zombie reporting doesn't need to mutate the module anymore (thanks to DCE).
2025-07-26 02:59:36 +00:00
Eduard-Mihai Burtescu
6aeec0b9c6
linker: make DCE mandatory and run it very early on, as well.
2025-07-26 02:59:36 +00:00
Firestar99
cf35ac5814
add vulkan1.3, vulkan1.4 and spv1.6 targets
2025-06-22 12:48:23 +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
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
jer
fcb4fdf289
fix: undo doc edits, llvm-tools is already in the rust-toolchain.toml
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
Eduard-Mihai Burtescu
d6d3cef2fe
linker: add --dump-{pre,post}-inline to be able to debug the inliner.
2025-03-17 16:49:44 +00:00
Christian Legnitto
6e2c84d4fe
Replace printing codegen args with tracing.
...
This removes the following options and replaces them with `tracing`:
* `--specializer-debug` => RUSTGPU_LOG=rustc_codegen_spirv::specializer=debug
* `--print-zombie` => RUSTGPU_LOG=print_zombie=debug
* `--print-all-zombie` => RUSTGPU_LOG=print_all_zombie=debug
2025-01-21 11:16:21 -04:00
Marek Bernat
d3f9af7bd4
Update .cargo/config section of writing-shader-crates.md
...
Improve the .cargo/config section, since the instruction didn't quite work anymore
2024-11-26 03:24:40 +00:00
Eduard-Mihai Burtescu
5354c97b45
update spirt to 0.4.0
2024-10-18 09:27:41 -04:00
Bruce Mitchener
529aaf4f3f
Reduce typo count. ( #18 )
2024-09-26 07:04:55 +12:00
Christian Legnitto
e54dd75fb7
Initial changes for the handoff from Embark to the community. ( #1 )
...
* Change URLs
* Switch away from paid runners.
* Drop copyright from MIT license. Similar to the Rust project. See the git history of
https://github.com/rust-lang/rust/blob/master/LICENSE-MIT
2024-07-18 11:21:15 -04:00
Eduard-Mihai Burtescu
c2f98b612a
Bump version to 0.9.0.
2023-07-25 12:52:29 +03:00
Eduard-Mihai Burtescu
2c2a3bc31c
Improve custom debuginfo with aggressive deduplication.
2023-07-25 12:07:36 +03:00
Eduard-Mihai Burtescu
af2a9ee445
Add specialization constants via #[spirv(spec_constant(id = 123))] x: u32 entry-point inputs.
2023-07-21 12:27:17 +03:00
Eduard-Mihai Burtescu
cfaabbab08
Bump version to 0.8.0.
2023-06-02 18:55:33 +03:00
Eduard-Mihai Burtescu
c5dcd035b1
Add custom_insts for our own OpExtInsts, and use it for some debuginfo.
2023-06-02 00:32:50 +03:00
Eduard-Mihai Burtescu
42006190cd
Update docs/src/writing-shader-crates.md
2023-05-30 08:02:46 +03:00
shelvacu
62a3f609c6
Book cleanup
...
Add the line to configure a crate as a dylib and update rust-toolchain file link
2023-05-30 08:02:46 +03:00
Eduard-Mihai Burtescu
795f433fdd
Add missing --no-infer-storage-classes docs to codegen-args.md.
2023-05-20 12:51:55 +03:00
Eduard-Mihai Burtescu
2bac7c1bf0
Remove --no-spirt and the old structurizer.
2023-05-19 15:14:33 +03:00
Eduard-Mihai Burtescu
63899d3af6
Bump version to 0.7.0.
2023-04-21 23:28:31 +03:00
Eduard-Mihai Burtescu
ee8adbf566
linker: add a SPIR-T-based zombie reporting alternative, behind --no-early-report-zombies.
2023-04-21 10:31:46 +03:00
Sylvester Hesp
ae66c7cc1a
Removed glam feature toggle altogether
2023-03-15 04:59:33 -07:00
Sylvester Hesp
eaab5101ce
Made --spirt the default, added --no-spirt
2023-03-15 02:02:17 -07:00
Sylvester Hesp
31660ac63c
More typo fixes
...
Co-authored-by: Eduard-Mihai Burtescu <eddyb@lyken.rs >
2023-02-22 07:39:54 -08:00
Sylvester Hesp
53e0c1c522
Fixed typo in docs
2023-02-22 07:39:54 -08:00
Sylvester Hesp
547309a73c
Changed current version to 0.5.0
2023-02-03 03:34:51 +01:00
Eduard-Mihai Burtescu
402afd7403
Add CHANGELOG entry for --spirt-passes=....
2023-02-01 11:08:36 +02:00
Eduard-Mihai Burtescu
6ed51e87b2
linker: add --spirt-passes codegen args and underlying abstraction.
2023-02-01 11:08:36 +02:00
Boris-Chengbiao Zhou
4a217f21d6
Update docs for manual shader crate building
...
Add some additional flags based on crates/spirv-builder/src/lib.rs which
weren't updated here yet. (causing compilation errors)
Also update the wording so it doesn't seem like the user is supposed to
call `cargo -Zbuild-std`.
2023-01-03 15:30:36 +01:00
Sylvester Hesp
a4abcce554
Trying to fix doc build
2022-12-21 12:16:49 +01:00
Sylvester Hesp
d2d6ee2f75
Updated docs
2022-12-20 10:44:31 -08:00
Sylvester Hesp
6b1bf8f689
Update docs/src/publishing-rust-gpu.md
...
Co-authored-by: Eduard-Mihai Burtescu <eddyb@lyken.rs >
2022-12-20 10:44:31 -08:00
Sylvester Hesp
a2fe52b904
Update docs/src/writing-shader-crates.md
...
Co-authored-by: Eduard-Mihai Burtescu <eddyb@lyken.rs >
2022-12-20 10:44:31 -08:00
Sylvester Hesp
9199a89ea4
Updated docs
2022-12-20 10:44:31 -08:00
Eduard-Mihai Burtescu
85e4df3136
Include identifying information (e.g. crate names) in --dump-* filenames.
2022-12-13 06:18:03 +02:00
Eduard-Mihai Burtescu
8535bb3bf1
Minimally integrate SPIR-T (opt-in via RUSTGPU_CODEGEN_ARGS=--spirt).
2022-12-12 17:14:35 +02:00
Eduard-Mihai Burtescu
b3c280424c
Migrate rustc_codegen_spirv env vars to codegen args.
2022-12-09 11:46:27 +02:00
Sylvester Hesp
097ba40bed
Fixed some errors in documentation
2022-10-19 17:36:43 +03:00
Sylvester Hesp
c3a9b9fd3e
Migration from register_attr to register_tool ( #926 )
...
* Accept `#[rust_gpu::spirv()]` attributes rather than `#[spirv()]` in backend
* Implemented `#[spirv(..)]` proc macro attribute for all platforms that conditionally translates to `#[rust_gpu::spirv()]` based on platform
* Changed `SpirvBuilder` to always apply `register_tool(rust_gpu)` attribute to shader crates
* Updated docs
* Added changelog
2022-10-19 09:50:24 +00:00
tata
a435c93317
Add note comment about environment variable
2022-05-21 21:52:26 +03:00
Ashley Hauck
f780364317
rustup update ( #840 )
...
* rustup update
* asm->core::arch::asm
2022-01-13 17:27:33 +02:00
Ashley Hauck
edd0a67392
Add docs for linux package requirements ( #820 )
2021-12-08 15:33:10 +02:00
Ashley Hauck
2e4de94a66
Generate bools as bools instead of u8 ( #809 )
...
* Generate bools as bools instead of u8
* convert bool->int select to cast
2021-11-30 13:12:13 +00:00
Ashley Hauck
fe5c613ac1
Document behavior of bools in asm ( #786 )
2021-10-29 14:05:24 +03:00