Browse Source

Updated PPV2 code to version 3.3.1

master
Nico de Poel 3 years ago
parent
commit
e1660542ea
  1. 5
      Packages/com.unity.postprocessing@3.2.2/CHANGELOG.md
  2. 15
      Packages/com.unity.postprocessing@3.2.2/PostProcessing/Runtime/Effects/AmbientOcclusion.cs
  3. 5
      Packages/com.unity.postprocessing@3.2.2/PostProcessing/Runtime/Effects/ColorGrading.cs
  4. 2
      Packages/com.unity.postprocessing@3.2.2/package.json

5
Packages/com.unity.postprocessing@3.2.2/CHANGELOG.md

@ -4,6 +4,11 @@ All notable changes to this package will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
## [3.3.1] - 2023-06-02
### Fixed
- Fixed obsolete FormatUsage bug
## [3.3.0] - 2023-05-11 ## [3.3.0] - 2023-05-11
### Fixed ### Fixed

15
Packages/com.unity.postprocessing@3.2.2/PostProcessing/Runtime/Effects/AmbientOcclusion.cs

@ -196,9 +196,18 @@ namespace UnityEngine.Rendering.PostProcessing
state &= SystemInfo.supportsComputeShaders state &= SystemInfo.supportsComputeShaders
&& !RuntimeUtilities.isAndroidOpenGL && !RuntimeUtilities.isAndroidOpenGL
&& SystemInfo.IsFormatSupported(GraphicsFormat.R32_SFloat, FormatUsage.Render | FormatUsage.Sparse)
&& SystemInfo.IsFormatSupported(GraphicsFormat.R16_SFloat, FormatUsage.Render | FormatUsage.Sparse)
&& SystemInfo.IsFormatSupported(GraphicsFormat.R8_UNorm, FormatUsage.Render | FormatUsage.Sparse);
#if UNITY_2023_2_OR_NEWER
&& SystemInfo.IsFormatSupported(GraphicsFormat.R32_SFloat, GraphicsFormatUsage.Render | GraphicsFormatUsage.Sparse)
&& SystemInfo.IsFormatSupported(GraphicsFormat.R16_SFloat, GraphicsFormatUsage.Render | GraphicsFormatUsage.Sparse)
&& SystemInfo.IsFormatSupported(GraphicsFormat.R8_UNorm, GraphicsFormatUsage.Render | GraphicsFormatUsage.Sparse);
#else
&& SystemInfo.IsFormatSupported(GraphicsFormat.R32_SFloat, FormatUsage.Render)
&& SystemInfo.IsFormatSupported(GraphicsFormat.R32_SFloat, FormatUsage.Sparse)
&& SystemInfo.IsFormatSupported(GraphicsFormat.R16_SFloat, FormatUsage.Render)
&& SystemInfo.IsFormatSupported(GraphicsFormat.R16_SFloat, FormatUsage.Sparse)
&& SystemInfo.IsFormatSupported(GraphicsFormat.R8_UNorm, FormatUsage.Render)
&& SystemInfo.IsFormatSupported(GraphicsFormat.R8_UNorm, FormatUsage.Sparse);
#endif
} }
return state; return state;

5
Packages/com.unity.postprocessing@3.2.2/PostProcessing/Runtime/Effects/ColorGrading.cs

@ -792,7 +792,10 @@ namespace UnityEngine.Rendering.PostProcessing
static bool IsRenderTextureFormatSupportedForLinearFiltering(RenderTextureFormat format) static bool IsRenderTextureFormatSupportedForLinearFiltering(RenderTextureFormat format)
{ {
#if UNITY_2019_1_OR_NEWER
#if UNITY_2023_2_OR_NEWER
var gFormat = GraphicsFormatUtility.GetGraphicsFormat(format, RenderTextureReadWrite.Linear);
return SystemInfo.IsFormatSupported(gFormat, GraphicsFormatUsage.Linear);
#elif UNITY_2019_1_OR_NEWER
var gFormat = GraphicsFormatUtility.GetGraphicsFormat(format, RenderTextureReadWrite.Linear); var gFormat = GraphicsFormatUtility.GetGraphicsFormat(format, RenderTextureReadWrite.Linear);
return SystemInfo.IsFormatSupported(gFormat, FormatUsage.Linear); return SystemInfo.IsFormatSupported(gFormat, FormatUsage.Linear);
#else #else

2
Packages/com.unity.postprocessing@3.2.2/package.json

@ -1,6 +1,6 @@
{ {
"name": "com.unity.postprocessing", "name": "com.unity.postprocessing",
"version": "3.3.0",
"version": "3.3.1",
"displayName": "Post Processing", "displayName": "Post Processing",
"unity": "2019.4", "unity": "2019.4",
"unityRelease": "19f1", "unityRelease": "19f1",

Loading…
Cancel
Save