Ashley Hauck
b32c04b3fd
Refactor attributes and add descriptor_set/binding ( #145 )
...
* Move entry declarations to their own file
Also clean up attribute parsing (and make it allow multiple arguments in
the process)
* Add descriptor_set and binding attributes
* clippy fix
* Fix test
* Reserve descriptor_set 0 for future use
* Add book page on attributes
2020-10-26 15:23:21 +00:00
Johan Andersson
fe18434bff
Add example to evaluate sky shader on CPU ( #141 )
2020-10-26 15:49:01 +01:00
Johan Andersson
960fb0b1df
Simplify mergify, rely on branch protections
2020-10-26 15:28:31 +01:00
Jasper Bekkers
2357a488fe
Clarify breaking changes and deprecation ( #142 )
...
* Clarify breaking changes and deprecation
* Update README.md
Co-authored-by: XAMPPRocky <4464295+XAMPPRocky@users.noreply.github.com>
2020-10-26 15:02:36 +01:00
Johan Andersson
d9838a0a5f
Revert back to installing exact nightly in setup script
2020-10-26 14:20:52 +01:00
Johan Andersson
22209ede49
Pin Rust Nightly to 2020-10-25 ( #139 )
2020-10-26 13:59:34 +01:00
khyperia
9e67f83cd6
rustup update
2020-10-26 08:38:07 +01:00
Johan Andersson
12b07dcc53
Add cargo-deny config & CI step ( #125 )
...
* Add cargo-deny config & CI step
* Add missing license to multiple workspace crates
* Fix author
* Switch to checkout@v2
2020-10-25 16:15:04 +01:00
Daniel McNab
5d7d8671fb
Add badge for deps.rs ( #133 )
2020-10-24 15:34:17 +00:00
Johan Andersson
643c1ba950
Force use latest tar crate to avoid insecure warning on deps.rs ( #132 )
...
Current https://deps.rs/repo/github/EmbarkStudios/rust-gpu is showing that this repo has an insecure dependencies with the tar crate.
I believe this is because a previous tar v0.4.16 and earlier had a security advisory on it ([link](https://rustsec.org/advisories/RUSTSEC-2018-0002.html )) and that the deps.rs service does not yet support Cargo.lock where we had specified that we use a latest version. Tracked in https://github.com/deps-rs/deps.rs/issues/26
So simply force require latest tar crate version (that we were already using) in Cargo.toml here with the hope that https://deps.rs won't flag the repo as having insecure dependencies
2020-10-24 16:57:06 +02:00
Josh Groves
fa6fc2461c
Fix typo in SPIR-V ( #131 )
2020-10-24 14:05:36 +00:00
Johan Andersson
69adb38a13
Make setup.sh executable
2020-10-24 00:09:58 +02:00
Johan Andersson
035924734d
Fix Windows native compile of example-shader ( #127 )
...
Fix #119 based on the suggestion of @bjorn3, thx!
2020-10-23 21:41:44 +00:00
Johan Andersson
9f1100082c
Enable clippy on spirv-std ( #124 )
2020-10-23 21:01:16 +00:00
Ashley Hauck
8681464af7
Add framework for compiler tests ( #118 )
2020-10-23 18:22:36 +02:00
Ashley Hauck
53b22b9fc3
Fix translation from AtomicOrdering to MemorySemantics ( #111 )
...
* Fix translation from AtomicOrdering to MemorySemantics
* Add comment about AtomicOrdering::Consume
2020-10-23 15:43:07 +02:00
XAMPPRocky
b8082eca14
Remove instructions and point to dev guide. ( #116 )
2020-10-23 11:28:43 +00:00
Ashley Hauck
9dc6c61c4c
Fail unimplemented intrinsics instead of incorrect behavior ( #114 )
2020-10-23 13:18:31 +02:00
XAMPPRocky
3f5244dd3e
Update deploy_docs.yml
2020-10-23 12:12:23 +02:00
khyperia
2bc7e9fdb6
Add conditions merged to delete_head_branch
...
Taken from https://docs.mergify.io/examples.html
2020-10-23 12:08:19 +02:00
XAMPPRocky
c6a19164f2
Add rust-gpu dev guide ( #115 )
2020-10-23 12:06:20 +02:00
XAMPPRocky
c7df5b2f33
Only test CI on pushes to main ( #112 )
2020-10-23 10:06:03 +02:00
Ashley Hauck
bb94cd8481
Run CI on pull requests ( #106 )
2020-10-22 21:52:57 +02:00
Johan Andersson
c89717cf2c
Automerge PR test ( #105 )
...
Tiny README whitespace change to test if automerging PRs work, should have to pass 1 review and CI tests first before merging
2020-10-22 19:51:22 +00:00
khyperia
8931f50c3c
Revert "Move panic_handler and eh_personality to spirv-std ( #95 )"
...
This reverts commit 985ae7d494
.
2020-10-22 21:36:09 +02:00
Jasper Bekkers
048144ed4c
Bindings proposal ( #19 )
...
* Initial commit for binding proposal, nees some cleanup
* Continue at home
* Explain global binding model
* Explain function binging model
* Final suggestion
* Add more ups & downs
* Add another downside to static
* Add another downside to static
2020-10-22 19:26:05 +00:00
Ashley Hauck
985ae7d494
Move panic_handler and eh_personality to spirv-std ( #95 )
2020-10-22 19:25:50 +00:00
Johan Andersson
79e9282352
Fix mergify branch
2020-10-22 21:25:12 +02:00
Daniel McNab
0793098599
Use the --component option in setup scripts ( #104 )
...
This should mean that if one of the required components is broken on a
given nightly, rustup will try going backwards until it finds one which
works.
2020-10-22 21:20:42 +02:00
Jasper Bekkers
f4f1031976
If statement ( #98 )
2020-10-22 16:22:17 +02:00
Johan Andersson
7b1a2716b6
README tweaks for first release ( #96 )
2020-10-22 14:34:30 +02:00
XAMPPRocky
eb204a364a
Add bug report template ( #93 )
...
* Add bug report template
* Update .github/ISSUE_TEMPLATE/bug_report.md
Co-authored-by: Ari V <ari.vaniderstine@embark-studios.com>
* Update .github/ISSUE_TEMPLATE/bug_report.md
Co-authored-by: Ari V <ari.vaniderstine@embark-studios.com>
* Update bug_report.md
* Update bug_report.md
Co-authored-by: Ari V <ari.vaniderstine@embark-studios.com>
2020-10-22 14:34:05 +02:00
Viktor Zoutman
a121e50794
Fixed nested if statements ( #88 )
...
* Fixed nested if statements
* feedback
* Removed a line
2020-10-22 13:29:33 +02:00
Viktor Zoutman
78850a57dd
Update README.md
2020-10-22 13:26:34 +02:00
Ari V
58b3279e07
Remove mentions of the triangle
2020-10-22 13:12:05 +02:00
Viktor Zoutman
2434be8bfe
README ( #94 )
2020-10-22 13:09:32 +02:00
XAMPPRocky
68ff38efbc
Document MCP process and add issue template ( #80 )
2020-10-22 12:43:05 +02:00
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
Jake Shadle
83849a578c
Fixup README a bit, add links, etc ( #90 )
2020-10-22 12:29:49 +02:00
Ashley Hauck
8516dc161d
Winit update to v0.23 ( #86 )
...
* Extremely hacky winit update
* Only render when redraw is requested
* cargo fmt
* Renamed smoothstep
Co-authored-by: Jasper Bekkers <bekkers@gmail.com>
2020-10-22 12:23:11 +02:00
Jasper Bekkers
77d7129547
Add back unused attributes ( #85 )
2020-10-22 11:51:49 +02:00
XAMPPRocky
4c76d73243
Add macOS to CI ( #63 )
...
* Add macOS to CI
* Update ci.yaml
* Update ci.yaml
2020-10-22 10:13:15 +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
Maik Klein
7258a7c236
Don't panic when destroying debug utils ( #79 )
...
* Don't panic when destroying debug utils
* Use zip instead of two branches
Co-authored-by: Jasper Bekkers <Jasper-Bekkers@users.noreply.github.com>
Co-authored-by: Jasper Bekkers <bekkers@gmail.com>
2020-10-21 21:07:18 +02:00
Johan Andersson
bba88ccfad
[example] Leak debug loader instead of panicking on shutdown
2020-10-21 20:44:09 +02:00
Johan Andersson
14352a79be
[example] Remove unused image crate dependency
2020-10-21 20:43:46 +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
Viktor Zoutman
3eea3dfa99
Added structurizer for conditional branch ( #76 )
...
* Added structurizer for conditional branch
* Cleaned up the code
* fmt
* unused imports
* feedback
* removed old code
* Now emitting a compiler error on loops
* fmt
2020-10-21 13:38:08 +02:00
Viktor Zoutman
5db68ec044
Update lib.rs
2020-10-21 13:16:03 +02:00
Ari V
1fa44d6891
Simplify getting started + general cleanup ( #77 )
2020-10-21 12:01:44 +02:00