diff options
author | thexai <58434170+thexai@users.noreply.github.com> | 2020-12-23 11:21:37 +0100 |
---|---|---|
committer | thexai <58434170+thexai@users.noreply.github.com> | 2020-12-23 17:00:56 +0100 |
commit | 66d50a7342e4cd203873512425f50730a61d2b88 (patch) | |
tree | 01fecfa21e8a04385d0a14f5edd75cf26d42672f | |
parent | 95ec740bd9f1bf1a825d57c0f0b67e690f430e29 (diff) |
Shaders: only requires profile level 9.3 when is needed (ACES, Hable or HLG to PQ)
-rw-r--r-- | system/shaders/output_d3d.fx | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/system/shaders/output_d3d.fx b/system/shaders/output_d3d.fx index a3f73412f8..5b36ffa074 100644 --- a/system/shaders/output_d3d.fx +++ b/system/shaders/output_d3d.fx @@ -169,6 +169,13 @@ float4 output(float3 color, float2 uv) #if defined(KODI_OUTPUT_T) #include "convolution_d3d.fx" + +#if (defined(KODI_TONE_MAPPING_ACES) || defined(KODI_TONE_MAPPING_HABLE) || defined(KODI_HLG_TO_PQ)) +#define PS_PROFILE ps_4_0_level_9_3 +#else +#define PS_PROFILE ps_4_0_level_9_1 +#endif + float3 m_params; // 0 - range (0 - full, 1 - limited), 1 - contrast, 2 - brightness float4 OUTPUT_PS(VS_OUTPUT In) : SV_TARGET @@ -189,7 +196,7 @@ technique11 OUTPUT_T pass P0 { SetVertexShader( VS_SHADER ); - SetPixelShader( CompileShader( ps_4_0_level_9_3, OUTPUT_PS() ) ); + SetPixelShader( CompileShader( PS_PROFILE, OUTPUT_PS() ) ); } }; #endif
\ No newline at end of file |