Fix Windows build (#49665)

John Tur and Marshall Bowers created

Fix regressions from https://github.com/zed-industries/zed/pull/49277:

- The fusion manifest was not being embedded for Zed.exe, making it
non-functional.
- The relative path used to load shaders in debug mode was incorrect.

Release Notes:

- N/A

Co-authored-by: Marshall Bowers <git@maxdeviant.com>

Change summary

crates/gpui_windows/src/directx_renderer.rs | 2 +-
crates/zed/Cargo.toml                       | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)

Detailed changes

crates/gpui_windows/src/directx_renderer.rs 🔗

@@ -1709,7 +1709,7 @@ pub(crate) mod shader_resources {
             let mut compile_blob = None;
             let mut error_blob = None;
             let shader_path = std::path::PathBuf::from(env!("CARGO_MANIFEST_DIR"))
-                .join(&format!("src/platform/windows/{}", shader_name))
+                .join(&format!("src/{}", shader_name))
                 .canonicalize()?;
 
             let entry_point = PCSTR::from_raw(entry.as_ptr());

crates/zed/Cargo.toml 🔗

@@ -120,6 +120,7 @@ go_to_line.workspace = true
 system_specs.workspace = true
 gpui = { workspace = true, features = [
     "wayland",
+    "windows-manifest",
     "x11",
 ] }
 gpui_platform = {workspace = true, features=["screen-capture", "font-kit", "wayland", "x11"]}