Skip to content

Commit

Permalink
Bytemuck now compiles on GPU 🎉
Browse files Browse the repository at this point in the history
as of Lokathor/bytemuck#69

No longer depend on it conditionally
  • Loading branch information
DJMcNab committed Jun 13, 2021
1 parent 986342d commit 94e6f7b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
4 changes: 2 additions & 2 deletions rust-gpu-toy/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 rust-gpu-toy/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ wgpu = "0.8"
winit = "0.25"
pollster = "0.2"
async-executor = "1.0"
bytemuck = "1.5.1"
bytemuck = "1.6.3"
spirv-builder = { git = "https://github.com/EmbarkStudios/rust-gpu", rev = "c3eff4d4a5a52607aa3bc8b4ba8409f6659425ee", features = ["watch"] }
rust-gpu-toy-shared = { path = "./shared", features = ["bytemuck"] }
rust-gpu-toy-shared = { path = "./shared" }

[workspace]
members = ["./shaders", "./shared"]
2 changes: 1 addition & 1 deletion rust-gpu-toy/shared/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ description = "Definitions shared between the compute shader and the output, suc
edition = "2018"

[dependencies]
bytemuck = { version = "1.5.1", optional = true, features = ["derive"] }
bytemuck = { version = "1.6.3", features = ["derive"] }
4 changes: 1 addition & 3 deletions rust-gpu-toy/shared/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
#![no_std]

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

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

0 comments on commit 94e6f7b

Please sign in to comment.