Skip to content

Commit

Permalink
Bump version to 0.7.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
eddyb committed Apr 21, 2023
1 parent 7e40255 commit 63899d3
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 18 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
-->

## [Unreleased]
## [0.7.0]

### Added ⭐
- [PR#1020](https://github.com/EmbarkStudios/rust-gpu/pull/1020) added SPIR-T `qptr`
Expand Down
12 changes: 6 additions & 6 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 7 additions & 7 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,19 +24,19 @@ members = [
]

[workspace.package]
version = "0.6.1"
version = "0.7.0"
authors = ["Embark <[email protected]>"]
edition = "2021"
license = "MIT OR Apache-2.0"
repository = "https://github.com/EmbarkStudios/rust-gpu"

[workspace.dependencies]
spirv-std = { path = "./crates/spirv-std", version = "=0.6.1" }
spirv-std-types = { path = "./crates/spirv-std/shared", version = "=0.6.1" }
spirv-std-macros = { path = "./crates/spirv-std/macros", version = "=0.6.1" }
spirv-builder = { path = "./crates/spirv-builder", version = "=0.6.1", default-features = false }
rustc_codegen_spirv = { path = "./crates/rustc_codegen_spirv", version = "=0.6.1", default-features = false }
rustc_codegen_spirv-types = { path = "./crates/rustc_codegen_spirv-types", version = "=0.6.1" }
spirv-std = { path = "./crates/spirv-std", version = "=0.7.0" }
spirv-std-types = { path = "./crates/spirv-std/shared", version = "=0.7.0" }
spirv-std-macros = { path = "./crates/spirv-std/macros", version = "=0.7.0" }
spirv-builder = { path = "./crates/spirv-builder", version = "=0.7.0", default-features = false }
rustc_codegen_spirv = { path = "./crates/rustc_codegen_spirv", version = "=0.7.0", default-features = false }
rustc_codegen_spirv-types = { path = "./crates/rustc_codegen_spirv-types", version = "=0.7.0" }

# Enable incremental by default in release mode.
[profile.release]
Expand Down
3 changes: 2 additions & 1 deletion crates/spirv-builder/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,13 @@ const SHADER: &[u8] = include_bytes!(env!("my_shaders.spv"));

Because of its nature, `rustc_codegen_spirv`, and therefore `spirv-builder` by extension, require the use of a very specific nightly toolchain of Rust.

**The current toolchain is: `nightly-2023-01-21`.**
**The current toolchain is: `nightly-2023-03-04`.**

Toolchains for previous versions of `spirv-builder`:

|Version|Toolchain|
|-:|-|
|`0.7.0`|`nightly-2023-03-04`|
|`0.6.*`|`nightly-2023-01-21`|
|`0.5.0`|`nightly-2022-12-18`|
|`0.4.0`|`nightly-2022-10-29`|
Expand Down
6 changes: 3 additions & 3 deletions docs/src/writing-shader-crates.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ crates to display, it's recommended to use `spirv-builder` in a build script.
2. Reference `spirv-builder` in your Cargo.toml:
```toml
[build-dependencies]
spirv-builder = "0.4"
spirv-builder = "0.7"
```
All dependent crates are published on [crates.io](https://crates.io).
3. Create a `build.rs` in your project root.
Expand Down Expand Up @@ -150,7 +150,7 @@ Configure your shader crate as a `"dylib"` type crate, and add `spirv-std` to it

```toml
[dependencies]
spirv-std = { version = "0.6" }
spirv-std = { version = "0.7" }
```

Make sure your shader code uses the `no_std` attribute and makes the `spirv` attribute visibile in the global scope. Then, you're ready to write your first shader. Here's a very simple fragment shader called `main_fs` as an example that outputs the color red:
Expand All @@ -165,4 +165,4 @@ use spirv_std::glam::{vec4, Vec4};
pub fn main_fs(output: &mut Vec4) {
*output = vec4(1.0, 0.0, 0.0, 1.0);
}
```
```

0 comments on commit 63899d3

Please sign in to comment.