Enable debug logging for cargo-gpu (#3207)

debug cargo-gpu: debug logging
This commit is contained in:
Firestar99 2025-10-05 13:19:21 +02:00 committed by GitHub
parent 593a89f2e2
commit 074a33f58f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 1 deletions

1
Cargo.lock generated
View File

@ -2184,6 +2184,7 @@ version = "0.1.0"
dependencies = [
"cargo-gpu",
"env_logger",
"log",
]
[[package]]

View File

@ -14,3 +14,4 @@ crate-type = ["rlib", "dylib"]
[build-dependencies]
cargo-gpu = { workspace = true }
env_logger = { workspace = true }
log = { workspace = true }

View File

@ -3,7 +3,7 @@ use cargo_gpu::spirv_builder::{MetadataPrintout, SpirvMetadata};
use std::path::PathBuf;
pub fn main() -> Result<(), Box<dyn std::error::Error>> {
env_logger::builder().init();
env_logger::builder().filter_level(log::LevelFilter::Debug).init();
// Skip building the shader if they are provided externally
println!("cargo:rerun-if-env-changed=GRAPHENE_RASTER_NODES_SHADER_PATH");