Commit Graph

865 Commits

Author SHA1 Message Date
Eduard-Mihai Burtescu
e08d0d6a48 rustup: update to nightly-2022-04-11. 2022-04-12 09:01:18 +03:00
Eduard-Mihai Burtescu
3e04f62ede rustup: update to nightly-2022-04-01. 2022-04-12 09:01:18 +03:00
Eduard-Mihai Burtescu
f0baf78ade rustup: update to nightly-2022-03-01. 2022-04-12 09:01:18 +03:00
Eduard-Mihai Burtescu
57eed8394e rustup: update to nightly-2022-02-01. 2022-04-12 09:01:18 +03:00
Johan Andersson
2a61baf907
Fix CODEOWNERS issues (#863)
Fixes two issues with the configuration:
- @fu5ha wasn't getting review request due to user name rename.
- Our [Embark Open Source Tool project checker](https://github.com/EmbarkStudios/opensource/tree/main/src) that validates our projects have maintainers assigned categorized this as not fully maintained as didn't have a root owner `*`, @eddyb I made this you right now instead of just for `/crates/`. But we can tweak that going forward also. But this will keep our Slack bot happy
2022-04-12 00:04:28 +02:00
Eduard-Mihai Burtescu
5ac500d5b9
Split out a new -types crate so spirv-builder stops loading LLVM via dylibs. (#856)
* Split out a new `-types` crate so `spirv-builder` stops loading LLVM via dylibs.

* example-wgpu-runner: halve `max_push_constant_size` so it works on RADV/Fiji.
2022-03-30 09:07:14 +02:00
Yuya Kanai
595f8e7a9c
Remove SPIRV_SHADER_PASSTHROUGH for wgpu example on Mac (#854) 2022-03-29 22:27:23 +02:00
Eduard-Mihai Burtescu
5a27455fcd
default.nix: handle nixpkgs alias removal (x11 -> xlibsWrapper, xlibs -> xorg). (#855) 2022-03-28 09:27:00 +02:00
Henrik Rydgård
a75d6e31c1 Cargo deny tempfix 2022-03-10 16:29:27 +01:00
andrusha
94ad8a5f6b
Enable Vulkan for WGPU runner (#852)
* Enable Vulkan for WGPU runner

Metal doesn't support SPIR-V shader passthrough, so on macOS using WGPU runner you get following error with any example:

```
Features SPIRV_SHADER_PASSTHROUGH are required but not enabled on the device
```

Vulkan supports shader passthrough, but requires compatibility layer of MoltenVK to work, which needs to be installed on the host machine. Currently this feature is only available on master.

* Update examples Cargo lockfile
2022-03-10 15:59:46 +01:00
David Craven
4932a44658 Revert workgroup_size builtin. 2022-02-09 18:10:22 +02:00
David Craven
3151a8c2b1 Add tests. 2022-02-09 18:10:22 +02:00
David Craven
31a0be3c0a Add reduce example. 2022-02-09 18:10:22 +02:00
David Craven
f638590389 Enable builtins. 2022-02-09 18:10:22 +02:00
Jake Shadle
7e7fdb4a4b Update spirv-tools to 0.8.0 2022-02-05 04:40:21 +02:00
Eduard-Mihai Burtescu
31e3fdb09b abi: explicitly unpack ScalarPair newtypes. 2022-01-23 20:18:56 +02:00
khyperia
0c65cf3887 Update .github/CODEOWNERS 2022-01-20 16:30:26 +01:00
Ashley
11e21c6412
Add a OpAtomicIIncrement function to arch (#839) 2022-01-13 17:32:33 +02:00
Ashley Hauck
f780364317
rustup update (#840)
* rustup update

* asm->core::arch::asm
2022-01-13 17:27:33 +02:00
Ashley Hauck
fe5c7716ed
Fix ByteAddressableBuffer PassMode::Pair (#837) 2022-01-10 09:35:03 +00:00
Ashley Hauck
b99fc516e6
Update deps (#833) 2022-01-04 08:02:14 +00:00
Ashley
d705a238a1
Add a preserve_bindings opt to the builder and codegen opts (#830) 2022-01-03 09:18:58 +01:00
Ashley Hauck
480cd048e0
Fuse OpPtrAccessChain with previous OpAccessChain (#835)
* Fuse OpPtrAccessChain with previous OpAccessChain

* constant-fold add, and change mul to wrap
2021-12-28 11:39:37 +01:00
Emil Ernerfeldt
3067848d1c
Update to glam 0.20 (#831) 2021-12-27 09:52:18 +01:00
follower
06b5a109fa
Typo fix: "in-bowser" -> "in-browser" (#832) 2021-12-22 09:03:31 +01:00
Ashley Hauck
1afa05960b
Update deps (#829)
* Update deps

* Temp downgrade glam until fix in glam is in
2021-12-17 14:55:27 +00:00
Ashley Hauck
f08819fede
Fix some ICEs with bools (#826) 2021-12-15 14:10:38 +00:00
Ashley Hauck
d26716b881
Add error for insts not allowed outside fragment (#821)
* Add error for insts not allowed outside fragment

* make get_name return entry point names too
2021-12-14 08:04:50 +00:00
Ashley Hauck
9673f39967
A whole host of minor tweaks and clippy fixes (#824) 2021-12-14 07:45:45 +00:00
Eduard-Mihai Burtescu
7a60181679
Hint "rust-analyzer.rustcSource": "discover" next to rustc_private = true. (#825) 2021-12-14 08:09:21 +01:00
Ashley
da7c3ed71f
Add a RayQuery::confirm_intersection function (#822) 2021-12-09 13:00:35 +00:00
Ashley Hauck
edd0a67392
Add docs for linux package requirements (#820) 2021-12-08 15:33:10 +02:00
Ashley Hauck
56ba2d2afa
fix cargo-deny, and cargo update (#818) 2021-12-06 13:22:51 +01:00
Harald Reingruber
67a21bfe38
Unit Testing Shader Code Experiment/Example (#813) 2021-12-06 13:21:51 +01:00
Ashley Hauck
2ca5826e55
rustup update (#816)
* rustup update

* Test fixes
2021-12-06 11:31:43 +01:00
Ashley Hauck
340f4bb70a
Error when int doesn't have spirv(flat) (#815) 2021-12-06 11:31:26 +01:00
Daniel McNab
0652153f1d
No longer require the workaround for the collatz example (#778)
* No longer require the workaround for the collatz example

* and remove the `Int8` cap
2021-12-02 09:46:34 +00:00
Ashley Hauck
d5d0c90652
Fix for duplicate OpMemberName, and add OpMemberName for ScalarPairs (#814) 2021-12-01 10:25:23 +00: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
Riccardo D'Ambrosio
c6b75601b9
Add Rust CUDA to list of related projects (#810) 2021-11-29 06:58:35 +00:00
Ashley
9fd3c9e172
Add an IndexUnchecked trait that uses asm! (#805)
* Add an IndexUnchecked trait to spirv-std/arch

* Slap some #[spirv_std_macros::gpu_only] on there

* Spelling

* Add safety sections to the docs

* Improve documentation, implement for non-spirv targets
2021-11-29 07:56:13 +01:00
Eduard-Mihai Burtescu
6232d95256
abi: demonstrate overriding the behavior of the layout_of query. (#808) 2021-11-26 11:51:56 +01:00
Johan Andersson
d789b58b2e
Modernize and tweak README (#801) 2021-11-23 22:19:23 +00:00
Benjamin Bouvier
c1dd14d863
Remove unused dependencies in rust-gpu (#800) 2021-11-22 13:12:43 +00:00
Eduard-Mihai Burtescu
553f79ebce
asm: support OpCompositeExtract inference for OpTypeStruct fields. (#803) 2021-11-22 13:27:55 +01:00
Ashley Hauck
2f3f298703
Remove projects that aren't compiling Rust code to GPUs (#802) 2021-11-19 15:22:10 +01:00
Cole Severson
7f832800f2
Updated readme to include list of related projects (#794) 2021-11-18 20:29:34 +00:00
Eduard-Mihai Burtescu
04146858ce ci: also test --target-env vulkan1.2. 2021-11-04 11:54:26 +02:00
Eduard-Mihai Burtescu
b28716d5eb tests: get --target-env vulkan1.2 passing. 2021-11-04 11:54:26 +02:00
Eduard-Mihai Burtescu
cda583e0d5 Gather all interface OpVariables into OpEntryPoints. 2021-11-04 11:54:26 +02:00