Skip to content

Commit

Permalink
Use the released version of bytemuck
Browse files Browse the repository at this point in the history
Lokathor/bytemuck#69 landed

That version also works 🎉
  • Loading branch information
DJMcNab committed Jun 13, 2021
1 parent 119fab9 commit a2ebab2
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

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

4 changes: 2 additions & 2 deletions examples/runners/wgpu/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ use-compiled-tools = ["spirv-builder/use-compiled-tools"]

[dependencies]
cfg-if = "1.0.0"
shared = { path = "../../shaders/shared", features = ["bytemuck"] }
shared = { path = "../../shaders/shared" }
futures = { version = "0.3", default-features = false, features = ["std", "executor"] }
wgpu = "0.7.0"
winit = { version = "0.24", features = ["web-sys"] }
clap = "3.0.0-beta.2"
strum = { version = "0.20", default_features = false, features = ["derive"] }
bytemuck = "1.6.0"
bytemuck = "1.6.3"

[target.'cfg(not(any(target_os = "android", target_arch = "wasm32")))'.dependencies]
spirv-builder = { path = "../../../crates/spirv-builder", default-features = false, features = ["watch"] }
Expand Down
2 changes: 1 addition & 1 deletion examples/shaders/shared/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ publish = false

[dependencies]
spirv-std = { path = "../../../crates/spirv-std", features = ["glam"] }
bytemuck = { version = "1.6.0", features = ["derive"], optional = true }
bytemuck = { version = "1.6.3", features = ["derive"] }
4 changes: 1 addition & 3 deletions examples/shaders/shared/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,9 @@ pub use spirv_std::glam;
#[cfg(target_arch = "spirv")]
use spirv_std::num_traits::Float;

#[cfg(feature = "bytemuck")]
use bytemuck::{Pod, Zeroable};

#[cfg_attr(feature = "bytemuck", derive(Pod, Zeroable))]
#[derive(Copy, Clone)]
#[derive(Copy, Clone, Pod, Zeroable)]
#[repr(C)]
pub struct ShaderConstants {
pub width: u32,
Expand Down

0 comments on commit a2ebab2

Please sign in to comment.