#pragma kernel CS #pragma multi_compile_local __ FFX_HALF #pragma multi_compile_local __ FFX_FSR2_OPTION_REPROJECT_USE_LANCZOS_TYPE #pragma multi_compile_local __ FFX_FSR2_OPTION_HDR_COLOR_INPUT #pragma multi_compile_local __ FFX_FSR2_OPTION_LOW_RESOLUTION_MOTION_VECTORS #pragma multi_compile_local __ FFX_FSR2_OPTION_JITTERED_MOTION_VECTORS #pragma multi_compile_local __ FFX_FSR2_OPTION_INVERTED_DEPTH #pragma multi_compile_local __ FFX_FSR2_OPTION_APPLY_SHARPENING #include "ffx_fsr2_unity_common.cginc" // Ensure the correct value is defined for this keyword, as it is used to select one of multiple sampler functions #ifdef FFX_FSR2_OPTION_REPROJECT_USE_LANCZOS_TYPE #undef FFX_FSR2_OPTION_REPROJECT_USE_LANCZOS_TYPE #define FFX_FSR2_OPTION_REPROJECT_USE_LANCZOS_TYPE 1 #endif #include "shaders/ffx_fsr2_accumulate_pass.hlsl"