|
|
@ -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; |
|
|
|