Browse Source

Made PSSL pragmas only get included for PSSL to prevent compiler warnings, and require native 16-bit compilation for PSSL.

asr-console
Nico de Poel 10 months ago
parent
commit
e4ad05a414
  1. 2
      Packages/com.unity.postprocessing@3.2.2/PostProcessing/Runtime/Effects/Upscaling/ASR/Shaders/ffxm_fsr2_common.cginc
  2. 2
      Packages/com.unity.postprocessing@3.2.2/PostProcessing/Runtime/Effects/Upscaling/ASR/Shaders/shaders/ffxm_fsr2_accumulate_pass_fs.hlsl
  3. 2
      Packages/com.unity.postprocessing@3.2.2/PostProcessing/Runtime/Effects/Upscaling/ASR/Shaders/shaders/ffxm_fsr2_autogen_reactive_pass_fs.hlsl
  4. 2
      Packages/com.unity.postprocessing@3.2.2/PostProcessing/Runtime/Effects/Upscaling/ASR/Shaders/shaders/ffxm_fsr2_depth_clip_pass_fs.hlsl
  5. 2
      Packages/com.unity.postprocessing@3.2.2/PostProcessing/Runtime/Effects/Upscaling/ASR/Shaders/shaders/ffxm_fsr2_reconstruct_previous_depth_pass_fs.hlsl

2
Packages/com.unity.postprocessing@3.2.2/PostProcessing/Runtime/Effects/Upscaling/ASR/Shaders/ffxm_fsr2_common.cginc

@ -6,7 +6,7 @@
// Doesn't work for: // Doesn't work for:
// - DX11: forces use of DXC which is not supported // - DX11: forces use of DXC which is not supported
// - XB1: native FP16 seems to be unsupported // - XB1: native FP16 seems to be unsupported
#if defined(SHADER_API_VULKAN)
#if defined(SHADER_API_VULKAN) || defined(SHADER_API_PSSL)
#pragma require Native16Bit #pragma require Native16Bit
#endif #endif

2
Packages/com.unity.postprocessing@3.2.2/PostProcessing/Runtime/Effects/Upscaling/ASR/Shaders/shaders/ffxm_fsr2_accumulate_pass_fs.hlsl

@ -56,7 +56,9 @@
#include "fsr2/ffxm_fsr2_reproject.h" #include "fsr2/ffxm_fsr2_reproject.h"
#include "fsr2/ffxm_fsr2_accumulate.h" #include "fsr2/ffxm_fsr2_accumulate.h"
#if defined(SHADER_API_PSSL)
#pragma PSSL_target_output_format(target 1 FMT_FP16_ABGR) #pragma PSSL_target_output_format(target 1 FMT_FP16_ABGR)
#endif
struct AccumulateOutputsFS struct AccumulateOutputsFS
{ {

2
Packages/com.unity.postprocessing@3.2.2/PostProcessing/Runtime/Effects/Upscaling/ASR/Shaders/shaders/ffxm_fsr2_autogen_reactive_pass_fs.hlsl

@ -36,7 +36,9 @@
#include "fsr2/ffxm_fsr2_callbacks_hlsl.h" #include "fsr2/ffxm_fsr2_callbacks_hlsl.h"
#include "fsr2/ffxm_fsr2_common.h" #include "fsr2/ffxm_fsr2_common.h"
#if defined(SHADER_API_PSSL)
#pragma PSSL_target_output_format(default FMT_32_R) #pragma PSSL_target_output_format(default FMT_32_R)
#endif
struct GenReactiveMaskOutputs struct GenReactiveMaskOutputs
{ {

2
Packages/com.unity.postprocessing@3.2.2/PostProcessing/Runtime/Effects/Upscaling/ASR/Shaders/shaders/ffxm_fsr2_depth_clip_pass_fs.hlsl

@ -45,7 +45,9 @@
#include "fsr2/ffxm_fsr2_sample.h" #include "fsr2/ffxm_fsr2_sample.h"
#include "fsr2/ffxm_fsr2_depth_clip.h" #include "fsr2/ffxm_fsr2_depth_clip.h"
#if defined(SHADER_API_PSSL)
#pragma PSSL_target_output_format(target 0 FMT_FP16_ABGR) #pragma PSSL_target_output_format(target 0 FMT_FP16_ABGR)
#endif
struct DepthClipOutputsFS struct DepthClipOutputsFS
{ {

2
Packages/com.unity.postprocessing@3.2.2/PostProcessing/Runtime/Effects/Upscaling/ASR/Shaders/shaders/ffxm_fsr2_reconstruct_previous_depth_pass_fs.hlsl

@ -41,9 +41,11 @@
#include "fsr2/ffxm_fsr2_sample.h" #include "fsr2/ffxm_fsr2_sample.h"
#include "fsr2/ffxm_fsr2_reconstruct_dilated_velocity_and_previous_depth.h" #include "fsr2/ffxm_fsr2_reconstruct_dilated_velocity_and_previous_depth.h"
#if defined(SHADER_API_PSSL)
#pragma PSSL_target_output_format(target 0 FMT_32_R) #pragma PSSL_target_output_format(target 0 FMT_32_R)
#pragma PSSL_target_output_format(target 1 FMT_FP16_ABGR) #pragma PSSL_target_output_format(target 1 FMT_FP16_ABGR)
#pragma PSSL_target_output_format(target 2 FMT_32_R) #pragma PSSL_target_output_format(target 2 FMT_32_R)
#endif
struct ReconstructPrevDepthOutputsFS struct ReconstructPrevDepthOutputsFS
{ {

Loading…
Cancel
Save