Skip to content

Commit 5e0b790

Browse files
committed
missing spv1.6 support in a few places
1 parent 7672e58 commit 5e0b790

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

crates/rustc_codegen_spirv-target-specs/src/include_str.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@ pub const TARGET_SPECS: &[(&str, &str)] = &[
4444
"spirv-unknown-spv1.5.json",
4545
include_str!("../target-specs/spirv-unknown-spv1.5.json"),
4646
),
47+
(
48+
"spirv-unknown-spv1.6.json",
49+
include_str!("../target-specs/spirv-unknown-spv1.6.json"),
50+
),
4751
(
4852
"spirv-unknown-vulkan1.0.json",
4953
include_str!("../target-specs/spirv-unknown-vulkan1.0.json"),

crates/spirv-builder/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -782,7 +782,7 @@ fn invoke_rustc(builder: &SpirvBuilder) -> Result<PathBuf, SpirvBuilderError> {
782782
//
783783
// FIXME(eddyb) consider moving this list, or even `target-specs`,
784784
// into `rustc_codegen_spirv_types`'s code/source.
785-
"spv1.0" | "spv1.1" | "spv1.2" | "spv1.3" | "spv1.4" | "spv1.5" => {}
785+
"spv1.0" | "spv1.1" | "spv1.2" | "spv1.3" | "spv1.4" | "spv1.5" | "spv1.6" => {}
786786
"opengl4.0" | "opengl4.1" | "opengl4.2" | "opengl4.3" | "opengl4.5" => {}
787787
"vulkan1.0" | "vulkan1.1" | "vulkan1.1spv1.4" | "vulkan1.2" | "vulkan1.3"
788788
| "vulkan1.4" => {}

docs/src/platform-support.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ The `rust-gpu` project currently supports a limited number of platforms and grap
3333
- `spirv-unknown-spv1.3`
3434
- `spirv-unknown-spv1.4`
3535
- `spirv-unknown-spv1.5`
36+
- `spirv-unknown-spv1.6`
3637

3738
### Vulkan Targets
3839

0 commit comments

Comments
 (0)