From 1dc62167508ee36a7b669f86ffaf4e21beecba54 Mon Sep 17 00:00:00 2001 From: Nico de Poel Date: Thu, 27 Mar 2025 20:38:20 +0100 Subject: [PATCH] Simplified platform wave operation support check --- .../Upscaling/ASR/Shaders/ffxm_fsr2_luma_pyramid_modern.compute | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Packages/com.unity.postprocessing@3.2.2/PostProcessing/Runtime/Effects/Upscaling/ASR/Shaders/ffxm_fsr2_luma_pyramid_modern.compute b/Packages/com.unity.postprocessing@3.2.2/PostProcessing/Runtime/Effects/Upscaling/ASR/Shaders/ffxm_fsr2_luma_pyramid_modern.compute index a9d80c2..5e1e43a 100644 --- a/Packages/com.unity.postprocessing@3.2.2/PostProcessing/Runtime/Effects/Upscaling/ASR/Shaders/ffxm_fsr2_luma_pyramid_modern.compute +++ b/Packages/com.unity.postprocessing@3.2.2/PostProcessing/Runtime/Effects/Upscaling/ASR/Shaders/ffxm_fsr2_luma_pyramid_modern.compute @@ -13,7 +13,7 @@ #include "ffxm_fsr2_common.cginc" // Enable wave operations for the platforms that support it -#if (defined(SHADER_API_D3D12) || defined(SHADER_API_VULKAN) || defined(SHADER_API_METAL) || defined(SHADER_API_GAMECORE)) && !defined(SHADER_API_MOBILE) +#if defined(PLATFORM_SUPPORTS_WAVE_INTRINSICS) && !defined(SHADER_API_MOBILE) #pragma require WaveBasic // Required for WaveGetLaneIndex #pragma require WaveBallot // Required for WaveReadLaneAt #pragma require QuadShuffle // Required for QuadReadAcross