Skip to content
Merged
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
30 changes: 0 additions & 30 deletions Cargo.lock

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

2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,6 @@ cargo add lambda-rs
#### Required external dependencies <a name="ext_deps"></a>

* All platforms
* `cmake >= 3.20.0` is needed to build shaderc from source.
* `ninja` is needed to build shaderc from source.
* `git` is needed to clone the project and manage it's dependencies.
* `git-lfs` is needed for asset files.
* `rust >= 1.60` is needed for compiling lambda and all of it's crates.
Expand Down
6 changes: 0 additions & 6 deletions crates/lambda-rs-platform/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ path = "src/lib.rs"

[dependencies]
winit = "=0.29.15"
shaderc = { version = "=0.7", optional = true, default-features = false }
naga = { version = "=28.0.0", optional = true, default-features = false, features = [
"spv-out",
"glsl-in",
Expand All @@ -37,11 +36,6 @@ mockall = "=0.14.0"
default = ["wgpu", "shader-backend-naga"]

shader-backend-naga = ["dep:naga"]
shader-backend-shaderc = ["dep:shaderc"]
shader-backend-shaderc-build-from-source = [
"shader-backend-shaderc",
"shaderc/build-from-source",
]

wgpu = [
"dep:wgpu",
Expand Down
1 change: 0 additions & 1 deletion crates/lambda-rs-platform/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
pub mod obj;
pub mod rand;
pub mod shader;
pub mod shaderc;
#[cfg(feature = "wgpu")]
pub mod wgpu;
pub mod winit;
19 changes: 0 additions & 19 deletions crates/lambda-rs-platform/src/shader/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,27 +9,8 @@ pub use types::{
#[cfg(feature = "shader-backend-naga")]
mod naga;

#[cfg(feature = "shader-backend-shaderc")]
mod shaderc_backend;

#[cfg(feature = "shader-backend-naga")]
pub use naga::{
ShaderCompiler,
ShaderCompilerBuilder,
};
#[cfg(all(
feature = "shader-backend-naga",
feature = "shader-backend-shaderc"
))]
pub use naga::{
ShaderCompiler,
ShaderCompilerBuilder,
};
#[cfg(all(
not(feature = "shader-backend-naga"),
feature = "shader-backend-shaderc"
))]
pub use shaderc_backend::{
ShaderCompiler,
ShaderCompilerBuilder,
};
120 changes: 0 additions & 120 deletions crates/lambda-rs-platform/src/shader/shaderc_backend.rs

This file was deleted.

12 changes: 0 additions & 12 deletions crates/lambda-rs-platform/src/shaderc.rs

This file was deleted.

5 changes: 0 additions & 5 deletions crates/lambda-rs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,6 @@ with-wgpu-vulkan=["with-wgpu", "lambda-rs-platform/wgpu-with-vulkan"]
with-wgpu-metal=["with-wgpu", "lambda-rs-platform/wgpu-with-metal"]
with-wgpu-dx12=["with-wgpu", "lambda-rs-platform/wgpu-with-dx12"]
with-wgpu-gl=["with-wgpu", "lambda-rs-platform/wgpu-with-gl"]
with-shaderc=["lambda-rs-platform/shader-backend-shaderc"]
with-shaderc-build-from-source=[
"with-shaderc",
"lambda-rs-platform/shader-backend-shaderc-build-from-source",
]

# ------------------------------ RENDER VALIDATION -----------------------------
# Granular, opt-in validation flags for release builds. Debug builds enable
Expand Down
4 changes: 2 additions & 2 deletions crates/lambda-rs/src/render/shader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
//! GLSL source or file path + metadata) into a SPIR‑V binary suitable for
//! pipeline creation.
//!
//! Use the platform’s shader backend configured for the workspace (e.g., naga
//! or shaderc) without exposing backend‑specific types in the public API.
//! Use the platform’s shader backend configured for the workspace (naga)
//! without exposing backend‑specific types in the public API.

// Expose the platform shader compiler abstraction
pub use lambda_platform::shader::{
Expand Down
9 changes: 5 additions & 4 deletions docs/features.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ title: "Cargo Features Overview"
document_id: "features-2025-11-17"
status: "living"
created: "2025-11-17T23:59:00Z"
last_updated: "2025-12-22T00:00:00Z"
version: "0.1.5"
last_updated: "2026-01-25T00:00:00Z"
version: "0.1.6"
engine_workspace_version: "2023.1.30"
wgpu_version: "26.0.1"
shader_backend_default: "naga"
winit_version: "0.29.10"
repo_commit: "58e7dd9f9b98b05302b8b4cfe4d653e61796c153"
repo_commit: "229960fd426cf605c7513002b36e3942f14a3140"
owners: ["lambda-sh"]
reviewers: ["engine", "rendering"]
tags: ["guide", "features", "validation", "cargo"]
Expand Down Expand Up @@ -39,7 +39,6 @@ This document enumerates the primary Cargo features exposed by the workspace rel
## Shader Backends
- `lambda-rs-platform`
- `shader-backend-naga` (default): uses `naga` for shader handling.
- `shader-backend-shaderc`: uses `shaderc`; optional `shader-backend-shaderc-build-from-source`.

## Render Validation

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

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