testss
This commit is contained in:
@@ -0,0 +1,86 @@
|
||||
// This file should be used as a container for things on its
|
||||
// way to being deprecated and removed in future releases
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
using UnityEngine.Scripting.APIUpdating;
|
||||
|
||||
namespace UnityEngine.Rendering.Universal
|
||||
{
|
||||
public abstract partial class ScriptableRenderPass
|
||||
{
|
||||
// This callback method will be removed. Please use OnCameraCleanup() instead.
|
||||
[EditorBrowsable(EditorBrowsableState.Never)]
|
||||
public virtual void FrameCleanup(CommandBuffer cmd) => OnCameraCleanup(cmd);
|
||||
}
|
||||
|
||||
namespace Internal
|
||||
{
|
||||
public partial class AdditionalLightsShadowCasterPass
|
||||
{
|
||||
[Obsolete("AdditionalLightsShadowCasterPass.m_AdditionalShadowsBufferId was deprecated. Shadow slice matrix is now passed to the GPU using an entry in buffer m_AdditionalLightsWorldToShadow_SSBO", false)]
|
||||
public static int m_AdditionalShadowsBufferId;
|
||||
[Obsolete("AdditionalLightsShadowCasterPass.m_AdditionalShadowsIndicesId was deprecated. Shadow slice index is now passed to the GPU using last member of an entry in buffer m_AdditionalShadowParams_SSBO", false)]
|
||||
public static int m_AdditionalShadowsIndicesId;
|
||||
}
|
||||
}
|
||||
|
||||
[Obsolete("This is obsolete, please use shadowCascadeCount instead.", false)]
|
||||
[MovedFrom("UnityEngine.Rendering.LWRP")] public enum ShadowCascadesOption
|
||||
{
|
||||
NoCascades,
|
||||
TwoCascades,
|
||||
FourCascades,
|
||||
}
|
||||
public partial class UniversalRenderPipelineAsset
|
||||
{
|
||||
#pragma warning disable 618 // Obsolete warning
|
||||
[Obsolete("This is obsolete, please use shadowCascadeCount instead.", false)]
|
||||
[SerializeField] ShadowCascadesOption m_ShadowCascades = ShadowCascadesOption.NoCascades;
|
||||
|
||||
[Obsolete("This is obsolete, please use shadowCascadeCount instead.", false)]
|
||||
public ShadowCascadesOption shadowCascadeOption
|
||||
{
|
||||
get
|
||||
{
|
||||
switch (shadowCascadeCount)
|
||||
{
|
||||
case 1: return ShadowCascadesOption.NoCascades;
|
||||
case 2: return ShadowCascadesOption.TwoCascades;
|
||||
case 4: return ShadowCascadesOption.FourCascades;
|
||||
default: throw new InvalidOperationException("Cascade count is not compatible with obsolete API, please use shadowCascadeCount instead.");
|
||||
}
|
||||
;
|
||||
}
|
||||
set
|
||||
{
|
||||
switch (value)
|
||||
{
|
||||
case ShadowCascadesOption.NoCascades:
|
||||
shadowCascadeCount = 1;
|
||||
break;
|
||||
case ShadowCascadesOption.TwoCascades:
|
||||
shadowCascadeCount = 2;
|
||||
break;
|
||||
case ShadowCascadesOption.FourCascades:
|
||||
shadowCascadeCount = 4;
|
||||
break;
|
||||
default:
|
||||
throw new InvalidOperationException("Cascade count is not compatible with obsolete API, please use shadowCascadeCount instead.");
|
||||
}
|
||||
}
|
||||
}
|
||||
#pragma warning restore 618 // Obsolete warning
|
||||
}
|
||||
|
||||
[MovedFrom("UnityEngine.Rendering.LWRP")]
|
||||
public abstract partial class ScriptableRenderer
|
||||
{
|
||||
// Deprecated in 10.x
|
||||
[Obsolete("cameraDepth has been renamed to cameraDepthTarget. (UnityUpgradable) -> cameraDepthTarget")]
|
||||
[EditorBrowsable(EditorBrowsableState.Never)]
|
||||
public RenderTargetIdentifier cameraDepth
|
||||
{
|
||||
get => m_CameraDepthTarget;
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user