Commit Graph

490 Commits

Author SHA1 Message Date
Erin Power
8e50b61a42 Release 0.3.0
compute-shader@0.3.0
rustc_codegen_spirv@0.3.0
spirv-builder@0.3.0
spirv-std@0.3.0
spirv-std-macros@0.3.0

Generated by cargo-workspaces
compute-shader@0.3.0 rustc_codegen_spirv@0.3.0 spirv-builder@0.3.0 spirv-std-macros@0.3.0 spirv-std@0.3.0
2021-02-16 13:55:47 +01:00
Erin Power
5f2f7714a7 Update version to match 0.2.1 2021-02-16 13:04:17 +01:00
Ashley Hauck
0285edb860 simd_types_indirect: false (#431)
also fix bug in abi.rs - vectors are always memory, never immediate
2021-02-15 14:59:55 +00:00
Henno
45f7a36d66 Fix wgpu-runner validation errors on minimize (#424)
Vulkan swap chains must have non-zero dimensions, this adds a check for that during swap chain resizing and does not create one if it would be invalid.
2021-02-15 15:48:29 +01:00
Ashley Hauck
8fe8e88a06 Update docs for the Image storage class (#426) 2021-02-15 08:32:28 +00:00
Ashley Hauck
0b75728664 rm .mergify.yml (#422) 2021-02-12 13:28:19 +00:00
Ashley Hauck
56067de909 Support const args in asm! (#421) 2021-02-12 14:05:31 +01:00
Ashley Hauck
edbbf387dd Disable mergify (#420)
As discussed in #rust-gpu on discord, it's more pain than it's worth
2021-02-12 10:10:26 +00:00
XAMPPRocky
c10a6c0747 Add vector_insert_dynamic (#411)
* Add vector_insert_dynamic and copy_object

* Update arch.rs

* Update basic.rs

* Update arch.rs

* Update spirv_type_constraints.rs
2021-02-11 15:18:52 +00:00
Eduard-Mihai Burtescu
2f9d4d8e0d Add a missing err.emit(); for the "spirv-opt failed" error. (#412) 2021-02-10 13:42:43 +00:00
XAMPPRocky
b60e258686 Add inline assembly docs (#410)
* Add inline assembly docs

* Add more docs

* Update inline-asm.md
2021-02-10 12:32:43 +00:00
Ashley Hauck
8a68551a06 Fix #403 (#407) 2021-02-02 12:20:10 +00:00
Eduard-Mihai Burtescu
3a4d140328 Don't require 1:1 mapping between OpTypeStructs and their names. (#406) 2021-02-01 14:24:02 +00:00
Ashley Hauck
3f0900c89d Enable optimizer (#401)
* Enable optimizer

* Fix tests
2021-01-29 11:30:56 +00:00
Ashley Hauck
9f6c91c278 Remove different OpNames that target the same ID (#398) 2021-01-28 13:16:06 +00:00
Eduard-Mihai Burtescu
810ba5d1e4 Use rspirv::dr::Function's def_id convenience method. (#397) 2021-01-28 09:52:41 +00:00
XAMPPRocky
69b94bb6f9 Add initial arch module (#394) 2021-01-27 15:54:17 +00:00
Ashley Hauck
d88379908a deduplicate OpVariable (#396) 2021-01-26 16:03:14 +00:00
Ashley Hauck
f9c2bdc766 Update minifb to released version (#395) 2021-01-26 11:17:43 +00:00
Eduard-Mihai Burtescu
b48f779ae7 Add .vscode/ to .gitignore. (#393) 2021-01-25 13:31:32 +00:00
XAMPPRocky
353bb96bd3 Add gpu_only proc macro (#392) 2021-01-25 10:39:47 +00:00
XAMPPRocky
19cf332f6c Mention web based ways to try rust-gpu (#388) 2021-01-21 08:52:21 +00:00
Jesse
04ad2ad64f fix: handle an ICE resulting from a dangling pointer (#342) 2021-01-20 12:52:06 +00:00
Eduard-Mihai Burtescu
5f0b380a39 inline asm!: support writing _ in lieu of return types, for basic inference. (#376)
* Basic type constraints for all non-reserved SPIR-V instructions.

* inline asm!: support writing _ in lieu of return types, for basic inference.

* Demonstrate using result type inference in inline asm!.

* inline asm!: allow inferring the result type of OpSampledImage.
2021-01-20 10:40:26 +00:00
Ashley Hauck
1454fe38a3 Update Cargo.lock (#381) 2021-01-18 14:35:12 +00:00
Ashley Hauck
225d89d7de discard(), update rspirv, better capability computation (#380) 2021-01-18 11:59:27 +00:00
Ashley Hauck
8eadd904f7 Add derivatives for vector functions (#377) 2021-01-18 10:28:46 +01:00
Adrian Herath
f7cdf1d6bd Rename unclear local variables in parse_image() (#379)
The variable name `dim` is used to represent dim, image_format, and
access_qualifier in parse_image(). This might cause confusion for
someone trying to read and understand symbols.rs. This commit changes
names of variables to better reflect their purpose.

Co-authored-by: Adrian Herath <adrianisuru@manjaro.hsd1.il.comcast.net>
2021-01-18 06:52:43 +00:00
XAMPPRocky
d55bf60b02 Document Derivative (#366)
* Document Derivative

* Mention absolute
2021-01-15 12:13:43 +00:00
Viktor Zoutman
9b7d49dc29 Removed ark shaders (#375) 2021-01-14 14:52:44 +00:00
XAMPPRocky
08b75f39c1 Update smallvec (#370) 2021-01-12 09:29:53 +00:00
XAMPPRocky
38f2ec12c9 Update bimap->0.6, pipe->0.4, strum->0.20, websys->0.3.46 (#365) 2021-01-11 09:08:02 +00:00
XAMPPRocky
9e7b9de28f Add autolinks to silence rustdoc warnings (#363) 2021-01-05 12:14:34 +00:00
XAMPPRocky
b8cea94721 Add step about copying rust-toolchain into your project (#357)
* Add step about copying rust-toolchain into your project

* Update docs/src/writing-shader-crates.md

Co-authored-by: Eduard-Mihai Burtescu <eddyb@lyken.rs>

* Update writing-shader-crates.md

Co-authored-by: Eduard-Mihai Burtescu <eddyb@lyken.rs>
2021-01-04 17:29:23 +00:00
Frank Murphy
8acde75c13 Add dummy binding for compute shader example (#328)
* Add dummy binding for compute shader example

* Linter fixes
2021-01-04 16:00:34 +00:00
XAMPPRocky
b9592e50c5 Update to latest nightly (#358) 2021-01-04 10:25:56 +00:00
Zicklag
d431dfd637 Update .cargo/config Shader Compilation Setup (#356)
Update the example .cargo/config to match the rustc args
passed in by spirv-builder.
2020-12-28 06:54:01 +00:00
Johan Andersson
d883b6cbb3 Upgrade winit v0.23 -> v0.24 (#353)
Fixes building for aarch64-apple-darwin
2020-12-20 00:22:17 +01:00
Jake Shadle
a6294e1df4 Update spirv-tools (#351)
* Split android into separate job

* Bump spirv-tools to 0.3.1
2020-12-18 10:44:50 +01:00
XAMPPRocky
51038a6ee9 Add description (#323) 2020-12-17 10:03:09 +00:00
Henno
bc4c07e54f Ash runner: fix crash on resize/minimize and add shader hot reloading (#299)
* window resizing and hot reloading

* remove windows paths and fix viewport creation

* readd spirv tools features

* re-remove features

* and add them again

* CI fix

* proper-resizing-and-validation-fixes

* linux validation fix

* fix zero height halting rendering

rendering wasn't getting unpaused after being set to zero height and then made larger again

* fix wgpu crash on laptops with both dedi and integrated GPUs

This fix still requires the user to set their default GPU to their dedicated one.

* METAL or VULKAN backend bit

* rebuild pipelines after updating shaders

* use spirv-builder, resolve merge conflict

* fmt
2020-12-16 17:41:48 +00:00
Viktor Zoutman
a2a2e3917e Renamed spirv-attrib to spirv-std-macros (#347) 2020-12-15 15:16:57 +00:00
Viktor Zoutman
46c16d1d0b Better spirv-attrib (#346)
* Feedback

* cleanup

* Cleanup

* cleanup

* Feedback

* fmt cmon man, I need to format my code manually? pffff

* More feedback! fmt is no longer useless as well

* removed newline

* more if guards

* removed import

* MORE feedback

* fromiterator is gone!

* Removed debug line
2020-12-15 14:13:30 +00:00
Eduard-Mihai Burtescu
aed5204f4a Mouse support for the wgpu runner, and a shader to demonstrate it. (#341) 2020-12-15 11:33:24 +00:00
Viktor Zoutman
1bcb994d59 Compile examples and spirv-std on stable (#340)
* Compile examples and spirv-std on stable

* new line

* weid space
2020-12-14 09:50:45 +00:00
Jake Shadle
95a4cfab41 Update spirv-tools to 0.2.0 (#343)
* Update spirv-tools to 0.2.0

* Rustfmt
2020-12-14 09:43:23 +00:00
Eduard-Mihai Burtescu
9e99c05a76 Update to nightly-2020-12-11. (#338)
* Update to nightly-2020-12-11.

* Update for rustfmt changes (`cargo fmt --all`).

* Update `rustc_codegen_spirv::linker::test` for `rustc_interface` changes.

* Use `spirv_tools::util::{to,from}_binary` to pacify clippy.

* `#[allow(clippy::unnecessary_wraps)]` on `Result`-returning `fn run_thin`.
2020-12-11 10:40:35 +00:00
Viktor Zoutman
06de5ba6ef stable spirv-std (#335)
* should compile on stable now

* moved allow into cfg_attr

* more allow

* merged cfg_attr's
2020-12-11 10:31:17 +00:00
Eduard-Mihai Burtescu
ebf3dbee8d Support "Unroll" Loop Control via function-scoped #[spirv(unroll_loops)]. (#337)
* Generalize the zombie serialization system to arbitrary custom decorations.

* Support "Unroll" Loop Control via function-scoped `#[spirv(unroll_loops)]`.

* Pacify the merciless clippy.
2020-12-10 19:57:15 +00:00
DGriffin91
57b49d932a Update shared to use shorter glam vec functions for consistency (#333)
Co-authored-by: DGriffin91 <git@dgdigital.net>
2020-12-10 00:25:06 -07:00