Enable debug logging for cargo-gpu (#3207)

debug cargo-gpu: debug logging
This commit is contained in:
Firestar99
2025-10-05 11:19:21 +00:00
committed by GitHub
parent 593a89f2e2
commit 074a33f58f
3 changed files with 3 additions and 1 deletions
Generated
+1
View File
@@ -2184,6 +2184,7 @@ version = "0.1.0"
dependencies = [ dependencies = [
"cargo-gpu", "cargo-gpu",
"env_logger", "env_logger",
"log",
] ]
[[package]] [[package]]
@@ -14,3 +14,4 @@ crate-type = ["rlib", "dylib"]
[build-dependencies] [build-dependencies]
cargo-gpu = { workspace = true } cargo-gpu = { workspace = true }
env_logger = { workspace = true } env_logger = { workspace = true }
log = { workspace = true }
+1 -1
View File
@@ -3,7 +3,7 @@ use cargo_gpu::spirv_builder::{MetadataPrintout, SpirvMetadata};
use std::path::PathBuf; use std::path::PathBuf;
pub fn main() -> Result<(), Box<dyn std::error::Error>> { 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 // Skip building the shader if they are provided externally
println!("cargo:rerun-if-env-changed=GRAPHENE_RASTER_NODES_SHADER_PATH"); println!("cargo:rerun-if-env-changed=GRAPHENE_RASTER_NODES_SHADER_PATH");