Commit Graph

44 Commits

Author SHA1 Message Date
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
Eduard-Mihai Burtescu
b3c04e5951
compiletest: don't require -- to pass our specific flags. (#523)
* docs: removed outdated `cargo compiletest -- --clean` instructions.

* compiletest: don't require `--` to pass our specific flags.
2021-03-22 14:37:55 +00:00
XAMPPRocky
27eb1d1413
Refactor validation tests to use compiletest (#464)
* Refactor validation tests to use compiletest

* Update tests/ui/lang/core/ptr/allocate_const_scalar.rs
2021-03-18 17:16:21 +00:00
Henno
d92480b781
update compute shader attribute docs (#499) 2021-03-17 08:21:25 +01:00
XAMPPRocky
6678f9a49d
Add entry point attribute configuration. (#458)
* Add entrypoint attribute configuration.

* Update with feedback

* Add docs

* fmt

* rm usused_attributes

* other changes

* fmt
2021-03-02 15:30:08 +02:00
Jesse
98fb0e0a94
docs: Clarify supported MoltenVK version for macOS (#352) 2021-02-26 14:34:21 +01:00
XAMPPRocky
b5a53feddd
Add SPIR-V minimization guide (#451) 2021-02-26 14:33:00 +01: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
XAMPPRocky
19cf332f6c
Mention web based ways to try rust-gpu (#388) 2021-01-21 08:52:21 +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
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
XAMPPRocky
ca8b389b6a
Update to use rust-toolchain toml (#284)
* Update to the new rust-toolchain format

* Remove unneeded docs

* Update CI for toolchain file

* Update ci.yaml

* Update ci.yaml

* Update deploy_docs.yml

* Update ci.yaml

* Update deploy_docs.yml

* Remove redundant `rustup component add` commands from ci.yaml.

* Shorten "Continuous integration" to "CI" in ci.yaml.

* Add a helpful message above the TOML in rust-toolchain.

* Don't update rustup in ci.yaml, GHA already has the right version.

Co-authored-by: Daniel McNab <36049421+DJMcNab@users.noreply.github.com>
Co-authored-by: Eduard-Mihai Burtescu <eddyb@lyken.rs>
2020-12-09 17:43:00 +02:00
Ashley Hauck
c70cee8f97
Add flat attribute (#317)
* Add flat attribute

* Document attributes
2020-12-04 11:20:58 +00:00
XAMPPRocky
3fdeeb3d48
Split introduction into two separate sections (#290) 2020-12-01 12:36:06 +00:00
Jake Shadle
0f3948dc27
Move out spirv-tools to separate repo (#237)
* Nuke spirv-tools

* Swap to use published spirv-tools crate
2020-11-13 09:57:12 +01:00
Dhruv Dhamani
e261b88a73
Update 001-resource-binding-syntax.md (#236)
small typo
2020-11-13 08:38:26 +01:00
Marijn Suijten
e8aef14347
Add Android support to wgpu example (#215)
* examples/wgpu: Handle escape to exit (same as ash example)

* examples/wgpu: Set up for use on Android

* examples/wgpu: Convert #[cfg] blocks to cfg_if

* examples/wgpu: Wait for events instead of busy-looping

The image currently does not change and the OS will notify us when to
redraw (ie. after window resizes). This is going to save power
especially on mobile devices.

As soon as interactive or animating visuals are introduced to this
example redraws can be requested with `window.request_redraw()`.

* examples/wgpu: Create swapchain in ::Resume on Android

* docs: Add Android to supported operating systems

* ci: Build test cross-compilation for Android

* HACK: ci: Create Android symlink without spaces

* ci: Set legacy ANDROID_HOME because ndk-build prefers deprecated var
2020-11-11 16:32:02 +01:00
XAMPPRocky
2942967607
Add initial platform support docs (#187)
* Add initial platform support docs

* Update platform-support.md

* Update platform-support.md
2020-11-02 16:07:34 +00:00
XAMPPRocky
ad610b57f5
Move top-level crates to crates/ directory (#200)
* Move top-level crates to crates/ directory

* Update docs

* Update test.sh

* Update docs.sh

* Update clippy.sh
2020-11-02 11:26:10 +01:00
Gray Olson
b12a2f3f6a
Cleanup pass on example shader and vk example-runner (#109)
* get rid of vertex buffers in example

* get rid of unused attributes in example shader

* use negative viewport height to match wgpu

* remove depth buffer

* use SRGB surface

* improve tonemapping

remove 'gamma correction' in favor of hardware srgb support

* make clippy happy

* move tonemapping out of sky(), rename gl_pos to builtin_pos

* rename shaders and use sky shader in wgpu example runner

* apply srgb OETF and invert clip space for cpu example runner

* restructure example directory structure according to #170

* update winit in wgpu example runner

* fix deny.toml example crate refs

* fix ci example name on maOS

* example-shader -> sky-shader in docs

* update sky shader image

* re-enable clippy and make it happy
2020-10-30 11:38:47 -07:00
meowjesty
e729aad3b7
repository 'https://github.com/EmbarkStudios.com/rust-gpu/' not found (#182)
```
git clone --recurse-submodules https://github.com/EmbarkStudios.com/rust-gpu
Cloning into 'rust-gpu'...
remote: Repository not found.
fatal: repository 'https://github.com/EmbarkStudios.com/rust-gpu/' not found
```

Removing the `.com` from EmbarkStudios solves it.
2020-10-30 07:55:22 +01:00
Jake Shadle
307d0da66b
Add spirv-tools and spirv-tools-sys crates to wrap usage of spirv-tools (#179)
* Add spirv-headers and spirv-tools as submodules

* Add simple generator and the generated code needed for compilation

* Add first pass on spirv-tools-sys

* Add first pass on spirv-tools

* Replace invocation of spirv-opt with spirv-tools crate

* Use C++11

* Placate clippy

* Add validation, replacing spirv-val with the spirv-tools crate

* Fix MSVC warning

* Use patched spirv-tools

* Fixup metadata

* Add same compiler flags as "official" build scripts

* Update spirv-tools and generated files

* Fixup

* Add assembler and example

* Use assembler in tests

* Oops, fix macos TARGET_OS

* write -> write_all

* Start splitting spirv-tools into a compiled vs tool feature set

* Checkpointing

* Checkpoint

* Boop

* Get tests to work both with installed and compiled tools

* Cleanup CI config

* Splits steps to clearly show how long each part of a longer (eg test)
step actually takes
* Label all steps

* Explicitly disable submodule checkout

* Rustfmt

* Rename features for consistency and fix clippy warnings

* Split "core" crates from examples

* Add run_clippy bash script

* Add test script

* Remove x flag

* Newline

* Actually print out errors from running val/opt

* Revert drive-by import merging

* Change intro to take the changes this PR has into account

* Actually run tests on Windows

* Fetch only the host target to reduce fetch times

* Add more info when a spirv tool returns a non-zero exit code

* Rustfmt

* Switch tool assembler to use files to see if it fixes windows

* Use files for input and output for now until I can figure out Windows being dumb

* Fix API docs generation

* Compile and use C++ code to check Windows issue

* Return to use installed tools
2020-10-29 23:03:07 +01:00
Jake Shadle
5aa7453b19 Revert "Replace usage of spirv-* binaries with spirv-tools rust crate (#117)"
This reverts commit 0bfe303a64.
2020-10-29 22:34:26 +01:00
Jake Shadle
0bfe303a64
Replace usage of spirv-* binaries with spirv-tools rust crate (#117)
* Add spirv-headers and spirv-tools as submodules

* Add simple generator and the generated code needed for compilation

* Add first pass on spirv-tools-sys

* Add first pass on spirv-tools

* Replace invocation of spirv-opt with spirv-tools crate

* Use C++11

* Add validation, replacing spirv-val with the spirv-tools crate

* Use patched spirv-tools

* Fixup metadata

* Add same compiler flags as "official" build scripts

* Update spirv-tools and generated files

* Add assembler and example

* Use assembler in tests

* Start splitting spirv-tools into a compiled vs tool feature set

* Get tests to work both with installed and compiled tools

* Cleanup CI config

* Splits steps to clearly show how long each part of a longer (eg test)
step actually takes
* Label all steps

* Explicitly disable submodule checkout

* Rename features for consistency and fix clippy warnings

* Split "core" crates from examples

* Add run_clippy bash script

* Add test script

* Change intro to take the changes this PR has into account

* Fetch only the host target to reduce fetch times

* Add more info when a spirv tool returns a non-zero exit code

* Use files for input and output for now until I can figure out Windows being dumb
2020-10-29 21:54:25 +01:00
XAMPPRocky
0698e3f7df
move assets and rfcs into docs (#172) 2020-10-29 09:01:28 +00:00
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
XAMPPRocky
c6a19164f2
Add rust-gpu dev guide (#115) 2020-10-23 12:06:20 +02:00
Johan Andersson
4a6b1ee36c
Merge project description & README (#7)
* Merge project description & README

This makes it a better entrypoint going to the repo to understand what this is directly.

Think we can aim to keep the main README very clean and reasonable in scope, so when we add additional deeper design och project docs we can again put that in docs/ and just link from the README.

* Add back process
2020-08-13 17:58:31 +02:00
Johan Andersson
bcca37df88
Add basic process guidelines as discussed (#3) 2020-08-13 15:56:22 +02:00
Johan Andersson
5a6bc80861 Markdown tweaks 2020-08-13 15:38:26 +02:00
Johan Andersson
05a47feff2 Add RLSL and crates.io links 2020-08-13 15:36:57 +02:00
Johan Andersson
bff50bd00d Markdown formatting fixes 2020-08-13 15:26:32 +02:00
Jasper Bekkers
d2585fb405
Add project overview 2020-08-12 17:48:16 +01:00