ed751714e0
Compose NGX and HDR Vulkan device creation, retain one SDK per device and a context per output size, and evaluate DLSS with existing motion/depth/jitter. Bracket NGX with explicit display-linear color conversion and ordered command buffers. Native TAA/TAAU remains the fallback; Windows compile check passes, runtime acceptance still requires RTX. Co-Authored-By: Kimi Code <noreply@moonshot.ai>
22 lines
951 B
Rust
22 lines
951 B
Rust
//! Embeds Horizon's icon (`packaging/icons/horizon.ico`) in the Windows executables, as icon
|
|
//! resource 1: Explorer and the task bar show it, and the window takes it as its icon.
|
|
fn main() {
|
|
let dir = std::env::var("CARGO_MANIFEST_DIR").unwrap_or_default();
|
|
let ico = format!("{dir}/../../packaging/icons/horizon.ico");
|
|
println!("cargo:rerun-if-changed={ico}");
|
|
if std::env::var("CARGO_CFG_TARGET_OS").as_deref() == Ok("windows")
|
|
&& std::env::var("CARGO_FEATURE_DLSS").is_ok()
|
|
{
|
|
// dlss_wgpu 6.0.0 leaves out nvsdk_ngx's registry import library on Windows.
|
|
println!("cargo:rustc-link-lib=advapi32");
|
|
}
|
|
#[cfg(windows)]
|
|
if std::env::var("CARGO_CFG_TARGET_OS").as_deref() == Ok("windows") {
|
|
let mut resource = winresource::WindowsResource::new();
|
|
resource.set_icon(&ico);
|
|
if let Err(e) = resource.compile() {
|
|
panic!("embedding {ico}: {e}");
|
|
}
|
|
}
|
|
}
|