Class ShadowVariance | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Class ShadowVariance

    Inheritance
    System.Object
    ShadowmapBase
    ShadowAtlas
    ShadowVariance
    Inherited Members
    ShadowAtlas.k_MaxCascadesInShader
    ShadowAtlas.m_TempDepthId
    ShadowAtlas.m_ZClipId
    ShadowAtlas.m_Shadowmap
    ShadowAtlas.m_ShadowmapId
    ShadowAtlas.m_EntryCache
    ShadowAtlas.m_ActiveEntriesCount
    ShadowAtlas.m_FrameId
    ShadowAtlas.m_ShaderKeyword
    ShadowAtlas.m_TexSlot
    ShadowAtlas.m_SampSlot
    ShadowAtlas.m_TmpWidths
    ShadowAtlas.m_TmpHeights
    ShadowAtlas.m_TmpSplits
    ShadowAtlas.m_TmpBorders
    ShadowAtlas.m_SupportedAlgorithms
    ShadowAtlas.captureFrame
    ShadowAtlas.CreateShadowmap()
    ShadowAtlas.Initialize(ShadowAtlas.AtlasInit)
    ShadowAtlas.ReserveSlots(ShadowContextStorage)
    ShadowAtlas.Fill(ShadowContextStorage)
    ShadowAtlas.Dispose()
    ShadowAtlas.Reserve(FrameId, Camera, Boolean, ShadowData, ShadowmapBase.ShadowRequest, UInt32, UInt32, VectorArray<ShadowData>, VectorArray<ShadowPayload>, List<VisibleLight>)
    ShadowAtlas.Reserve(FrameId, Camera, Boolean, ShadowData, ShadowmapBase.ShadowRequest, UInt32[], UInt32[], VectorArray<ShadowData>, VectorArray<ShadowPayload>, List<VisibleLight>)
    ShadowAtlas.ReserveFinalize(FrameId, VectorArray<ShadowData>, VectorArray<ShadowPayload>)
    ShadowAtlas.Update(FrameId, ScriptableRenderContext, CommandBuffer, CullResults, List<VisibleLight>)
    ShadowAtlas.Alloc(FrameId, ShadowAtlas.Key, UInt32, UInt32, UInt32, VectorArray<ShadowPayload>)
    ShadowAtlas.Layout()
    ShadowAtlas.Free(ShadowAtlas.CachedEntry)
    ShadowmapBase.m_Width
    ShadowmapBase.m_Height
    ShadowmapBase.m_Slices
    ShadowmapBase.m_ShadowmapBits
    ShadowmapBase.m_ShadowmapFormat
    ShadowmapBase.m_SamplerState
    ShadowmapBase.m_CompSamplerState
    ShadowmapBase.m_ClearColor
    ShadowmapBase.m_WidthRcp
    ShadowmapBase.m_HeightRcp
    ShadowmapBase.m_MaxPayloadCount
    ShadowmapBase.m_ShadowSupport
    ShadowmapBase.m_CullResults
    ShadowmapBase.width
    ShadowmapBase.height
    ShadowmapBase.slices
    ShadowmapBase.IsNativeDepth()
    ShadowmapBase.Register(ShadowRegistry)
    ShadowmapBase.QueryShadowSupport()
    ShadowmapBase.GetMaxPayload()
    ShadowmapBase.Assign(CullResults)
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ToString()
    System.Object.ReferenceEquals(System.Object, System.Object)
    Namespace: UnityEngine.Experimental.Rendering
    Syntax
    public class ShadowVariance : ShadowAtlas, IDisposable

    Constructors

    ShadowVariance(ref ShadowAtlas.AtlasInit)

    Declaration
    public ShadowVariance(ref ShadowAtlas.AtlasInit init)
    Parameters
    Type Name Description
    ShadowAtlas.AtlasInit init

    ShadowVariance(ref ShadowAtlas.AtlasInit, Int32)

    Declaration
    public ShadowVariance(ref ShadowAtlas.AtlasInit init, int sampleCount)
    Parameters
    Type Name Description
    ShadowAtlas.AtlasInit init
    System.Int32 sampleCount

    Fields

    k_BlurKernelCount

    Declaration
    protected const int k_BlurKernelCount = 8
    Field Value
    Type Description
    System.Int32

    k_BlurKernelDefSize

    Declaration
    protected const int k_BlurKernelDefSize = 2
    Field Value
    Type Description
    System.Int32

    k_BlurKernelMaxSize

    Declaration
    protected const int k_BlurKernelMaxSize = 17
    Field Value
    Type Description
    System.Int32

    k_BlurKernelMinSize

    Declaration
    protected const int k_BlurKernelMinSize = 3
    Field Value
    Type Description
    System.Int32

    k_MaxSampleCount

    Declaration
    protected const int k_MaxSampleCount = 8
    Field Value
    Type Description
    System.Int32

    k_MomentBlurThreadsPerWorkgroup

    Declaration
    protected const int k_MomentBlurThreadsPerWorkgroup = 16
    Field Value
    Type Description
    System.Int32

    m_BlurWeights

    Declaration
    protected float[][] m_BlurWeights
    Field Value
    Type Description
    System.Single[][]

    m_Flags

    Declaration
    protected readonly ShadowVariance.Flags m_Flags
    Field Value
    Type Description
    ShadowVariance.Flags

    m_KernelEVSM_2

    Declaration
    protected int[] m_KernelEVSM_2
    Field Value
    Type Description
    System.Int32[]

    m_KernelEVSM_4

    Declaration
    protected int[] m_KernelEVSM_4
    Field Value
    Type Description
    System.Int32[]

    m_KernelMSM

    Declaration
    protected int[] m_KernelMSM
    Field Value
    Type Description
    System.Int32[]

    m_KernelVSM

    Declaration
    protected int[] m_KernelVSM
    Field Value
    Type Description
    System.Int32[]

    m_MomentBlurCS

    Declaration
    protected ComputeShader m_MomentBlurCS
    Field Value
    Type Description
    ComputeShader

    m_SampleCount

    Declaration
    protected int m_SampleCount
    Field Value
    Type Description
    System.Int32

    Methods

    CheckDataIntegrity(ShadowAlgorithm, ShadowVariant, ShadowPrecision, ref Int32[])

    Declaration
    protected override bool CheckDataIntegrity(ShadowAlgorithm algorithm, ShadowVariant variant, ShadowPrecision precision, ref int[] dataBlock)
    Parameters
    Type Name Description
    ShadowAlgorithm algorithm
    ShadowVariant variant
    ShadowPrecision precision
    System.Int32[] dataBlock
    Returns
    Type Description
    System.Boolean
    Overrides
    ShadowAtlas.CheckDataIntegrity(ShadowAlgorithm, ShadowVariant, ShadowPrecision, ref Int32[])

    CreateShadowmap(RenderTexture)

    Declaration
    protected override void CreateShadowmap(RenderTexture shadowmap)
    Parameters
    Type Name Description
    RenderTexture shadowmap
    Overrides
    ShadowAtlas.CreateShadowmap(RenderTexture)

    DisplayShadowMap(CommandBuffer, Material, Vector4, UInt32, Single, Single, Single, Single, Single, Single)

    Declaration
    public override void DisplayShadowMap(CommandBuffer debugCB, Material debugMaterial, Vector4 scaleBias, uint slice, float screenX, float screenY, float screenSizeX, float screenSizeY, float minValue, float maxValue)
    Parameters
    Type Name Description
    CommandBuffer debugCB
    Material debugMaterial
    Vector4 scaleBias
    System.UInt32 slice
    System.Single screenX
    System.Single screenY
    System.Single screenSizeX
    System.Single screenSizeY
    System.Single minValue
    System.Single maxValue
    Overrides
    ShadowAtlas.DisplayShadowMap(CommandBuffer, Material, Vector4, UInt32, Single, Single, Single, Single, Single, Single)

    GetFilterWidthInTexels(ShadowmapBase.ShadowRequest, AdditionalShadowData)

    Declaration
    protected override float GetFilterWidthInTexels(ShadowmapBase.ShadowRequest sr, AdditionalShadowData asd)
    Parameters
    Type Name Description
    ShadowmapBase.ShadowRequest sr
    AdditionalShadowData asd
    Returns
    Type Description
    System.Single
    Overrides
    ShadowAtlas.GetFilterWidthInTexels(ShadowmapBase.ShadowRequest, AdditionalShadowData)

    GetFormat(Boolean, Boolean, Boolean)

    Declaration
    public static RenderTextureFormat GetFormat(bool use_16_BitsPerChannel, bool use_2_Channels, bool use_MSM)
    Parameters
    Type Name Description
    System.Boolean use_16_BitsPerChannel
    System.Boolean use_2_Channels
    System.Boolean use_MSM
    Returns
    Type Description
    RenderTextureFormat

    PostUpdate(FrameId, CommandBuffer, UInt32, List<VisibleLight>)

    Declaration
    protected override void PostUpdate(FrameId frameId, CommandBuffer cb, uint rendertargetSlice, List<VisibleLight> lights)
    Parameters
    Type Name Description
    FrameId frameId
    CommandBuffer cb
    System.UInt32 rendertargetSlice
    System.Collections.Generic.List<VisibleLight> lights
    Overrides
    ShadowAtlas.PostUpdate(FrameId, CommandBuffer, UInt32, List<VisibleLight>)

    PreUpdate(FrameId, CommandBuffer, UInt32)

    Declaration
    protected override void PreUpdate(FrameId frameId, CommandBuffer cb, uint rendertargetSlice)
    Parameters
    Type Name Description
    FrameId frameId
    CommandBuffer cb
    System.UInt32 rendertargetSlice
    Overrides
    ShadowAtlas.PreUpdate(FrameId, CommandBuffer, UInt32)

    Register(GPUShadowType, ShadowRegistry)

    Declaration
    protected override void Register(GPUShadowType type, ShadowRegistry registry)
    Parameters
    Type Name Description
    GPUShadowType type
    ShadowRegistry registry
    Overrides
    ShadowAtlas.Register(GPUShadowType, ShadowRegistry)

    ReservePayload(ShadowmapBase.ShadowRequest)

    Declaration
    protected override uint ReservePayload(ShadowmapBase.ShadowRequest sr)
    Parameters
    Type Name Description
    ShadowmapBase.ShadowRequest sr
    Returns
    Type Description
    System.UInt32
    Overrides
    ShadowAtlas.ReservePayload(ShadowmapBase.ShadowRequest)

    WritePerLightPayload(List<VisibleLight>, ShadowmapBase.ShadowRequest, ref ShadowData, ref VectorArray<ShadowPayload>, ref UInt32)

    Declaration
    protected override void WritePerLightPayload(List<VisibleLight> lights, ShadowmapBase.ShadowRequest sr, ref ShadowData sd, ref VectorArray<ShadowPayload> payload, ref uint payloadOffset)
    Parameters
    Type Name Description
    System.Collections.Generic.List<VisibleLight> lights
    ShadowmapBase.ShadowRequest sr
    ShadowData sd
    VectorArray<ShadowPayload> payload
    System.UInt32 payloadOffset
    Overrides
    ShadowAtlas.WritePerLightPayload(List<VisibleLight>, ShadowmapBase.ShadowRequest, ref ShadowData, ref VectorArray<ShadowPayload>, ref UInt32)
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023