From e78920a89c7b59ea23938748617476dbea2d931e Mon Sep 17 00:00:00 2001 From: Nico de Poel Date: Fri, 3 Mar 2023 11:31:18 +0100 Subject: [PATCH] Disable DXC shader compiler by default because enabling it for DX12 will inevitably break DX11 support. --- Assets/Resources/FSR2/ffx_fsr2_unity_common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Assets/Resources/FSR2/ffx_fsr2_unity_common.h b/Assets/Resources/FSR2/ffx_fsr2_unity_common.h index d064ad1..bd1fbaf 100644 --- a/Assets/Resources/FSR2/ffx_fsr2_unity_common.h +++ b/Assets/Resources/FSR2/ffx_fsr2_unity_common.h @@ -3,7 +3,7 @@ // Use the DXC shader compiler on modern graphics APIs to enable a few advanced features #if defined(SHADER_API_D3D12) || defined(SHADER_API_VULKAN) || defined(SHADER_API_METAL) -#pragma use_dxc +//#pragma use_dxc // Using DXC will currently break DX11 support since DX11 and DX12 share the same shader bytecode in Unity. Disabling this by default... *sigh* #endif // Enable half precision data types on platforms that support it