scripts
This commit is contained in:
@@ -0,0 +1,168 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,129 @@
|
||||
using System;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
using UnityEngine.Scripting;
|
||||
|
||||
namespace UnityEngine.Experimental.Rendering
|
||||
{
|
||||
// Token: 0x020004D5 RID: 1237
|
||||
[UsedByNativeCode]
|
||||
public struct CullingParameters
|
||||
{
|
||||
// Token: 0x06003BF5 RID: 15349 RVA: 0x0006979C File Offset: 0x0006799C
|
||||
public unsafe float GetLayerCullDistance(int layerIndex)
|
||||
{
|
||||
if (layerIndex < 0 || layerIndex >= 32)
|
||||
{
|
||||
throw new IndexOutOfRangeException("Invalid layer index");
|
||||
}
|
||||
fixed (float* ptr = &this._layerFarCullDistances.FixedElementField)
|
||||
{
|
||||
return ptr[(IntPtr)layerIndex * 4];
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06003BF6 RID: 15350 RVA: 0x000697E0 File Offset: 0x000679E0
|
||||
public unsafe void SetLayerCullDistance(int layerIndex, float distance)
|
||||
{
|
||||
if (layerIndex < 0 || layerIndex >= 32)
|
||||
{
|
||||
throw new IndexOutOfRangeException("Invalid layer index");
|
||||
}
|
||||
fixed (float* ptr = &this._layerFarCullDistances.FixedElementField)
|
||||
{
|
||||
ptr[(IntPtr)layerIndex * 4] = distance;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06003BF7 RID: 15351 RVA: 0x00069824 File Offset: 0x00067A24
|
||||
public unsafe Plane GetCullingPlane(int index)
|
||||
{
|
||||
if (index < 0 || index >= this.cullingPlaneCount || index >= 10)
|
||||
{
|
||||
throw new IndexOutOfRangeException("Invalid plane index");
|
||||
}
|
||||
fixed (float* ptr = &this._cullingPlanes.FixedElementField)
|
||||
{
|
||||
return new Plane(new Vector3(ptr[(IntPtr)(index * 4) * 4], ptr[(IntPtr)(index * 4 + 1) * 4], ptr[(IntPtr)(index * 4 + 2) * 4]), ptr[(IntPtr)(index * 4 + 3) * 4]);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06003BF8 RID: 15352 RVA: 0x000698A0 File Offset: 0x00067AA0
|
||||
public unsafe void SetCullingPlane(int index, Plane plane)
|
||||
{
|
||||
if (index < 0 || index >= this.cullingPlaneCount || index >= 10)
|
||||
{
|
||||
throw new IndexOutOfRangeException("Invalid plane index");
|
||||
}
|
||||
fixed (float* ptr = &this._cullingPlanes.FixedElementField)
|
||||
{
|
||||
ptr[(IntPtr)(index * 4) * 4] = plane.normal.x;
|
||||
ptr[(IntPtr)(index * 4 + 1) * 4] = plane.normal.y;
|
||||
ptr[(IntPtr)(index * 4 + 2) * 4] = plane.normal.z;
|
||||
ptr[(IntPtr)(index * 4 + 3) * 4] = plane.distance;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x04001207 RID: 4615
|
||||
public int isOrthographic;
|
||||
|
||||
// Token: 0x04001208 RID: 4616
|
||||
public LODParameters lodParameters;
|
||||
|
||||
// Token: 0x04001209 RID: 4617
|
||||
private CullingParameters.<_cullingPlanes>__FixedBuffer0 _cullingPlanes;
|
||||
|
||||
// Token: 0x0400120A RID: 4618
|
||||
public int cullingPlaneCount;
|
||||
|
||||
// Token: 0x0400120B RID: 4619
|
||||
public int cullingMask;
|
||||
|
||||
// Token: 0x0400120C RID: 4620
|
||||
private long sceneMask;
|
||||
|
||||
// Token: 0x0400120D RID: 4621
|
||||
private CullingParameters.<_layerFarCullDistances>__FixedBuffer1 _layerFarCullDistances;
|
||||
|
||||
// Token: 0x0400120E RID: 4622
|
||||
private int layerCull;
|
||||
|
||||
// Token: 0x0400120F RID: 4623
|
||||
public Matrix4x4 cullingMatrix;
|
||||
|
||||
// Token: 0x04001210 RID: 4624
|
||||
public Vector3 position;
|
||||
|
||||
// Token: 0x04001211 RID: 4625
|
||||
public float shadowDistance;
|
||||
|
||||
// Token: 0x04001212 RID: 4626
|
||||
private int _cullingFlags;
|
||||
|
||||
// Token: 0x04001213 RID: 4627
|
||||
private int _cameraInstanceID;
|
||||
|
||||
// Token: 0x04001214 RID: 4628
|
||||
public ReflectionProbeSortOptions reflectionProbeSortOptions;
|
||||
|
||||
// Token: 0x020004D6 RID: 1238
|
||||
[UnsafeValueType]
|
||||
[CompilerGenerated]
|
||||
[StructLayout(LayoutKind.Sequential, Size = 160)]
|
||||
public struct <_cullingPlanes>__FixedBuffer0
|
||||
{
|
||||
// Token: 0x04001215 RID: 4629
|
||||
public float FixedElementField;
|
||||
}
|
||||
|
||||
// Token: 0x020004D7 RID: 1239
|
||||
[UnsafeValueType]
|
||||
[CompilerGenerated]
|
||||
[StructLayout(LayoutKind.Sequential, Size = 128)]
|
||||
public struct <_layerFarCullDistances>__FixedBuffer1
|
||||
{
|
||||
// Token: 0x04001216 RID: 4630
|
||||
public float FixedElementField;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
using System;
|
||||
|
||||
namespace UnityEngine.Experimental.Rendering
|
||||
{
|
||||
// Token: 0x020004D8 RID: 1240
|
||||
[Flags]
|
||||
public enum DrawRendererFlags
|
||||
{
|
||||
// Token: 0x04001218 RID: 4632
|
||||
None = 0,
|
||||
// Token: 0x04001219 RID: 4633
|
||||
EnableDynamicBatching = 1,
|
||||
// Token: 0x0400121A RID: 4634
|
||||
EnableInstancing = 2
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,54 @@
|
||||
using System;
|
||||
using System.Runtime.CompilerServices;
|
||||
using UnityEngine.Scripting;
|
||||
|
||||
namespace UnityEngine.Experimental.Rendering
|
||||
{
|
||||
// Token: 0x020000FF RID: 255
|
||||
public struct DrawRendererSettings
|
||||
{
|
||||
// Token: 0x0600123A RID: 4666 RVA: 0x00018360 File Offset: 0x00016560
|
||||
public DrawRendererSettings(CullResults cullResults, Camera camera, ShaderPassName shaderPassName)
|
||||
{
|
||||
this._cullResults = cullResults.cullResults;
|
||||
this.shaderPassName = shaderPassName;
|
||||
this.rendererConfiguration = RendererConfiguration.None;
|
||||
this.flags = DrawRendererFlags.EnableInstancing;
|
||||
this.inputFilter = InputFilter.Default();
|
||||
DrawRendererSettings.InitializeSortSettings(camera, out this.sorting);
|
||||
}
|
||||
|
||||
// Token: 0x17000394 RID: 916
|
||||
// (set) Token: 0x0600123B RID: 4667 RVA: 0x0001839C File Offset: 0x0001659C
|
||||
public CullResults cullResults
|
||||
{
|
||||
set
|
||||
{
|
||||
this._cullResults = value.cullResults;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600123C RID: 4668
|
||||
[GeneratedByOldBindingsGenerator]
|
||||
[MethodImpl(MethodImplOptions.InternalCall)]
|
||||
private static extern void InitializeSortSettings(Camera camera, out DrawRendererSortSettings sortSettings);
|
||||
|
||||
// Token: 0x0400024A RID: 586
|
||||
public DrawRendererSortSettings sorting;
|
||||
|
||||
// Token: 0x0400024B RID: 587
|
||||
public ShaderPassName shaderPassName;
|
||||
|
||||
// Token: 0x0400024C RID: 588
|
||||
public InputFilter inputFilter;
|
||||
|
||||
// Token: 0x0400024D RID: 589
|
||||
public RendererConfiguration rendererConfiguration;
|
||||
|
||||
// Token: 0x0400024E RID: 590
|
||||
public DrawRendererFlags flags;
|
||||
|
||||
// Token: 0x0400024F RID: 591
|
||||
private IntPtr _cullResults;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
using System;
|
||||
|
||||
namespace UnityEngine.Experimental.Rendering
|
||||
{
|
||||
// Token: 0x020004D9 RID: 1241
|
||||
public struct DrawRendererSortSettings
|
||||
{
|
||||
// Token: 0x17000D8D RID: 3469
|
||||
// (get) Token: 0x06003BF9 RID: 15353 RVA: 0x00069944 File Offset: 0x00067B44
|
||||
// (set) Token: 0x06003BFA RID: 15354 RVA: 0x00069968 File Offset: 0x00067B68
|
||||
public bool sortOrthographic
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._sortOrthographic != 0;
|
||||
}
|
||||
set
|
||||
{
|
||||
this._sortOrthographic = ((!value) ? 0 : 1);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0400121B RID: 4635
|
||||
public Matrix4x4 worldToCameraMatrix;
|
||||
|
||||
// Token: 0x0400121C RID: 4636
|
||||
public Vector3 cameraPosition;
|
||||
|
||||
// Token: 0x0400121D RID: 4637
|
||||
public SortFlags flags;
|
||||
|
||||
// Token: 0x0400121E RID: 4638
|
||||
private int _sortOrthographic;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
using System;
|
||||
using UnityEngine.Scripting;
|
||||
|
||||
namespace UnityEngine.Experimental.Rendering
|
||||
{
|
||||
// Token: 0x020004DA RID: 1242
|
||||
[UsedByNativeCode]
|
||||
public struct DrawShadowsSettings
|
||||
{
|
||||
// Token: 0x06003BFB RID: 15355 RVA: 0x00069980 File Offset: 0x00067B80
|
||||
public DrawShadowsSettings(CullResults cullResults, int lightIndex)
|
||||
{
|
||||
this._cullResults = cullResults.cullResults;
|
||||
this.lightIndex = lightIndex;
|
||||
this.splitData.cullingPlaneCount = 0;
|
||||
this.splitData.cullingSphere = Vector4.zero;
|
||||
}
|
||||
|
||||
// Token: 0x17000D8E RID: 3470
|
||||
// (set) Token: 0x06003BFC RID: 15356 RVA: 0x000699B4 File Offset: 0x00067BB4
|
||||
public CullResults cullResults
|
||||
{
|
||||
set
|
||||
{
|
||||
this._cullResults = value.cullResults;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0400121F RID: 4639
|
||||
private IntPtr _cullResults;
|
||||
|
||||
// Token: 0x04001220 RID: 4640
|
||||
public int lightIndex;
|
||||
|
||||
// Token: 0x04001221 RID: 4641
|
||||
public ShadowSplitData splitData;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
using System;
|
||||
|
||||
namespace UnityEngine.Experimental.Rendering
|
||||
{
|
||||
// Token: 0x020004DC RID: 1244
|
||||
public interface IRenderPipeline : IDisposable
|
||||
{
|
||||
// Token: 0x17000D8F RID: 3471
|
||||
// (get) Token: 0x06003C00 RID: 15360
|
||||
bool disposed { get; }
|
||||
|
||||
// Token: 0x06003C01 RID: 15361
|
||||
void Render(ScriptableRenderContext renderContext, Camera[] cameras);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
using System;
|
||||
|
||||
namespace UnityEngine.Experimental.Rendering
|
||||
{
|
||||
// Token: 0x020004DD RID: 1245
|
||||
public interface IRenderPipelineAsset
|
||||
{
|
||||
// Token: 0x06003C02 RID: 15362
|
||||
void DestroyCreatedInstances();
|
||||
|
||||
// Token: 0x06003C03 RID: 15363
|
||||
IRenderPipeline CreatePipeline();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
using System;
|
||||
|
||||
namespace UnityEngine.Experimental.Rendering
|
||||
{
|
||||
// Token: 0x020004DB RID: 1243
|
||||
public struct InputFilter
|
||||
{
|
||||
// Token: 0x06003BFD RID: 15357 RVA: 0x000699C4 File Offset: 0x00067BC4
|
||||
public static InputFilter Default()
|
||||
{
|
||||
return new InputFilter
|
||||
{
|
||||
renderQueueMin = 0,
|
||||
renderQueueMax = 5000,
|
||||
layerMask = -1
|
||||
};
|
||||
}
|
||||
|
||||
// Token: 0x06003BFE RID: 15358 RVA: 0x00069A00 File Offset: 0x00067C00
|
||||
public void SetQueuesOpaque()
|
||||
{
|
||||
this.renderQueueMin = 0;
|
||||
this.renderQueueMax = 2500;
|
||||
}
|
||||
|
||||
// Token: 0x06003BFF RID: 15359 RVA: 0x00069A18 File Offset: 0x00067C18
|
||||
public void SetQueuesTransparent()
|
||||
{
|
||||
this.renderQueueMin = 2501;
|
||||
this.renderQueueMax = 5000;
|
||||
}
|
||||
|
||||
// Token: 0x04001222 RID: 4642
|
||||
public int renderQueueMin;
|
||||
|
||||
// Token: 0x04001223 RID: 4643
|
||||
public int renderQueueMax;
|
||||
|
||||
// Token: 0x04001224 RID: 4644
|
||||
public int layerMask;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
using System;
|
||||
|
||||
namespace UnityEngine.Experimental.Rendering
|
||||
{
|
||||
// Token: 0x020004DE RID: 1246
|
||||
public struct LODParameters
|
||||
{
|
||||
// Token: 0x04001225 RID: 4645
|
||||
public bool isOrthographic;
|
||||
|
||||
// Token: 0x04001226 RID: 4646
|
||||
public Vector3 cameraPosition;
|
||||
|
||||
// Token: 0x04001227 RID: 4647
|
||||
public float fieldOfView;
|
||||
|
||||
// Token: 0x04001228 RID: 4648
|
||||
public float orthoSize;
|
||||
|
||||
// Token: 0x04001229 RID: 4649
|
||||
public int cameraPixelHeight;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
using System;
|
||||
|
||||
namespace UnityEngine.Experimental.Rendering
|
||||
{
|
||||
// Token: 0x020004DF RID: 1247
|
||||
public enum ReflectionProbeSortOptions
|
||||
{
|
||||
// Token: 0x0400122B RID: 4651
|
||||
None,
|
||||
// Token: 0x0400122C RID: 4652
|
||||
Importance,
|
||||
// Token: 0x0400122D RID: 4653
|
||||
Size,
|
||||
// Token: 0x0400122E RID: 4654
|
||||
ImportanceThenSize
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,54 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace UnityEngine.Experimental.Rendering
|
||||
{
|
||||
// Token: 0x020004E1 RID: 1249
|
||||
public abstract class RenderPipelineAsset : ScriptableObject, IRenderPipelineAsset
|
||||
{
|
||||
// Token: 0x06003C05 RID: 15365 RVA: 0x00069A48 File Offset: 0x00067C48
|
||||
public void DestroyCreatedInstances()
|
||||
{
|
||||
foreach (IRenderPipeline renderPipeline in this.m_CreatedPipelines)
|
||||
{
|
||||
renderPipeline.Dispose();
|
||||
}
|
||||
this.m_CreatedPipelines.Clear();
|
||||
}
|
||||
|
||||
// Token: 0x06003C06 RID: 15366 RVA: 0x00069AB0 File Offset: 0x00067CB0
|
||||
public IRenderPipeline CreatePipeline()
|
||||
{
|
||||
IRenderPipeline renderPipeline = this.InternalCreatePipeline();
|
||||
if (renderPipeline != null)
|
||||
{
|
||||
this.m_CreatedPipelines.Add(renderPipeline);
|
||||
}
|
||||
return renderPipeline;
|
||||
}
|
||||
|
||||
// Token: 0x06003C07 RID: 15367
|
||||
protected abstract IRenderPipeline InternalCreatePipeline();
|
||||
|
||||
// Token: 0x06003C08 RID: 15368 RVA: 0x00069AE0 File Offset: 0x00067CE0
|
||||
protected IEnumerable<IRenderPipeline> CreatedInstances()
|
||||
{
|
||||
return this.m_CreatedPipelines;
|
||||
}
|
||||
|
||||
// Token: 0x06003C09 RID: 15369 RVA: 0x00069AFC File Offset: 0x00067CFC
|
||||
private void OnValidate()
|
||||
{
|
||||
this.DestroyCreatedInstances();
|
||||
}
|
||||
|
||||
// Token: 0x06003C0A RID: 15370 RVA: 0x00069B08 File Offset: 0x00067D08
|
||||
private void OnDisable()
|
||||
{
|
||||
this.DestroyCreatedInstances();
|
||||
}
|
||||
|
||||
// Token: 0x04001236 RID: 4662
|
||||
private readonly List<IRenderPipeline> m_CreatedPipelines = new List<IRenderPipeline>();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,58 @@
|
||||
using System;
|
||||
using UnityEngine.Scripting;
|
||||
|
||||
namespace UnityEngine.Experimental.Rendering
|
||||
{
|
||||
// Token: 0x020004E2 RID: 1250
|
||||
public static class RenderPipelineManager
|
||||
{
|
||||
// Token: 0x17000D90 RID: 3472
|
||||
// (get) Token: 0x06003C0B RID: 15371 RVA: 0x00069B14 File Offset: 0x00067D14
|
||||
// (set) Token: 0x06003C0C RID: 15372 RVA: 0x00069B30 File Offset: 0x00067D30
|
||||
public static IRenderPipeline currentPipeline { get; private set; }
|
||||
|
||||
// Token: 0x06003C0D RID: 15373 RVA: 0x00069B38 File Offset: 0x00067D38
|
||||
[RequiredByNativeCode]
|
||||
internal static void CleanupRenderPipeline()
|
||||
{
|
||||
if (RenderPipelineManager.s_CurrentPipelineAsset != null)
|
||||
{
|
||||
RenderPipelineManager.s_CurrentPipelineAsset.DestroyCreatedInstances();
|
||||
}
|
||||
RenderPipelineManager.s_CurrentPipelineAsset = null;
|
||||
RenderPipelineManager.currentPipeline = null;
|
||||
}
|
||||
|
||||
// Token: 0x06003C0E RID: 15374 RVA: 0x00069B5C File Offset: 0x00067D5C
|
||||
[RequiredByNativeCode]
|
||||
private static void DoRenderLoop_Internal(IRenderPipelineAsset pipe, Camera[] cameras, IntPtr loopPtr)
|
||||
{
|
||||
RenderPipelineManager.PrepareRenderPipeline(pipe);
|
||||
if (RenderPipelineManager.currentPipeline != null)
|
||||
{
|
||||
ScriptableRenderContext scriptableRenderContext = new ScriptableRenderContext(loopPtr);
|
||||
RenderPipelineManager.currentPipeline.Render(scriptableRenderContext, cameras);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06003C0F RID: 15375 RVA: 0x00069B94 File Offset: 0x00067D94
|
||||
private static void PrepareRenderPipeline(IRenderPipelineAsset pipe)
|
||||
{
|
||||
if (RenderPipelineManager.s_CurrentPipelineAsset != pipe)
|
||||
{
|
||||
if (RenderPipelineManager.s_CurrentPipelineAsset != null)
|
||||
{
|
||||
RenderPipelineManager.CleanupRenderPipeline();
|
||||
}
|
||||
RenderPipelineManager.s_CurrentPipelineAsset = pipe;
|
||||
}
|
||||
if (RenderPipelineManager.s_CurrentPipelineAsset != null && (RenderPipelineManager.currentPipeline == null || RenderPipelineManager.currentPipeline.disposed))
|
||||
{
|
||||
RenderPipelineManager.currentPipeline = RenderPipelineManager.s_CurrentPipelineAsset.CreatePipeline();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x04001237 RID: 4663
|
||||
private static IRenderPipelineAsset s_CurrentPipelineAsset;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
using System;
|
||||
|
||||
namespace UnityEngine.Experimental.Rendering
|
||||
{
|
||||
// Token: 0x020004E0 RID: 1248
|
||||
[Flags]
|
||||
public enum RendererConfiguration
|
||||
{
|
||||
// Token: 0x04001230 RID: 4656
|
||||
None = 0,
|
||||
// Token: 0x04001231 RID: 4657
|
||||
PerObjectLightProbe = 1,
|
||||
// Token: 0x04001232 RID: 4658
|
||||
PerObjectReflectionProbes = 2,
|
||||
// Token: 0x04001233 RID: 4659
|
||||
PerObjectLightProbeProxyVolume = 4,
|
||||
// Token: 0x04001234 RID: 4660
|
||||
PerObjectLightmaps = 8,
|
||||
// Token: 0x04001235 RID: 4661
|
||||
ProvideLightIndices = 16
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,101 @@
|
||||
using System;
|
||||
using System.Runtime.CompilerServices;
|
||||
using UnityEngine.Rendering;
|
||||
using UnityEngine.Scripting;
|
||||
|
||||
namespace UnityEngine.Experimental.Rendering
|
||||
{
|
||||
// Token: 0x02000100 RID: 256
|
||||
public struct ScriptableRenderContext
|
||||
{
|
||||
// Token: 0x0600123D RID: 4669 RVA: 0x000183AC File Offset: 0x000165AC
|
||||
internal ScriptableRenderContext(IntPtr ptr)
|
||||
{
|
||||
this.m_Ptr = ptr;
|
||||
}
|
||||
|
||||
// Token: 0x0600123E RID: 4670 RVA: 0x000183B8 File Offset: 0x000165B8
|
||||
public void Submit()
|
||||
{
|
||||
this.CheckValid();
|
||||
this.Submit_Internal();
|
||||
}
|
||||
|
||||
// Token: 0x0600123F RID: 4671 RVA: 0x000183C8 File Offset: 0x000165C8
|
||||
public void DrawRenderers(ref DrawRendererSettings settings)
|
||||
{
|
||||
this.CheckValid();
|
||||
this.DrawRenderers_Internal(ref settings);
|
||||
}
|
||||
|
||||
// Token: 0x06001240 RID: 4672 RVA: 0x000183D8 File Offset: 0x000165D8
|
||||
public void DrawShadows(ref DrawShadowsSettings settings)
|
||||
{
|
||||
this.CheckValid();
|
||||
this.DrawShadows_Internal(ref settings);
|
||||
}
|
||||
|
||||
// Token: 0x06001241 RID: 4673 RVA: 0x000183E8 File Offset: 0x000165E8
|
||||
public void ExecuteCommandBuffer(CommandBuffer commandBuffer)
|
||||
{
|
||||
this.CheckValid();
|
||||
this.ExecuteCommandBuffer_Internal(commandBuffer);
|
||||
}
|
||||
|
||||
// Token: 0x06001242 RID: 4674 RVA: 0x000183F8 File Offset: 0x000165F8
|
||||
public void SetupCameraProperties(Camera camera)
|
||||
{
|
||||
this.CheckValid();
|
||||
this.SetupCameraProperties_Internal(camera);
|
||||
}
|
||||
|
||||
// Token: 0x06001243 RID: 4675 RVA: 0x00018408 File Offset: 0x00016608
|
||||
public void DrawSkybox(Camera camera)
|
||||
{
|
||||
this.CheckValid();
|
||||
this.DrawSkybox_Internal(camera);
|
||||
}
|
||||
|
||||
// Token: 0x06001244 RID: 4676
|
||||
[GeneratedByOldBindingsGenerator]
|
||||
[MethodImpl(MethodImplOptions.InternalCall)]
|
||||
private extern void Submit_Internal();
|
||||
|
||||
// Token: 0x06001245 RID: 4677
|
||||
[GeneratedByOldBindingsGenerator]
|
||||
[MethodImpl(MethodImplOptions.InternalCall)]
|
||||
private extern void DrawRenderers_Internal(ref DrawRendererSettings settings);
|
||||
|
||||
// Token: 0x06001246 RID: 4678
|
||||
[GeneratedByOldBindingsGenerator]
|
||||
[MethodImpl(MethodImplOptions.InternalCall)]
|
||||
private extern void DrawShadows_Internal(ref DrawShadowsSettings settings);
|
||||
|
||||
// Token: 0x06001247 RID: 4679
|
||||
[GeneratedByOldBindingsGenerator]
|
||||
[MethodImpl(MethodImplOptions.InternalCall)]
|
||||
private extern void ExecuteCommandBuffer_Internal(CommandBuffer commandBuffer);
|
||||
|
||||
// Token: 0x06001248 RID: 4680
|
||||
[GeneratedByOldBindingsGenerator]
|
||||
[MethodImpl(MethodImplOptions.InternalCall)]
|
||||
private extern void SetupCameraProperties_Internal(Camera camera);
|
||||
|
||||
// Token: 0x06001249 RID: 4681
|
||||
[GeneratedByOldBindingsGenerator]
|
||||
[MethodImpl(MethodImplOptions.InternalCall)]
|
||||
private extern void DrawSkybox_Internal(Camera camera);
|
||||
|
||||
// Token: 0x0600124A RID: 4682 RVA: 0x00018418 File Offset: 0x00016618
|
||||
internal void CheckValid()
|
||||
{
|
||||
if (this.m_Ptr.ToInt64() == 0L)
|
||||
{
|
||||
throw new ArgumentException("Invalid ScriptableRenderContext. This can be caused by allocating a context in user code.");
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x04000250 RID: 592
|
||||
private IntPtr m_Ptr;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
using System;
|
||||
using System.Runtime.CompilerServices;
|
||||
using UnityEngine.Scripting;
|
||||
|
||||
namespace UnityEngine.Experimental.Rendering
|
||||
{
|
||||
// Token: 0x020000FE RID: 254
|
||||
public struct ShaderPassName
|
||||
{
|
||||
// Token: 0x06001238 RID: 4664 RVA: 0x00018350 File Offset: 0x00016550
|
||||
public ShaderPassName(string name)
|
||||
{
|
||||
this.nameIndex = ShaderPassName.Init(name);
|
||||
}
|
||||
|
||||
// Token: 0x06001239 RID: 4665
|
||||
[GeneratedByOldBindingsGenerator]
|
||||
[MethodImpl(MethodImplOptions.InternalCall)]
|
||||
private static extern int Init(string name);
|
||||
|
||||
// Token: 0x04000249 RID: 585
|
||||
private int nameIndex;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,60 @@
|
||||
using System;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
using UnityEngine.Scripting;
|
||||
|
||||
namespace UnityEngine.Experimental.Rendering
|
||||
{
|
||||
// Token: 0x020004E3 RID: 1251
|
||||
[UsedByNativeCode]
|
||||
public struct ShadowSplitData
|
||||
{
|
||||
// Token: 0x06003C10 RID: 15376 RVA: 0x00069BF8 File Offset: 0x00067DF8
|
||||
public unsafe Plane GetCullingPlane(int index)
|
||||
{
|
||||
if (index < 0 || index >= this.cullingPlaneCount || index >= 10)
|
||||
{
|
||||
throw new IndexOutOfRangeException("Invalid plane index");
|
||||
}
|
||||
fixed (float* ptr = &this._cullingPlanes.FixedElementField)
|
||||
{
|
||||
return new Plane(new Vector3(ptr[(IntPtr)(index * 4) * 4], ptr[(IntPtr)(index * 4 + 1) * 4], ptr[(IntPtr)(index * 4 + 2) * 4]), ptr[(IntPtr)(index * 4 + 3) * 4]);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06003C11 RID: 15377 RVA: 0x00069C74 File Offset: 0x00067E74
|
||||
public unsafe void SetCullingPlane(int index, Plane plane)
|
||||
{
|
||||
if (index < 0 || index >= this.cullingPlaneCount || index >= 10)
|
||||
{
|
||||
throw new IndexOutOfRangeException("Invalid plane index");
|
||||
}
|
||||
fixed (float* ptr = &this._cullingPlanes.FixedElementField)
|
||||
{
|
||||
ptr[(IntPtr)(index * 4) * 4] = plane.normal.x;
|
||||
ptr[(IntPtr)(index * 4 + 1) * 4] = plane.normal.y;
|
||||
ptr[(IntPtr)(index * 4 + 2) * 4] = plane.normal.z;
|
||||
ptr[(IntPtr)(index * 4 + 3) * 4] = plane.distance;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x04001239 RID: 4665
|
||||
public int cullingPlaneCount;
|
||||
|
||||
// Token: 0x0400123A RID: 4666
|
||||
private ShadowSplitData.<_cullingPlanes>__FixedBuffer2 _cullingPlanes;
|
||||
|
||||
// Token: 0x0400123B RID: 4667
|
||||
public Vector4 cullingSphere;
|
||||
|
||||
// Token: 0x020004E4 RID: 1252
|
||||
[UnsafeValueType]
|
||||
[CompilerGenerated]
|
||||
[StructLayout(LayoutKind.Sequential, Size = 160)]
|
||||
public struct <_cullingPlanes>__FixedBuffer2
|
||||
{
|
||||
// Token: 0x0400123C RID: 4668
|
||||
public float FixedElementField;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
using System;
|
||||
|
||||
namespace UnityEngine.Experimental.Rendering
|
||||
{
|
||||
// Token: 0x020004E5 RID: 1253
|
||||
[Flags]
|
||||
public enum SortFlags
|
||||
{
|
||||
// Token: 0x0400123E RID: 4670
|
||||
None = 0,
|
||||
// Token: 0x0400123F RID: 4671
|
||||
SortingLayer = 1,
|
||||
// Token: 0x04001240 RID: 4672
|
||||
RenderQueue = 2,
|
||||
// Token: 0x04001241 RID: 4673
|
||||
BackToFront = 4,
|
||||
// Token: 0x04001242 RID: 4674
|
||||
QuantizedFrontToBack = 8,
|
||||
// Token: 0x04001243 RID: 4675
|
||||
OptimizeStateChanges = 16,
|
||||
// Token: 0x04001244 RID: 4676
|
||||
CanvasOrder = 32,
|
||||
// Token: 0x04001245 RID: 4677
|
||||
CommonOpaque = 59,
|
||||
// Token: 0x04001246 RID: 4678
|
||||
CommonTransparent = 23
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,50 @@
|
||||
using System;
|
||||
using System.Runtime.CompilerServices;
|
||||
using UnityEngine.Scripting;
|
||||
|
||||
namespace UnityEngine.Experimental.Rendering
|
||||
{
|
||||
// Token: 0x02000101 RID: 257
|
||||
[UsedByNativeCode]
|
||||
public struct VisibleLight
|
||||
{
|
||||
// Token: 0x17000395 RID: 917
|
||||
// (get) Token: 0x0600124B RID: 4683 RVA: 0x00018438 File Offset: 0x00016638
|
||||
public Light light
|
||||
{
|
||||
get
|
||||
{
|
||||
return VisibleLight.GetLightObject(this.instanceId);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600124C RID: 4684
|
||||
[GeneratedByOldBindingsGenerator]
|
||||
[MethodImpl(MethodImplOptions.InternalCall)]
|
||||
private static extern Light GetLightObject(int instanceId);
|
||||
|
||||
// Token: 0x04000251 RID: 593
|
||||
public LightType lightType;
|
||||
|
||||
// Token: 0x04000252 RID: 594
|
||||
public Color finalColor;
|
||||
|
||||
// Token: 0x04000253 RID: 595
|
||||
public Rect screenRect;
|
||||
|
||||
// Token: 0x04000254 RID: 596
|
||||
public Matrix4x4 localToWorld;
|
||||
|
||||
// Token: 0x04000255 RID: 597
|
||||
public float range;
|
||||
|
||||
// Token: 0x04000256 RID: 598
|
||||
public float spotAngle;
|
||||
|
||||
// Token: 0x04000257 RID: 599
|
||||
private int instanceId;
|
||||
|
||||
// Token: 0x04000258 RID: 600
|
||||
public VisibleLightFlags flags;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
using System;
|
||||
|
||||
namespace UnityEngine.Experimental.Rendering
|
||||
{
|
||||
// Token: 0x020004E6 RID: 1254
|
||||
[Flags]
|
||||
public enum VisibleLightFlags
|
||||
{
|
||||
// Token: 0x04001248 RID: 4680
|
||||
None = 0,
|
||||
// Token: 0x04001249 RID: 4681
|
||||
IntersectsNearPlane = 1,
|
||||
// Token: 0x0400124A RID: 4682
|
||||
IntersectsFarPlane = 2
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,68 @@
|
||||
using System;
|
||||
using System.Runtime.CompilerServices;
|
||||
using UnityEngine.Scripting;
|
||||
|
||||
namespace UnityEngine.Experimental.Rendering
|
||||
{
|
||||
// Token: 0x02000102 RID: 258
|
||||
[UsedByNativeCode]
|
||||
public struct VisibleReflectionProbe
|
||||
{
|
||||
// Token: 0x17000396 RID: 918
|
||||
// (get) Token: 0x0600124D RID: 4685 RVA: 0x00018458 File Offset: 0x00016658
|
||||
public Texture texture
|
||||
{
|
||||
get
|
||||
{
|
||||
return VisibleReflectionProbe.GetTextureObject(this.textureId);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600124E RID: 4686
|
||||
[GeneratedByOldBindingsGenerator]
|
||||
[MethodImpl(MethodImplOptions.InternalCall)]
|
||||
private static extern Texture GetTextureObject(int textureId);
|
||||
|
||||
// Token: 0x17000397 RID: 919
|
||||
// (get) Token: 0x0600124F RID: 4687 RVA: 0x00018478 File Offset: 0x00016678
|
||||
public ReflectionProbe probe
|
||||
{
|
||||
get
|
||||
{
|
||||
return VisibleReflectionProbe.GetReflectionProbeObject(this.instanceId);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06001250 RID: 4688
|
||||
[GeneratedByOldBindingsGenerator]
|
||||
[MethodImpl(MethodImplOptions.InternalCall)]
|
||||
private static extern ReflectionProbe GetReflectionProbeObject(int instanceId);
|
||||
|
||||
// Token: 0x04000259 RID: 601
|
||||
public Bounds bounds;
|
||||
|
||||
// Token: 0x0400025A RID: 602
|
||||
public Matrix4x4 localToWorld;
|
||||
|
||||
// Token: 0x0400025B RID: 603
|
||||
public Vector4 hdr;
|
||||
|
||||
// Token: 0x0400025C RID: 604
|
||||
public Vector3 center;
|
||||
|
||||
// Token: 0x0400025D RID: 605
|
||||
public float blendDistance;
|
||||
|
||||
// Token: 0x0400025E RID: 606
|
||||
public int importance;
|
||||
|
||||
// Token: 0x0400025F RID: 607
|
||||
public int boxProjection;
|
||||
|
||||
// Token: 0x04000260 RID: 608
|
||||
private int instanceId;
|
||||
|
||||
// Token: 0x04000261 RID: 609
|
||||
private int textureId;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user