From f14f918068f948e2b489b4f7c8d6512373448a39 Mon Sep 17 00:00:00 2001 From: chyyran Date: Mon, 6 Feb 2023 21:24:55 -0500 Subject: [PATCH] d3d12: use HV 2016 when compiling HLSL pipelines --- librashader-runtime-d3d12/src/lib.rs | 4 ++-- librashader-runtime-d3d12/src/util.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/librashader-runtime-d3d12/src/lib.rs b/librashader-runtime-d3d12/src/lib.rs index 6aa4767..aead3fd 100644 --- a/librashader-runtime-d3d12/src/lib.rs +++ b/librashader-runtime-d3d12/src/lib.rs @@ -34,8 +34,8 @@ mod tests { fn triangle_d3d12() { let sample = hello_triangle::d3d12_hello_triangle::Sample::new( // "../test/slang-shaders/crt/crt-lottes.slangp", - "../test/slang-shaders/bezel/Mega_Bezel/Presets/MBZ__0__SMOOTH-ADV.slangp", - // "../test/slang-shaders/crt/crt-royale.slangp", + // "../test/slang-shaders/bezel/Mega_Bezel/Presets/MBZ__0__SMOOTH-ADV.slangp", + "../test/slang-shaders/crt/crt-royale.slangp", // "../test/slang-shaders/vhs/VHSPro.slangp", &SampleCommandLine { use_warp_device: false, diff --git a/librashader-runtime-d3d12/src/util.rs b/librashader-runtime-d3d12/src/util.rs index 2aa6bcd..eab4077 100644 --- a/librashader-runtime-d3d12/src/util.rs +++ b/librashader-runtime-d3d12/src/util.rs @@ -186,7 +186,7 @@ pub fn dxc_compile_shader( PCWSTR::null(), PCWSTR(u16cstr!("main").as_ptr()), PCWSTR(profile.as_ptr()), - None, + Some(&[PCWSTR(u16cstr!("-HV 2016").as_ptr())]), &[], &include, )?;