Commit Graph

82 Commits

Author SHA1 Message Date
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
Ashley Hauck
5633a79d93
Document build-override to speed up shader building (#787) 2021-10-28 13:17:39 +00:00
Ashley Hauck
44c9fdd8c5
Release v0.4.0-alpha.12 (#719) 2021-08-12 10:46:32 +00:00
Markus Siglreithmaier
46c9ea0c9c
book: Add section for storage class interference (#714)
* book: add section for workgroup memory

* book: add section regarding storage class interference
2021-08-10 11:21:49 +00:00
Markus Siglreithmaier
2ddae102eb
book: add section for workgroup memory (#713) 2021-08-10 08:32:51 +02:00
Ashley Hauck
819365cbae
Release v0.4.0-alpha.11 (#702) 2021-08-02 14:02:02 +00:00
Ashley Hauck
8924fe7b4c
Clean up DUMP environment variables (#673) 2021-06-17 17:07:35 +02:00
Ashley Hauck
e1a000d408
Nuke const generics feature (#661)
* Nuke const generics feature

* Remove spirv(image_type) attribute
2021-06-15 09:19:23 +02:00
Ashley Hauck
c829157b8b
Fix up some outdated documentation (#650) 2021-06-09 12:21:42 +02:00
Ashley Hauck
64380d609a
Add Image! docs to book (#652) 2021-06-09 12:18:05 +02:00
Markus Siglreithmaier
486a3cee2e
Always emit cargo dependency information (#618)
* spirv-builder: Add more control over cargo metadata printout

* lint fix
2021-06-03 22:03:03 +02:00
XAMPPRocky
b6311789bb
Add new handling for SPIR-V targets (#559)
* Add new handling for SPIR-V targets

* Ensure target is always three components
2021-04-12 11:19:28 +00:00
Anirudh S
439dc5c6a1
Fix grammatical typo (#588)
Add preposition "to" to make the documentation more clear.

Consulted in the Discord server to confirm this.
2021-04-12 07:34:39 +02:00
Urho Laukkarinen
fccf8418c3
Update .cargo/config guide in the book (#589)
The .cargo/config snippet in the book was missing
a line without which the build gave an error
`error: Unresolved symbol "memcmp"`
2021-04-12 07:33:59 +02:00
Eduard-Mihai Burtescu
4395b84114 Deprecate #[spirv(block)] and auto-wrap in "interface blocks" instead. 2021-04-05 20:45:59 +03:00
XAMPPRocky
3a53968817
Add support for multiple target environments (#533)
* Add support for multiple target environments

* updates from code review

* Update lib.rs
2021-03-29 18:43:07 +02:00
khyperia
bc5c45f696 docs 2021-03-26 13:15:29 +01:00
Eduard-Mihai Burtescu
e04e1f53fc Replace spirv_std::storage_class::X<T> with &T/&mut T and optionally #[spirv(x)]. 2021-03-23 09:30:24 +01:00
Eduard-Mihai Burtescu
54cb4ada2e compiletest: allow specifying filters via cargo compiletest .... 2021-03-22 19:01:56 +02:00