169 lines
7.7 KiB
C#
169 lines
7.7 KiB
C#
using System;
|
|
using System.Runtime.CompilerServices;
|
|
using UnityEngine.Scripting;
|
|
|
|
namespace UnityEngine.Experimental.Rendering
|
|
{
|
|
// Token: 0x02000103 RID: 259
|
|
[UsedByNativeCode]
|
|
public struct CullResults
|
|
{
|
|
// Token: 0x06001251 RID: 4689 RVA: 0x00018498 File Offset: 0x00016698
|
|
public unsafe static bool GetCullingParameters(Camera camera, out CullingParameters cullingParameters)
|
|
{
|
|
return CullResults.GetCullingParameters_Internal(camera, out cullingParameters, sizeof(CullingParameters));
|
|
}
|
|
|
|
// Token: 0x06001252 RID: 4690
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
private static extern bool GetCullingParameters_Internal(Camera camera, out CullingParameters cullingParameters, int managedCullingParametersSize);
|
|
|
|
// Token: 0x06001253 RID: 4691 RVA: 0x000184BC File Offset: 0x000166BC
|
|
internal static void Internal_Cull(ref CullingParameters parameters, ScriptableRenderContext renderLoop, out CullResults results)
|
|
{
|
|
CullResults.INTERNAL_CALL_Internal_Cull(ref parameters, ref renderLoop, out results);
|
|
}
|
|
|
|
// Token: 0x06001254 RID: 4692
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
private static extern void INTERNAL_CALL_Internal_Cull(ref CullingParameters parameters, ref ScriptableRenderContext renderLoop, out CullResults results);
|
|
|
|
// Token: 0x06001255 RID: 4693 RVA: 0x000184C8 File Offset: 0x000166C8
|
|
public static CullResults Cull(ref CullingParameters parameters, ScriptableRenderContext renderLoop)
|
|
{
|
|
CullResults cullResults;
|
|
CullResults.Internal_Cull(ref parameters, renderLoop, out cullResults);
|
|
return cullResults;
|
|
}
|
|
|
|
// Token: 0x06001256 RID: 4694 RVA: 0x000184E8 File Offset: 0x000166E8
|
|
public static bool Cull(Camera camera, ScriptableRenderContext renderLoop, out CullResults results)
|
|
{
|
|
results.cullResults = IntPtr.Zero;
|
|
results.visibleLights = null;
|
|
results.visibleOffscreenVertexLights = null;
|
|
results.visibleReflectionProbes = null;
|
|
CullingParameters cullingParameters;
|
|
bool flag;
|
|
if (!CullResults.GetCullingParameters(camera, out cullingParameters))
|
|
{
|
|
flag = false;
|
|
}
|
|
else
|
|
{
|
|
results = CullResults.Cull(ref cullingParameters, renderLoop);
|
|
flag = true;
|
|
}
|
|
return flag;
|
|
}
|
|
|
|
// Token: 0x06001257 RID: 4695 RVA: 0x00018540 File Offset: 0x00016740
|
|
public bool GetShadowCasterBounds(int lightIndex, out Bounds outBounds)
|
|
{
|
|
return CullResults.GetShadowCasterBounds(this.cullResults, lightIndex, out outBounds);
|
|
}
|
|
|
|
// Token: 0x06001258 RID: 4696
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
private static extern bool GetShadowCasterBounds(IntPtr cullResults, int lightIndex, out Bounds bounds);
|
|
|
|
// Token: 0x06001259 RID: 4697 RVA: 0x00018564 File Offset: 0x00016764
|
|
public int GetLightIndicesCount()
|
|
{
|
|
return CullResults.GetLightIndicesCount(this.cullResults);
|
|
}
|
|
|
|
// Token: 0x0600125A RID: 4698
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
private static extern int GetLightIndicesCount(IntPtr cullResults);
|
|
|
|
// Token: 0x0600125B RID: 4699 RVA: 0x00018584 File Offset: 0x00016784
|
|
public void FillLightIndices(ComputeBuffer computeBuffer)
|
|
{
|
|
CullResults.FillLightIndices(this.cullResults, computeBuffer);
|
|
}
|
|
|
|
// Token: 0x0600125C RID: 4700
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
private static extern void FillLightIndices(IntPtr cullResults, ComputeBuffer computeBuffer);
|
|
|
|
// Token: 0x0600125D RID: 4701 RVA: 0x00018594 File Offset: 0x00016794
|
|
internal int[] GetLightIndexMap()
|
|
{
|
|
return CullResults.GetLightIndexMap(this.cullResults);
|
|
}
|
|
|
|
// Token: 0x0600125E RID: 4702
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
private static extern int[] GetLightIndexMap(IntPtr cullResults);
|
|
|
|
// Token: 0x0600125F RID: 4703 RVA: 0x000185B4 File Offset: 0x000167B4
|
|
internal void SetLightIndexMap(int[] mapping)
|
|
{
|
|
CullResults.SetLightIndexMap(this.cullResults, mapping);
|
|
}
|
|
|
|
// Token: 0x06001260 RID: 4704
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
private static extern void SetLightIndexMap(IntPtr cullResults, int[] mapping);
|
|
|
|
// Token: 0x06001261 RID: 4705 RVA: 0x000185C4 File Offset: 0x000167C4
|
|
public bool ComputeSpotShadowMatricesAndCullingPrimitives(int activeLightIndex, out Matrix4x4 viewMatrix, out Matrix4x4 projMatrix, out ShadowSplitData shadowSplitData)
|
|
{
|
|
return CullResults.ComputeSpotShadowMatricesAndCullingPrimitives(this.cullResults, activeLightIndex, out viewMatrix, out projMatrix, out shadowSplitData);
|
|
}
|
|
|
|
// Token: 0x06001262 RID: 4706
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
private static extern bool ComputeSpotShadowMatricesAndCullingPrimitives(IntPtr cullResults, int activeLightIndex, out Matrix4x4 viewMatrix, out Matrix4x4 projMatrix, out ShadowSplitData shadowSplitData);
|
|
|
|
// Token: 0x06001263 RID: 4707 RVA: 0x000185EC File Offset: 0x000167EC
|
|
public bool ComputePointShadowMatricesAndCullingPrimitives(int activeLightIndex, CubemapFace cubemapFace, float fovBias, out Matrix4x4 viewMatrix, out Matrix4x4 projMatrix, out ShadowSplitData shadowSplitData)
|
|
{
|
|
return CullResults.ComputePointShadowMatricesAndCullingPrimitives(this.cullResults, activeLightIndex, cubemapFace, fovBias, out viewMatrix, out projMatrix, out shadowSplitData);
|
|
}
|
|
|
|
// Token: 0x06001264 RID: 4708
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
private static extern bool ComputePointShadowMatricesAndCullingPrimitives(IntPtr cullResults, int activeLightIndex, CubemapFace cubemapFace, float fovBias, out Matrix4x4 viewMatrix, out Matrix4x4 projMatrix, out ShadowSplitData shadowSplitData);
|
|
|
|
// Token: 0x06001265 RID: 4709 RVA: 0x00018618 File Offset: 0x00016818
|
|
public bool ComputeDirectionalShadowMatricesAndCullingPrimitives(int activeLightIndex, int splitIndex, int splitCount, Vector3 splitRatio, int shadowResolution, float shadowNearPlaneOffset, out Matrix4x4 viewMatrix, out Matrix4x4 projMatrix, out ShadowSplitData shadowSplitData)
|
|
{
|
|
return CullResults.ComputeDirectionalShadowMatricesAndCullingPrimitives(this.cullResults, activeLightIndex, splitIndex, splitCount, splitRatio, shadowResolution, shadowNearPlaneOffset, out viewMatrix, out projMatrix, out shadowSplitData);
|
|
}
|
|
|
|
// Token: 0x06001266 RID: 4710 RVA: 0x00018648 File Offset: 0x00016848
|
|
private static bool ComputeDirectionalShadowMatricesAndCullingPrimitives(IntPtr cullResults, int activeLightIndex, int splitIndex, int splitCount, Vector3 splitRatio, int shadowResolution, float shadowNearPlaneOffset, out Matrix4x4 viewMatrix, out Matrix4x4 projMatrix, out ShadowSplitData shadowSplitData)
|
|
{
|
|
return CullResults.INTERNAL_CALL_ComputeDirectionalShadowMatricesAndCullingPrimitives(cullResults, activeLightIndex, splitIndex, splitCount, ref splitRatio, shadowResolution, shadowNearPlaneOffset, out viewMatrix, out projMatrix, out shadowSplitData);
|
|
}
|
|
|
|
// Token: 0x06001267 RID: 4711
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
private static extern bool INTERNAL_CALL_ComputeDirectionalShadowMatricesAndCullingPrimitives(IntPtr cullResults, int activeLightIndex, int splitIndex, int splitCount, ref Vector3 splitRatio, int shadowResolution, float shadowNearPlaneOffset, out Matrix4x4 viewMatrix, out Matrix4x4 projMatrix, out ShadowSplitData shadowSplitData);
|
|
|
|
// Token: 0x04000262 RID: 610
|
|
public VisibleLight[] visibleLights;
|
|
|
|
// Token: 0x04000263 RID: 611
|
|
public VisibleLight[] visibleOffscreenVertexLights;
|
|
|
|
// Token: 0x04000264 RID: 612
|
|
public VisibleReflectionProbe[] visibleReflectionProbes;
|
|
|
|
// Token: 0x04000265 RID: 613
|
|
internal IntPtr cullResults;
|
|
}
|
|
}
|