Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
fix(rendering): find the bundled DXC from example binaries
Marcos Daniel Rivera Gonzalezf95be9f364ee
diff --git a/crates/rendering/src/lib.rs b/crates/rendering/src/lib.rsindex c1a0e2ff6..aa6043764 100644--- a/crates/rendering/src/lib.rs+++ b/crates/rendering/src/lib.rs@@ -259,9 +259,12 @@ fn bundled_dxc_compiler() -> wgpu::Dx12Compiler {fn bundled_dxc_paths() -> Option<(PathBuf, PathBuf)> {let executable = std::env::current_exe().ok()?;let executable_dir = executable.parent()?;- let profile_dir = (executable_dir.file_name()? == "deps")- .then(|| executable_dir.parent())- .flatten();+ let profile_dir = matches!(+ executable_dir.file_name()?.to_str(),+ Some("deps" | "examples")+ )+ .then(|| executable_dir.parent())+ .flatten();[Some(executable_dir), profile_dir].into_iter()