Commit Graph

15 Commits

Author SHA1 Message Date
Ashley Hauck
0710f9d4b5
Include example-shader in the workspace (#87)
* Include example-shader in the workspace

* Fix clippy warnings

* Fix up tests and clippy warnings

* Change clamp_ to saturate

Co-authored-by: Jasper Bekkers <bekkers@gmail.com>
2020-10-22 12:30:17 +02:00
Johan Andersson
e8f33c97a5
Add sky shader example code and screenshot to README (#83)
* Add example sky shader to README

* Bigger screenshot

* Change order

* [example] Simplify & rustify sky shader further

* Make code slightly nicer

* Add back comment

* Newline

* Add Vec4::truncate

Co-authored-by: Jasper Bekkers <bekkers@gmail.com>
2020-10-21 21:42:49 +02:00
Jasper Bekkers
a06b2e49cf
Branchless sky shader (#71)
* Branchless sky shader

* Fullscreen quad

* Fixed naming of the fragment shader

* Add very stripped down version of glam-rs math routines to spirv-std

* Update example to use math routines in spirv-std

* Also use lerp from spirv-std

* Attribution, small cleanups

* Use extension trait for math, much nicer \o/

* Switch to repr(simd) for the Vec types

* Move clamp into MathExt, make MathExt take Self instead of f32

Co-authored-by: VZout <viktor.zoutman@embark-studios.com>
Co-authored-by: khyperia <github@khyperia.com>
2020-10-21 20:16:06 +02:00
Jasper Bekkers
b7aa6f310d
Renamed structs from NV to KHR (#50)
* Renamed structs from NV to KHR
2020-10-12 17:16:59 +02:00
khyperia
c04ac95860 Make spirv_std be a system crate (i.e. zombieable)
This fixes windows CI, because when testing the spirv-std crate, the
memcmp defined here would override the normal memcmp, causing the inf
loop to be hit.
2020-10-12 16:56:14 +02:00
khyperia
bc1358e787 Fix issue with is_system_crate
This didn't get tested locally due to weird caching stuff, so, fixing CI
here.
2020-10-10 14:21:33 +02:00
khyperia
6323fc609f Fix mem2reg bugs 2020-10-08 15:30:35 +02:00
khyperia
127cc1bb99 really_unsafe_ignore_bitcasts 2020-09-30 15:50:38 +02:00
khyperia
c464caf088 Add -C target-feature=+shader support
Eventually shaders will be the default and -C target-feature=+kernel
will be a thing, but, not right now due to shaders being borked
2020-09-29 15:35:08 +02:00
khyperia
c8712a9047 Add in some capability stuff
Also make env var checks runtime, not compiletime.
2020-09-26 15:32:18 +02:00
khyperia
cc916c784e Documentation, code shuffling, and RPO block sorting 2020-09-22 15:51:30 +02:00
khyperia
ec49140058 Move zombie pass to linker 2020-09-22 12:59:23 +02:00
khyperia
78f7d8f91c Interfaces and kernel entry points 2020-09-21 11:23:23 +02:00
khyperia
4e3f1db15a Add entry attribute 2020-09-15 17:17:48 +02:00
khyperia
2a66153840 Add spirv-std crate 2020-09-15 15:17:27 +02:00