From b190b2993ca89e6eb7a6704c38fcf4048fb19180 Mon Sep 17 00:00:00 2001 From: Nico de Poel Date: Wed, 15 Mar 2023 11:08:39 +0100 Subject: [PATCH] Suppress a few common but harmless warnings in FFX's HLSL code. This way we don't have to modify the FSR2 shaders to get rid of these warnings. --- Assets/Resources/FSR2/ffx_fsr2_unity_common.cginc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Assets/Resources/FSR2/ffx_fsr2_unity_common.cginc b/Assets/Resources/FSR2/ffx_fsr2_unity_common.cginc index bd1fbaf..3330d20 100644 --- a/Assets/Resources/FSR2/ffx_fsr2_unity_common.cginc +++ b/Assets/Resources/FSR2/ffx_fsr2_unity_common.cginc @@ -1,4 +1,8 @@ -#define FFX_GPU // Compiling for GPU +// Suppress a few warnings produced by FFX's HLSL code +#pragma warning(disable: 3078) // Loop control variable conflicts +#pragma warning(disable: 3203) // Signed/unsigned mismatch + +#define FFX_GPU // Compiling for GPU #define FFX_HLSL // Compile for plain HLSL // Use the DXC shader compiler on modern graphics APIs to enable a few advanced features