mirror of
https://github.com/EmbarkStudios/rust-gpu.git
synced 2024-11-25 00:04:11 +00:00
Bump version to 0.8.0
.
This commit is contained in:
parent
54d98c882f
commit
cfaabbab08
@ -29,6 +29,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
|
## [0.8.0]
|
||||||
|
|
||||||
### Added ⭐
|
### Added ⭐
|
||||||
- [PR#1064](https://github.com/EmbarkStudios/rust-gpu/pull/1064) added a Rust-GPU-private
|
- [PR#1064](https://github.com/EmbarkStudios/rust-gpu/pull/1064) added a Rust-GPU-private
|
||||||
"extended instruction set" (to allow us to have custom `OpExtInst`s), with the
|
"extended instruction set" (to allow us to have custom `OpExtInst`s), with the
|
||||||
|
12
Cargo.lock
generated
12
Cargo.lock
generated
@ -1997,7 +1997,7 @@ checksum = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2"
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "rustc_codegen_spirv"
|
name = "rustc_codegen_spirv"
|
||||||
version = "0.7.0"
|
version = "0.8.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"ar",
|
"ar",
|
||||||
"either",
|
"either",
|
||||||
@ -2026,7 +2026,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "rustc_codegen_spirv-types"
|
name = "rustc_codegen_spirv-types"
|
||||||
version = "0.7.0"
|
version = "0.8.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"rspirv",
|
"rspirv",
|
||||||
"serde",
|
"serde",
|
||||||
@ -2275,7 +2275,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "spirv-builder"
|
name = "spirv-builder"
|
||||||
version = "0.7.0"
|
version = "0.8.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"memchr",
|
"memchr",
|
||||||
"notify",
|
"notify",
|
||||||
@ -2288,7 +2288,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "spirv-std"
|
name = "spirv-std"
|
||||||
version = "0.7.0"
|
version = "0.8.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"bitflags 1.3.2",
|
"bitflags 1.3.2",
|
||||||
"glam",
|
"glam",
|
||||||
@ -2299,7 +2299,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "spirv-std-macros"
|
name = "spirv-std-macros"
|
||||||
version = "0.7.0"
|
version = "0.8.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"proc-macro2",
|
"proc-macro2",
|
||||||
"quote",
|
"quote",
|
||||||
@ -2309,7 +2309,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "spirv-std-types"
|
name = "spirv-std-types"
|
||||||
version = "0.7.0"
|
version = "0.8.0"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "spirv-tools"
|
name = "spirv-tools"
|
||||||
|
14
Cargo.toml
14
Cargo.toml
@ -24,19 +24,19 @@ members = [
|
|||||||
]
|
]
|
||||||
|
|
||||||
[workspace.package]
|
[workspace.package]
|
||||||
version = "0.7.0"
|
version = "0.8.0"
|
||||||
authors = ["Embark <opensource@embark-studios.com>"]
|
authors = ["Embark <opensource@embark-studios.com>"]
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
license = "MIT OR Apache-2.0"
|
license = "MIT OR Apache-2.0"
|
||||||
repository = "https://github.com/EmbarkStudios/rust-gpu"
|
repository = "https://github.com/EmbarkStudios/rust-gpu"
|
||||||
|
|
||||||
[workspace.dependencies]
|
[workspace.dependencies]
|
||||||
spirv-std = { path = "./crates/spirv-std", version = "=0.7.0" }
|
spirv-std = { path = "./crates/spirv-std", version = "=0.8.0" }
|
||||||
spirv-std-types = { path = "./crates/spirv-std/shared", version = "=0.7.0" }
|
spirv-std-types = { path = "./crates/spirv-std/shared", version = "=0.8.0" }
|
||||||
spirv-std-macros = { path = "./crates/spirv-std/macros", version = "=0.7.0" }
|
spirv-std-macros = { path = "./crates/spirv-std/macros", version = "=0.8.0" }
|
||||||
spirv-builder = { path = "./crates/spirv-builder", version = "=0.7.0", default-features = false }
|
spirv-builder = { path = "./crates/spirv-builder", version = "=0.8.0", default-features = false }
|
||||||
rustc_codegen_spirv = { path = "./crates/rustc_codegen_spirv", version = "=0.7.0", default-features = false }
|
rustc_codegen_spirv = { path = "./crates/rustc_codegen_spirv", version = "=0.8.0", default-features = false }
|
||||||
rustc_codegen_spirv-types = { path = "./crates/rustc_codegen_spirv-types", version = "=0.7.0" }
|
rustc_codegen_spirv-types = { path = "./crates/rustc_codegen_spirv-types", version = "=0.8.0" }
|
||||||
|
|
||||||
# Enable incremental by default in release mode.
|
# Enable incremental by default in release mode.
|
||||||
[profile.release]
|
[profile.release]
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
<!-- markdownlint-disable-file MD033 -->
|
<!-- markdownlint-disable-file MD033 -->
|
||||||
# `spirv-builder`
|
# `spirv-builder`
|
||||||
|
|
||||||
![Rust version](https://img.shields.io/badge/rust-nightly--2023--03--04-purple.svg)
|
![Rust version](https://img.shields.io/badge/rust-nightly--2023--04--15-purple.svg)
|
||||||
|
|
||||||
This crate gives you `SpirvBuilder`, a tool to build shaders using [rust-gpu][rustgpu].
|
This crate gives you `SpirvBuilder`, a tool to build shaders using [rust-gpu][rustgpu].
|
||||||
|
|
||||||
@ -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.
|
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-03-04`.**
|
**The current toolchain is: `nightly-2023-04-15`.**
|
||||||
|
|
||||||
Toolchains for previous versions of `spirv-builder`:
|
Toolchains for previous versions of `spirv-builder`:
|
||||||
|
|
||||||
|Version|Toolchain|
|
|Version|Toolchain|
|
||||||
|-:|-|
|
|-:|-|
|
||||||
|
|`0.8.0`|`nightly-2023-04-15`|
|
||||||
|`0.7.0`|`nightly-2023-03-04`|
|
|`0.7.0`|`nightly-2023-03-04`|
|
||||||
|`0.6.*`|`nightly-2023-01-21`|
|
|`0.6.*`|`nightly-2023-01-21`|
|
||||||
|`0.5.0`|`nightly-2022-12-18`|
|
|`0.5.0`|`nightly-2022-12-18`|
|
||||||
|
@ -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:
|
2. Reference `spirv-builder` in your Cargo.toml:
|
||||||
```toml
|
```toml
|
||||||
[build-dependencies]
|
[build-dependencies]
|
||||||
spirv-builder = "0.7"
|
spirv-builder = "0.8"
|
||||||
```
|
```
|
||||||
All dependent crates are published on [crates.io](https://crates.io).
|
All dependent crates are published on [crates.io](https://crates.io).
|
||||||
3. Create a `build.rs` in your project root.
|
3. Create a `build.rs` in your project root.
|
||||||
@ -153,7 +153,7 @@ Configure your shader crate as a `"dylib"` type crate, and add `spirv-std` to it
|
|||||||
crate-type = ["dylib"]
|
crate-type = ["dylib"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
spirv-std = { version = "0.7" }
|
spirv-std = { version = "0.8" }
|
||||||
```
|
```
|
||||||
|
|
||||||
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:
|
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:
|
||||||
|
Loading…
Reference in New Issue
Block a user