Class ShadowmapBase
Inheritance
System.Object
ShadowmapBase
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Syntax
public abstract class ShadowmapBase
Constructors
ShadowmapBase(ref ShadowmapBase.BaseInit)
Declaration
protected ShadowmapBase(ref ShadowmapBase.BaseInit initializer)
Parameters
Fields
m_ClearColor
Declaration
protected readonly Vector4 m_ClearColor
Field Value
m_CompSamplerState
Declaration
protected readonly ComparisonSamplerState m_CompSamplerState
Field Value
m_CullResults
Declaration
protected CullResults m_CullResults
Field Value
| Type |
Description |
| CullResults |
|
m_Height
Declaration
protected readonly uint m_Height
Field Value
| Type |
Description |
| System.UInt32 |
|
m_HeightRcp
Declaration
protected readonly float m_HeightRcp
Field Value
| Type |
Description |
| System.Single |
|
m_MaxPayloadCount
Declaration
protected readonly uint m_MaxPayloadCount
Field Value
| Type |
Description |
| System.UInt32 |
|
m_SamplerState
Declaration
protected readonly SamplerState m_SamplerState
Field Value
m_ShadowmapBits
Declaration
protected readonly uint m_ShadowmapBits
Field Value
| Type |
Description |
| System.UInt32 |
|
Declaration
protected readonly RenderTextureFormat m_ShadowmapFormat
Field Value
| Type |
Description |
| RenderTextureFormat |
|
m_ShadowSupport
Declaration
protected readonly ShadowmapBase.ShadowSupport m_ShadowSupport
Field Value
m_Slices
Declaration
protected readonly uint m_Slices
Field Value
| Type |
Description |
| System.UInt32 |
|
m_Width
Declaration
protected readonly uint m_Width
Field Value
| Type |
Description |
| System.UInt32 |
|
m_WidthRcp
Declaration
protected readonly float m_WidthRcp
Field Value
| Type |
Description |
| System.Single |
|
Properties
height
Declaration
public uint height { get; }
Property Value
| Type |
Description |
| System.UInt32 |
|
slices
Declaration
public uint slices { get; }
Property Value
| Type |
Description |
| System.UInt32 |
|
width
Declaration
public uint width { get; }
Property Value
| Type |
Description |
| System.UInt32 |
|
Methods
Assign(CullResults)
Declaration
public void Assign(CullResults cullResults)
Parameters
| Type |
Name |
Description |
| CullResults |
cullResults |
|
CreateShadowmap()
Declaration
public abstract void CreateShadowmap()
DisplayShadowMap(CommandBuffer, Material, Vector4, UInt32, Single, Single, Single, Single, Single, Single, Boolean)
Declaration
public abstract void DisplayShadowMap(CommandBuffer cmd, Material debugMaterial, Vector4 scaleBias, uint slice, float screenX, float screenY, float screenSizeX, float screenSizeY, float minValue, float maxValue, bool flipY)
Parameters
| Type |
Name |
Description |
| CommandBuffer |
cmd |
|
| 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 |
|
| System.Boolean |
flipY |
|
Fill(ShadowContextStorage)
Declaration
public abstract void Fill(ShadowContextStorage cs)
Parameters
GetMaxPayload()
Declaration
public uint GetMaxPayload()
Returns
| Type |
Description |
| System.UInt32 |
|
IsNativeDepth()
Declaration
protected bool IsNativeDepth()
Returns
| Type |
Description |
| System.Boolean |
|
QueryShadowSupport()
Declaration
public ShadowmapBase.ShadowSupport QueryShadowSupport()
Returns
Register(GPUShadowType, ShadowRegistry)
Declaration
protected abstract void Register(GPUShadowType type, ShadowRegistry registry)
Parameters
Register(ShadowRegistry)
Declaration
public void Register(ShadowRegistry registry)
Parameters
Reserve(FrameId, Camera, Boolean, ref ShadowData, ShadowmapBase.ShadowRequest, UInt32, UInt32, ref VectorArray<ShadowData>, ref VectorArray<ShadowPayload>, List<VisibleLight>)
Declaration
public abstract bool Reserve(FrameId frameId, Camera camera, bool cameraRelativeRendering, ref ShadowData shadowData, ShadowmapBase.ShadowRequest sr, uint width, uint height, ref VectorArray<ShadowData> entries, ref VectorArray<ShadowPayload> payloads, List<VisibleLight> lights)
Parameters
Returns
| Type |
Description |
| System.Boolean |
|
Reserve(FrameId, Camera, Boolean, ref ShadowData, ShadowmapBase.ShadowRequest, UInt32[], UInt32[], ref VectorArray<ShadowData>, ref VectorArray<ShadowPayload>, List<VisibleLight>)
Declaration
public abstract bool Reserve(FrameId frameId, Camera camera, bool cameraRelativeRendering, ref ShadowData shadowData, ShadowmapBase.ShadowRequest sr, uint[] widths, uint[] heights, ref VectorArray<ShadowData> entries, ref VectorArray<ShadowPayload> payloads, List<VisibleLight> lights)
Parameters
Returns
| Type |
Description |
| System.Boolean |
|
ReserveFinalize(FrameId, ref VectorArray<ShadowData>, ref VectorArray<ShadowPayload>)
Declaration
public abstract bool ReserveFinalize(FrameId frameId, ref VectorArray<ShadowData> entries, ref VectorArray<ShadowPayload> payloads)
Parameters
Returns
| Type |
Description |
| System.Boolean |
|
ReserveSlots(ShadowContextStorage)
Declaration
public abstract void ReserveSlots(ShadowContextStorage sc)
Parameters
Update(FrameId, ScriptableRenderContext, CommandBuffer, CullResults, List<VisibleLight>)
Declaration
public abstract void Update(FrameId frameId, ScriptableRenderContext renderContext, CommandBuffer cmd, CullResults cullResults, List<VisibleLight> lights)
Parameters
| Type |
Name |
Description |
| FrameId |
frameId |
|
| ScriptableRenderContext |
renderContext |
|
| CommandBuffer |
cmd |
|
| CullResults |
cullResults |
|
| List<VisibleLight> |
lights |
|