Skip to content

Commit 67205bb

Browse files
committed
Update rspirv/spirv to sdk-update branch with newer SPIR-V opcodes
The published rspirv 0.12.0+sdk-1.3.268.0 doesn't include newer SPIR-V opcodes like UntypedPointersKHR, TypeUntypedPointerKHR, UntypedVariableKHR, and ConditionalEntryPointINTEL that are required by the spirv-tools crate. This patches rspirv and spirv to use the gfx-rs/rspirv sdk-update branch which includes these opcodes (version 0.12.0+sdk-1.4.335.0).
1 parent 7a0b4b3 commit 67205bb

2 files changed

Lines changed: 10 additions & 6 deletions

File tree

Cargo.lock

Lines changed: 4 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,12 @@ glam = { version = ">=0.30.8", default-features = false }
6161
libm = { version = "0.2.5", default-features = false }
6262
bytemuck = { version = "1.23", features = ["derive"] }
6363

64+
# Patch rspirv/spirv to use newer versions with additional SPIR-V opcodes needed by spirv-tools.
65+
# TODO: Once a newer rspirv is published that includes these opcodes, switch to a crates.io version.
66+
[patch.crates-io]
67+
rspirv = { git = "https://github.com/gfx-rs/rspirv", branch = "sdk-update" }
68+
spirv = { git = "https://github.com/gfx-rs/rspirv", branch = "sdk-update", package = "spirv" }
69+
6470
# Enable incremental by default in release mode.
6571
[profile.release]
6672
incremental = true

0 commit comments

Comments
 (0)