d3d12: use HV 2016 when compiling HLSL pipelines

This commit is contained in:
chyyran 2023-02-06 21:24:55 -05:00
parent c818ef13f7
commit f14f918068
2 changed files with 3 additions and 3 deletions

View file

@ -34,8 +34,8 @@ mod tests {
fn triangle_d3d12() { fn triangle_d3d12() {
let sample = hello_triangle::d3d12_hello_triangle::Sample::new( let sample = hello_triangle::d3d12_hello_triangle::Sample::new(
// "../test/slang-shaders/crt/crt-lottes.slangp", // "../test/slang-shaders/crt/crt-lottes.slangp",
"../test/slang-shaders/bezel/Mega_Bezel/Presets/MBZ__0__SMOOTH-ADV.slangp", // "../test/slang-shaders/bezel/Mega_Bezel/Presets/MBZ__0__SMOOTH-ADV.slangp",
// "../test/slang-shaders/crt/crt-royale.slangp", "../test/slang-shaders/crt/crt-royale.slangp",
// "../test/slang-shaders/vhs/VHSPro.slangp", // "../test/slang-shaders/vhs/VHSPro.slangp",
&SampleCommandLine { &SampleCommandLine {
use_warp_device: false, use_warp_device: false,

View file

@ -186,7 +186,7 @@ pub fn dxc_compile_shader(
PCWSTR::null(), PCWSTR::null(),
PCWSTR(u16cstr!("main").as_ptr()), PCWSTR(u16cstr!("main").as_ptr()),
PCWSTR(profile.as_ptr()), PCWSTR(profile.as_ptr()),
None, Some(&[PCWSTR(u16cstr!("-HV 2016").as_ptr())]),
&[], &[],
&include, &include,
)?; )?;