Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,13 @@ resolver = "2"
members = [
"shame_derive",
"shame",
"shame_wgpu",
"examples/*",
]

[workspace.dependencies]
wgpu = "25.0.0"

[profile.dev]
split-debuginfo = "unpacked"

Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,14 @@ Modern graphics APIs often require us filling out descriptors, matching up their
cargo add --git https://github.com/raymarch/shame shame
```
3. convert `shame`'s output (shader code and pipeline info) to your graphics API
> A [wgpu] example of this can be found at [examples/shame_wgpu/src/conversion.rs], which is used by the example applications. If you intend on targeting [wgpu] you can also use the [examples/shame_wgpu] crate directly. If you target a different API, that example can still be a useful reference.
> A [wgpu] example of this can be found at [shame_wgpu/src/conversion.rs], which is used by the example applications. If you intend on targeting [wgpu] you can also use the [shame_wgpu] crate directly. If you target a different API, that example can still be a useful reference.

4. check out the [api overview](examples/api_showcase/src/main.rs) of `shame` and have fun writing pipelines in Rust!

[examples/api_showcase/src/main.rs]: examples/api_showcase/src/main.rs

[examples/shame_wgpu/src/conversion.rs]: examples/shame_wgpu/src/conversion.rs
[examples/shame_wgpu]: examples/shame_wgpu
[shame_wgpu/src/conversion.rs]: shame_wgpu/src/conversion.rs
[shame_wgpu]: shame_wgpu

## Code example (more in examples folder)

Expand Down
4 changes: 2 additions & 2 deletions examples/hello_triangles/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ version = "0.1.0"
edition = "2024"

[dependencies]
shame_wgpu = { path = "../shame_wgpu" }
shame_wgpu = { path = "../../shame_wgpu" }
shame = { path = "../../shame" }
wgpu = "25.0.0"
wgpu = {workspace = true}
bytemuck = { version = "1.19", features = ["derive"] }
glam = { version = "0.30.2", features = ["bytemuck", "cuda"] } # "cuda" for 8-byte aligned Vec2
winit = "0.30.9"
Expand Down
14 changes: 0 additions & 14 deletions examples/shame_wgpu/Cargo.toml

This file was deleted.

2 changes: 1 addition & 1 deletion shame/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ shame_derive = { path = "../shame_derive/" }
static_assertions = "1.1.0"
pretty_assertions = "1.4.1"
glam = "0.29.0"
shame_wgpu = { path = "../examples/shame_wgpu" }
shame_wgpu = { path = "../shame_wgpu" }
bytemuck = { version = "1.19", features = ["derive"] }
wgpu = "25.0.2"
pollster = "0.4"
Expand Down
19 changes: 19 additions & 0 deletions shame_wgpu/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
[package]
name = "shame_wgpu"
version = "2.0.0-beta.0"
description = "wgpu integration for shame — shader metaprogramming in Rust"
keywords = ["gpu", "shader", "wgpu", "graphics", "wgsl"]
categories = ["rendering::graphics-api", "rendering::shader"]
repository = "https://github.com/RayMarch/shame"
license = "MIT OR Apache-2.0"
edition = "2024"

[lib]
name = "shame_wgpu"
doctest = false # TODO(release) remove, and fix documentation to pass tests

[dependencies]
shame = { path = "../shame" }
wgpu = {workspace = true}
thiserror = "2.0.12"
concat-idents = "1.1.5"
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.