Skip to content

Commit cf3f472

Browse files
authored
deps(lambda-rs-platform): Remove shaderc as a shader backend
2 parents 229960f + 55bcdb7 commit cf3f472

File tree

10 files changed

+7
-201
lines changed

10 files changed

+7
-201
lines changed

Cargo.lock

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

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,6 @@ cargo add lambda-rs
8080
#### Required external dependencies <a name="ext_deps"></a>
8181

8282
* All platforms
83-
* `cmake >= 3.20.0` is needed to build shaderc from source.
84-
* `ninja` is needed to build shaderc from source.
8583
* `git` is needed to clone the project and manage it's dependencies.
8684
* `git-lfs` is needed for asset files.
8785
* `rust >= 1.60` is needed for compiling lambda and all of it's crates.

crates/lambda-rs-platform/Cargo.toml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ path = "src/lib.rs"
1212

1313
[dependencies]
1414
winit = "=0.29.15"
15-
shaderc = { version = "=0.7", optional = true, default-features = false }
1615
naga = { version = "=28.0.0", optional = true, default-features = false, features = [
1716
"spv-out",
1817
"glsl-in",
@@ -37,11 +36,6 @@ mockall = "=0.14.0"
3736
default = ["wgpu", "shader-backend-naga"]
3837

3938
shader-backend-naga = ["dep:naga"]
40-
shader-backend-shaderc = ["dep:shaderc"]
41-
shader-backend-shaderc-build-from-source = [
42-
"shader-backend-shaderc",
43-
"shaderc/build-from-source",
44-
]
4539

4640
wgpu = [
4741
"dep:wgpu",

crates/lambda-rs-platform/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
pub mod obj;
1313
pub mod rand;
1414
pub mod shader;
15-
pub mod shaderc;
1615
#[cfg(feature = "wgpu")]
1716
pub mod wgpu;
1817
pub mod winit;

crates/lambda-rs-platform/src/shader/mod.rs

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -9,27 +9,8 @@ pub use types::{
99
#[cfg(feature = "shader-backend-naga")]
1010
mod naga;
1111

12-
#[cfg(feature = "shader-backend-shaderc")]
13-
mod shaderc_backend;
14-
1512
#[cfg(feature = "shader-backend-naga")]
1613
pub use naga::{
1714
ShaderCompiler,
1815
ShaderCompilerBuilder,
1916
};
20-
#[cfg(all(
21-
feature = "shader-backend-naga",
22-
feature = "shader-backend-shaderc"
23-
))]
24-
pub use naga::{
25-
ShaderCompiler,
26-
ShaderCompilerBuilder,
27-
};
28-
#[cfg(all(
29-
not(feature = "shader-backend-naga"),
30-
feature = "shader-backend-shaderc"
31-
))]
32-
pub use shaderc_backend::{
33-
ShaderCompiler,
34-
ShaderCompilerBuilder,
35-
};

crates/lambda-rs-platform/src/shader/shaderc_backend.rs

Lines changed: 0 additions & 120 deletions
This file was deleted.

crates/lambda-rs-platform/src/shaderc.rs

Lines changed: 0 additions & 12 deletions
This file was deleted.

crates/lambda-rs/Cargo.toml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,6 @@ with-wgpu-vulkan=["with-wgpu", "lambda-rs-platform/wgpu-with-vulkan"]
3131
with-wgpu-metal=["with-wgpu", "lambda-rs-platform/wgpu-with-metal"]
3232
with-wgpu-dx12=["with-wgpu", "lambda-rs-platform/wgpu-with-dx12"]
3333
with-wgpu-gl=["with-wgpu", "lambda-rs-platform/wgpu-with-gl"]
34-
with-shaderc=["lambda-rs-platform/shader-backend-shaderc"]
35-
with-shaderc-build-from-source=[
36-
"with-shaderc",
37-
"lambda-rs-platform/shader-backend-shaderc-build-from-source",
38-
]
3934

4035
# ------------------------------ RENDER VALIDATION -----------------------------
4136
# Granular, opt-in validation flags for release builds. Debug builds enable

crates/lambda-rs/src/render/shader.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
//! GLSL source or file path + metadata) into a SPIR‑V binary suitable for
66
//! pipeline creation.
77
//!
8-
//! Use the platform’s shader backend configured for the workspace (e.g., naga
9-
//! or shaderc) without exposing backend‑specific types in the public API.
8+
//! Use the platform’s shader backend configured for the workspace (naga)
9+
//! without exposing backend‑specific types in the public API.
1010
1111
// Expose the platform shader compiler abstraction
1212
pub use lambda_platform::shader::{

docs/features.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ title: "Cargo Features Overview"
33
document_id: "features-2025-11-17"
44
status: "living"
55
created: "2025-11-17T23:59:00Z"
6-
last_updated: "2025-12-22T00:00:00Z"
7-
version: "0.1.5"
6+
last_updated: "2026-01-25T00:00:00Z"
7+
version: "0.1.6"
88
engine_workspace_version: "2023.1.30"
99
wgpu_version: "26.0.1"
1010
shader_backend_default: "naga"
1111
winit_version: "0.29.10"
12-
repo_commit: "58e7dd9f9b98b05302b8b4cfe4d653e61796c153"
12+
repo_commit: "229960fd426cf605c7513002b36e3942f14a3140"
1313
owners: ["lambda-sh"]
1414
reviewers: ["engine", "rendering"]
1515
tags: ["guide", "features", "validation", "cargo"]
@@ -39,7 +39,6 @@ This document enumerates the primary Cargo features exposed by the workspace rel
3939
## Shader Backends
4040
- `lambda-rs-platform`
4141
- `shader-backend-naga` (default): uses `naga` for shader handling.
42-
- `shader-backend-shaderc`: uses `shaderc`; optional `shader-backend-shaderc-build-from-source`.
4342

4443
## Render Validation
4544

@@ -86,6 +85,8 @@ Usage examples
8685
- `cargo test -p lambda-rs --features render-validation-msaa`
8786

8887
## Changelog
88+
- 0.1.6 (2026-01-25): Remove the deprecated legacy shader backend
89+
documentation.
8990
- 0.1.5 (2025-12-22): Align `lambda-rs` Cargo feature umbrella composition with
9091
the documented render-validation feature set, including `render-validation-pass-compat`
9192
and `render-validation-render-targets`.

0 commit comments

Comments
 (0)