Files
Dec2017-Script-Dump/UnityEngine/Graphics.cs
T
2026-06-04 11:42:34 +02:00

1117 lines
52 KiB
C#

using System;
using System.Collections.Generic;
using System.Runtime.CompilerServices;
using UnityEngine.Internal;
using UnityEngine.Rendering;
using UnityEngine.Scripting;
namespace UnityEngine
{
// Token: 0x02000058 RID: 88
public sealed class Graphics
{
// Token: 0x060006AA RID: 1706
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
private static extern Array ExtractArrayFromList(object list);
// Token: 0x060006AB RID: 1707 RVA: 0x00008B3C File Offset: 0x00006D3C
[ExcludeFromDocs]
public static void DrawMesh(Mesh mesh, Vector3 position, Quaternion rotation, Material material, int layer, Camera camera, int submeshIndex, MaterialPropertyBlock properties, bool castShadows, bool receiveShadows)
{
bool flag = true;
Graphics.DrawMesh(mesh, position, rotation, material, layer, camera, submeshIndex, properties, castShadows, receiveShadows, flag);
}
// Token: 0x060006AC RID: 1708 RVA: 0x00008B64 File Offset: 0x00006D64
[ExcludeFromDocs]
public static void DrawMesh(Mesh mesh, Vector3 position, Quaternion rotation, Material material, int layer, Camera camera, int submeshIndex, MaterialPropertyBlock properties, bool castShadows)
{
bool flag = true;
bool flag2 = true;
Graphics.DrawMesh(mesh, position, rotation, material, layer, camera, submeshIndex, properties, castShadows, flag2, flag);
}
// Token: 0x060006AD RID: 1709 RVA: 0x00008B8C File Offset: 0x00006D8C
[ExcludeFromDocs]
public static void DrawMesh(Mesh mesh, Vector3 position, Quaternion rotation, Material material, int layer, Camera camera, int submeshIndex, MaterialPropertyBlock properties)
{
bool flag = true;
bool flag2 = true;
bool flag3 = true;
Graphics.DrawMesh(mesh, position, rotation, material, layer, camera, submeshIndex, properties, flag3, flag2, flag);
}
// Token: 0x060006AE RID: 1710 RVA: 0x00008BB4 File Offset: 0x00006DB4
[ExcludeFromDocs]
public static void DrawMesh(Mesh mesh, Vector3 position, Quaternion rotation, Material material, int layer, Camera camera, int submeshIndex)
{
bool flag = true;
bool flag2 = true;
bool flag3 = true;
MaterialPropertyBlock materialPropertyBlock = null;
Graphics.DrawMesh(mesh, position, rotation, material, layer, camera, submeshIndex, materialPropertyBlock, flag3, flag2, flag);
}
// Token: 0x060006AF RID: 1711 RVA: 0x00008BE0 File Offset: 0x00006DE0
[ExcludeFromDocs]
public static void DrawMesh(Mesh mesh, Vector3 position, Quaternion rotation, Material material, int layer, Camera camera)
{
bool flag = true;
bool flag2 = true;
bool flag3 = true;
MaterialPropertyBlock materialPropertyBlock = null;
int num = 0;
Graphics.DrawMesh(mesh, position, rotation, material, layer, camera, num, materialPropertyBlock, flag3, flag2, flag);
}
// Token: 0x060006B0 RID: 1712 RVA: 0x00008C0C File Offset: 0x00006E0C
[ExcludeFromDocs]
public static void DrawMesh(Mesh mesh, Vector3 position, Quaternion rotation, Material material, int layer)
{
bool flag = true;
bool flag2 = true;
bool flag3 = true;
MaterialPropertyBlock materialPropertyBlock = null;
int num = 0;
Camera camera = null;
Graphics.DrawMesh(mesh, position, rotation, material, layer, camera, num, materialPropertyBlock, flag3, flag2, flag);
}
// Token: 0x060006B1 RID: 1713 RVA: 0x00008C3C File Offset: 0x00006E3C
public static void DrawMesh(Mesh mesh, Vector3 position, Quaternion rotation, Material material, int layer, [DefaultValue("null")] Camera camera, [DefaultValue("0")] int submeshIndex, [DefaultValue("null")] MaterialPropertyBlock properties, [DefaultValue("true")] bool castShadows, [DefaultValue("true")] bool receiveShadows, [DefaultValue("true")] bool useLightProbes)
{
Graphics.DrawMesh(mesh, position, rotation, material, layer, camera, submeshIndex, properties, (!castShadows) ? ShadowCastingMode.Off : ShadowCastingMode.On, receiveShadows, null, useLightProbes);
}
// Token: 0x060006B2 RID: 1714 RVA: 0x00008C70 File Offset: 0x00006E70
[ExcludeFromDocs]
public static void DrawMesh(Mesh mesh, Vector3 position, Quaternion rotation, Material material, int layer, Camera camera, int submeshIndex, MaterialPropertyBlock properties, ShadowCastingMode castShadows, bool receiveShadows, Transform probeAnchor)
{
bool flag = true;
Graphics.DrawMesh(mesh, position, rotation, material, layer, camera, submeshIndex, properties, castShadows, receiveShadows, probeAnchor, flag);
}
// Token: 0x060006B3 RID: 1715 RVA: 0x00008C98 File Offset: 0x00006E98
[ExcludeFromDocs]
public static void DrawMesh(Mesh mesh, Vector3 position, Quaternion rotation, Material material, int layer, Camera camera, int submeshIndex, MaterialPropertyBlock properties, ShadowCastingMode castShadows, bool receiveShadows)
{
bool flag = true;
Transform transform = null;
Graphics.DrawMesh(mesh, position, rotation, material, layer, camera, submeshIndex, properties, castShadows, receiveShadows, transform, flag);
}
// Token: 0x060006B4 RID: 1716 RVA: 0x00008CC4 File Offset: 0x00006EC4
[ExcludeFromDocs]
public static void DrawMesh(Mesh mesh, Vector3 position, Quaternion rotation, Material material, int layer, Camera camera, int submeshIndex, MaterialPropertyBlock properties, ShadowCastingMode castShadows)
{
bool flag = true;
Transform transform = null;
bool flag2 = true;
Graphics.DrawMesh(mesh, position, rotation, material, layer, camera, submeshIndex, properties, castShadows, flag2, transform, flag);
}
// Token: 0x060006B5 RID: 1717 RVA: 0x00008CF0 File Offset: 0x00006EF0
public static void DrawMesh(Mesh mesh, Vector3 position, Quaternion rotation, Material material, int layer, Camera camera, int submeshIndex, MaterialPropertyBlock properties, ShadowCastingMode castShadows, [DefaultValue("true")] bool receiveShadows, [DefaultValue("null")] Transform probeAnchor, [DefaultValue("true")] bool useLightProbes)
{
Graphics.DrawMeshImpl(mesh, Matrix4x4.TRS(position, rotation, Vector3.one), material, layer, camera, submeshIndex, properties, castShadows, receiveShadows, probeAnchor, useLightProbes);
}
// Token: 0x060006B6 RID: 1718 RVA: 0x00008D24 File Offset: 0x00006F24
[ExcludeFromDocs]
public static void DrawMesh(Mesh mesh, Matrix4x4 matrix, Material material, int layer, Camera camera, int submeshIndex, MaterialPropertyBlock properties, bool castShadows, bool receiveShadows)
{
bool flag = true;
Graphics.DrawMesh(mesh, matrix, material, layer, camera, submeshIndex, properties, castShadows, receiveShadows, flag);
}
// Token: 0x060006B7 RID: 1719 RVA: 0x00008D48 File Offset: 0x00006F48
[ExcludeFromDocs]
public static void DrawMesh(Mesh mesh, Matrix4x4 matrix, Material material, int layer, Camera camera, int submeshIndex, MaterialPropertyBlock properties, bool castShadows)
{
bool flag = true;
bool flag2 = true;
Graphics.DrawMesh(mesh, matrix, material, layer, camera, submeshIndex, properties, castShadows, flag2, flag);
}
// Token: 0x060006B8 RID: 1720 RVA: 0x00008D70 File Offset: 0x00006F70
[ExcludeFromDocs]
public static void DrawMesh(Mesh mesh, Matrix4x4 matrix, Material material, int layer, Camera camera, int submeshIndex, MaterialPropertyBlock properties)
{
bool flag = true;
bool flag2 = true;
bool flag3 = true;
Graphics.DrawMesh(mesh, matrix, material, layer, camera, submeshIndex, properties, flag3, flag2, flag);
}
// Token: 0x060006B9 RID: 1721 RVA: 0x00008D98 File Offset: 0x00006F98
[ExcludeFromDocs]
public static void DrawMesh(Mesh mesh, Matrix4x4 matrix, Material material, int layer, Camera camera, int submeshIndex)
{
bool flag = true;
bool flag2 = true;
bool flag3 = true;
MaterialPropertyBlock materialPropertyBlock = null;
Graphics.DrawMesh(mesh, matrix, material, layer, camera, submeshIndex, materialPropertyBlock, flag3, flag2, flag);
}
// Token: 0x060006BA RID: 1722 RVA: 0x00008DC0 File Offset: 0x00006FC0
[ExcludeFromDocs]
public static void DrawMesh(Mesh mesh, Matrix4x4 matrix, Material material, int layer, Camera camera)
{
bool flag = true;
bool flag2 = true;
bool flag3 = true;
MaterialPropertyBlock materialPropertyBlock = null;
int num = 0;
Graphics.DrawMesh(mesh, matrix, material, layer, camera, num, materialPropertyBlock, flag3, flag2, flag);
}
// Token: 0x060006BB RID: 1723 RVA: 0x00008DEC File Offset: 0x00006FEC
[ExcludeFromDocs]
public static void DrawMesh(Mesh mesh, Matrix4x4 matrix, Material material, int layer)
{
bool flag = true;
bool flag2 = true;
bool flag3 = true;
MaterialPropertyBlock materialPropertyBlock = null;
int num = 0;
Camera camera = null;
Graphics.DrawMesh(mesh, matrix, material, layer, camera, num, materialPropertyBlock, flag3, flag2, flag);
}
// Token: 0x060006BC RID: 1724 RVA: 0x00008E1C File Offset: 0x0000701C
public static void DrawMesh(Mesh mesh, Matrix4x4 matrix, Material material, int layer, [DefaultValue("null")] Camera camera, [DefaultValue("0")] int submeshIndex, [DefaultValue("null")] MaterialPropertyBlock properties, [DefaultValue("true")] bool castShadows, [DefaultValue("true")] bool receiveShadows, [DefaultValue("true")] bool useLightProbes)
{
Graphics.DrawMeshImpl(mesh, matrix, material, layer, camera, submeshIndex, properties, (!castShadows) ? ShadowCastingMode.Off : ShadowCastingMode.On, receiveShadows, null, useLightProbes);
}
// Token: 0x060006BD RID: 1725 RVA: 0x00008E4C File Offset: 0x0000704C
[ExcludeFromDocs]
public static void DrawMesh(Mesh mesh, Matrix4x4 matrix, Material material, int layer, Camera camera, int submeshIndex, MaterialPropertyBlock properties, ShadowCastingMode castShadows, bool receiveShadows, Transform probeAnchor)
{
bool flag = true;
Graphics.DrawMesh(mesh, matrix, material, layer, camera, submeshIndex, properties, castShadows, receiveShadows, probeAnchor, flag);
}
// Token: 0x060006BE RID: 1726 RVA: 0x00008E74 File Offset: 0x00007074
[ExcludeFromDocs]
public static void DrawMesh(Mesh mesh, Matrix4x4 matrix, Material material, int layer, Camera camera, int submeshIndex, MaterialPropertyBlock properties, ShadowCastingMode castShadows, bool receiveShadows)
{
bool flag = true;
Transform transform = null;
Graphics.DrawMesh(mesh, matrix, material, layer, camera, submeshIndex, properties, castShadows, receiveShadows, transform, flag);
}
// Token: 0x060006BF RID: 1727 RVA: 0x00008E9C File Offset: 0x0000709C
[ExcludeFromDocs]
public static void DrawMesh(Mesh mesh, Matrix4x4 matrix, Material material, int layer, Camera camera, int submeshIndex, MaterialPropertyBlock properties, ShadowCastingMode castShadows)
{
bool flag = true;
Transform transform = null;
bool flag2 = true;
Graphics.DrawMesh(mesh, matrix, material, layer, camera, submeshIndex, properties, castShadows, flag2, transform, flag);
}
// Token: 0x060006C0 RID: 1728 RVA: 0x00008EC4 File Offset: 0x000070C4
public static void DrawMesh(Mesh mesh, Matrix4x4 matrix, Material material, int layer, Camera camera, int submeshIndex, MaterialPropertyBlock properties, ShadowCastingMode castShadows, [DefaultValue("true")] bool receiveShadows, [DefaultValue("null")] Transform probeAnchor, [DefaultValue("true")] bool useLightProbes)
{
Graphics.DrawMeshImpl(mesh, matrix, material, layer, camera, submeshIndex, properties, castShadows, receiveShadows, probeAnchor, useLightProbes);
}
// Token: 0x060006C1 RID: 1729
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
private static extern void Internal_DrawMeshMatrix(ref Internal_DrawMeshMatrixArguments arguments, MaterialPropertyBlock properties, Material material, Mesh mesh, Camera camera);
// Token: 0x060006C2 RID: 1730 RVA: 0x00008EEC File Offset: 0x000070EC
private static void Internal_DrawMeshNow1(Mesh mesh, int subsetIndex, Vector3 position, Quaternion rotation)
{
Graphics.INTERNAL_CALL_Internal_DrawMeshNow1(mesh, subsetIndex, ref position, ref rotation);
}
// Token: 0x060006C3 RID: 1731
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
private static extern void INTERNAL_CALL_Internal_DrawMeshNow1(Mesh mesh, int subsetIndex, ref Vector3 position, ref Quaternion rotation);
// Token: 0x060006C4 RID: 1732 RVA: 0x00008EFC File Offset: 0x000070FC
private static void Internal_DrawMeshNow2(Mesh mesh, int subsetIndex, Matrix4x4 matrix)
{
Graphics.INTERNAL_CALL_Internal_DrawMeshNow2(mesh, subsetIndex, ref matrix);
}
// Token: 0x060006C5 RID: 1733
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
private static extern void INTERNAL_CALL_Internal_DrawMeshNow2(Mesh mesh, int subsetIndex, ref Matrix4x4 matrix);
// Token: 0x060006C6 RID: 1734
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
public static extern void DrawProcedural(MeshTopology topology, int vertexCount, [DefaultValue("1")] int instanceCount);
// Token: 0x060006C7 RID: 1735 RVA: 0x00008F08 File Offset: 0x00007108
[ExcludeFromDocs]
public static void DrawProcedural(MeshTopology topology, int vertexCount)
{
int num = 1;
Graphics.DrawProcedural(topology, vertexCount, num);
}
// Token: 0x060006C8 RID: 1736
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
public static extern void DrawProceduralIndirect(MeshTopology topology, ComputeBuffer bufferWithArgs, [DefaultValue("0")] int argsOffset);
// Token: 0x060006C9 RID: 1737 RVA: 0x00008F20 File Offset: 0x00007120
[ExcludeFromDocs]
public static void DrawProceduralIndirect(MeshTopology topology, ComputeBuffer bufferWithArgs)
{
int num = 0;
Graphics.DrawProceduralIndirect(topology, bufferWithArgs, num);
}
// Token: 0x060006CA RID: 1738
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
private static extern int Internal_GetMaxDrawMeshInstanceCount();
// Token: 0x060006CB RID: 1739 RVA: 0x00008F38 File Offset: 0x00007138
[ExcludeFromDocs]
public static void DrawMeshInstanced(Mesh mesh, int submeshIndex, Material material, Matrix4x4[] matrices, int count, MaterialPropertyBlock properties, ShadowCastingMode castShadows, bool receiveShadows, int layer)
{
Camera camera = null;
Graphics.DrawMeshInstanced(mesh, submeshIndex, material, matrices, count, properties, castShadows, receiveShadows, layer, camera);
}
// Token: 0x060006CC RID: 1740 RVA: 0x00008F5C File Offset: 0x0000715C
[ExcludeFromDocs]
public static void DrawMeshInstanced(Mesh mesh, int submeshIndex, Material material, Matrix4x4[] matrices, int count, MaterialPropertyBlock properties, ShadowCastingMode castShadows, bool receiveShadows)
{
Camera camera = null;
int num = 0;
Graphics.DrawMeshInstanced(mesh, submeshIndex, material, matrices, count, properties, castShadows, receiveShadows, num, camera);
}
// Token: 0x060006CD RID: 1741 RVA: 0x00008F84 File Offset: 0x00007184
[ExcludeFromDocs]
public static void DrawMeshInstanced(Mesh mesh, int submeshIndex, Material material, Matrix4x4[] matrices, int count, MaterialPropertyBlock properties, ShadowCastingMode castShadows)
{
Camera camera = null;
int num = 0;
bool flag = true;
Graphics.DrawMeshInstanced(mesh, submeshIndex, material, matrices, count, properties, castShadows, flag, num, camera);
}
// Token: 0x060006CE RID: 1742 RVA: 0x00008FAC File Offset: 0x000071AC
[ExcludeFromDocs]
public static void DrawMeshInstanced(Mesh mesh, int submeshIndex, Material material, Matrix4x4[] matrices, int count, MaterialPropertyBlock properties)
{
Camera camera = null;
int num = 0;
bool flag = true;
ShadowCastingMode shadowCastingMode = ShadowCastingMode.On;
Graphics.DrawMeshInstanced(mesh, submeshIndex, material, matrices, count, properties, shadowCastingMode, flag, num, camera);
}
// Token: 0x060006CF RID: 1743 RVA: 0x00008FD4 File Offset: 0x000071D4
[ExcludeFromDocs]
public static void DrawMeshInstanced(Mesh mesh, int submeshIndex, Material material, Matrix4x4[] matrices, int count)
{
Camera camera = null;
int num = 0;
bool flag = true;
ShadowCastingMode shadowCastingMode = ShadowCastingMode.On;
MaterialPropertyBlock materialPropertyBlock = null;
Graphics.DrawMeshInstanced(mesh, submeshIndex, material, matrices, count, materialPropertyBlock, shadowCastingMode, flag, num, camera);
}
// Token: 0x060006D0 RID: 1744 RVA: 0x00009000 File Offset: 0x00007200
[ExcludeFromDocs]
public static void DrawMeshInstanced(Mesh mesh, int submeshIndex, Material material, Matrix4x4[] matrices)
{
Camera camera = null;
int num = 0;
bool flag = true;
ShadowCastingMode shadowCastingMode = ShadowCastingMode.On;
MaterialPropertyBlock materialPropertyBlock = null;
int num2 = matrices.Length;
Graphics.DrawMeshInstanced(mesh, submeshIndex, material, matrices, num2, materialPropertyBlock, shadowCastingMode, flag, num, camera);
}
// Token: 0x060006D1 RID: 1745 RVA: 0x00009030 File Offset: 0x00007230
public static void DrawMeshInstanced(Mesh mesh, int submeshIndex, Material material, Matrix4x4[] matrices, [DefaultValue("matrices.Length")] int count, [DefaultValue("null")] MaterialPropertyBlock properties, [DefaultValue("ShadowCastingMode.On")] ShadowCastingMode castShadows, [DefaultValue("true")] bool receiveShadows, [DefaultValue("0")] int layer, [DefaultValue("null")] Camera camera)
{
Graphics.DrawMeshInstancedImpl(mesh, submeshIndex, material, matrices, count, properties, castShadows, receiveShadows, layer, camera);
}
// Token: 0x060006D2 RID: 1746 RVA: 0x00009054 File Offset: 0x00007254
[ExcludeFromDocs]
public static void DrawMeshInstanced(Mesh mesh, int submeshIndex, Material material, List<Matrix4x4> matrices, MaterialPropertyBlock properties, ShadowCastingMode castShadows, bool receiveShadows, int layer)
{
Camera camera = null;
Graphics.DrawMeshInstanced(mesh, submeshIndex, material, matrices, properties, castShadows, receiveShadows, layer, camera);
}
// Token: 0x060006D3 RID: 1747 RVA: 0x00009078 File Offset: 0x00007278
[ExcludeFromDocs]
public static void DrawMeshInstanced(Mesh mesh, int submeshIndex, Material material, List<Matrix4x4> matrices, MaterialPropertyBlock properties, ShadowCastingMode castShadows, bool receiveShadows)
{
Camera camera = null;
int num = 0;
Graphics.DrawMeshInstanced(mesh, submeshIndex, material, matrices, properties, castShadows, receiveShadows, num, camera);
}
// Token: 0x060006D4 RID: 1748 RVA: 0x0000909C File Offset: 0x0000729C
[ExcludeFromDocs]
public static void DrawMeshInstanced(Mesh mesh, int submeshIndex, Material material, List<Matrix4x4> matrices, MaterialPropertyBlock properties, ShadowCastingMode castShadows)
{
Camera camera = null;
int num = 0;
bool flag = true;
Graphics.DrawMeshInstanced(mesh, submeshIndex, material, matrices, properties, castShadows, flag, num, camera);
}
// Token: 0x060006D5 RID: 1749 RVA: 0x000090C0 File Offset: 0x000072C0
[ExcludeFromDocs]
public static void DrawMeshInstanced(Mesh mesh, int submeshIndex, Material material, List<Matrix4x4> matrices, MaterialPropertyBlock properties)
{
Camera camera = null;
int num = 0;
bool flag = true;
ShadowCastingMode shadowCastingMode = ShadowCastingMode.On;
Graphics.DrawMeshInstanced(mesh, submeshIndex, material, matrices, properties, shadowCastingMode, flag, num, camera);
}
// Token: 0x060006D6 RID: 1750 RVA: 0x000090E8 File Offset: 0x000072E8
[ExcludeFromDocs]
public static void DrawMeshInstanced(Mesh mesh, int submeshIndex, Material material, List<Matrix4x4> matrices)
{
Camera camera = null;
int num = 0;
bool flag = true;
ShadowCastingMode shadowCastingMode = ShadowCastingMode.On;
MaterialPropertyBlock materialPropertyBlock = null;
Graphics.DrawMeshInstanced(mesh, submeshIndex, material, matrices, materialPropertyBlock, shadowCastingMode, flag, num, camera);
}
// Token: 0x060006D7 RID: 1751 RVA: 0x00009110 File Offset: 0x00007310
public static void DrawMeshInstanced(Mesh mesh, int submeshIndex, Material material, List<Matrix4x4> matrices, [DefaultValue("null")] MaterialPropertyBlock properties, [DefaultValue("ShadowCastingMode.On")] ShadowCastingMode castShadows, [DefaultValue("true")] bool receiveShadows, [DefaultValue("0")] int layer, [DefaultValue("null")] Camera camera)
{
Graphics.DrawMeshInstancedImpl(mesh, submeshIndex, material, matrices, properties, castShadows, receiveShadows, layer, camera);
}
// Token: 0x060006D8 RID: 1752
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
private static extern void Internal_DrawMeshInstanced(Mesh mesh, int submeshIndex, Material material, Matrix4x4[] matrices, int count, MaterialPropertyBlock properties, ShadowCastingMode castShadows, bool receiveShadows, int layer, Camera camera);
// Token: 0x060006D9 RID: 1753 RVA: 0x00009134 File Offset: 0x00007334
[ExcludeFromDocs]
public static void DrawMeshInstancedIndirect(Mesh mesh, int submeshIndex, Material material, Bounds bounds, ComputeBuffer bufferWithArgs, int argsOffset, MaterialPropertyBlock properties, ShadowCastingMode castShadows, bool receiveShadows, int layer)
{
Camera camera = null;
Graphics.DrawMeshInstancedIndirect(mesh, submeshIndex, material, bounds, bufferWithArgs, argsOffset, properties, castShadows, receiveShadows, layer, camera);
}
// Token: 0x060006DA RID: 1754 RVA: 0x0000915C File Offset: 0x0000735C
[ExcludeFromDocs]
public static void DrawMeshInstancedIndirect(Mesh mesh, int submeshIndex, Material material, Bounds bounds, ComputeBuffer bufferWithArgs, int argsOffset, MaterialPropertyBlock properties, ShadowCastingMode castShadows, bool receiveShadows)
{
Camera camera = null;
int num = 0;
Graphics.DrawMeshInstancedIndirect(mesh, submeshIndex, material, bounds, bufferWithArgs, argsOffset, properties, castShadows, receiveShadows, num, camera);
}
// Token: 0x060006DB RID: 1755 RVA: 0x00009184 File Offset: 0x00007384
[ExcludeFromDocs]
public static void DrawMeshInstancedIndirect(Mesh mesh, int submeshIndex, Material material, Bounds bounds, ComputeBuffer bufferWithArgs, int argsOffset, MaterialPropertyBlock properties, ShadowCastingMode castShadows)
{
Camera camera = null;
int num = 0;
bool flag = true;
Graphics.DrawMeshInstancedIndirect(mesh, submeshIndex, material, bounds, bufferWithArgs, argsOffset, properties, castShadows, flag, num, camera);
}
// Token: 0x060006DC RID: 1756 RVA: 0x000091AC File Offset: 0x000073AC
[ExcludeFromDocs]
public static void DrawMeshInstancedIndirect(Mesh mesh, int submeshIndex, Material material, Bounds bounds, ComputeBuffer bufferWithArgs, int argsOffset, MaterialPropertyBlock properties)
{
Camera camera = null;
int num = 0;
bool flag = true;
ShadowCastingMode shadowCastingMode = ShadowCastingMode.On;
Graphics.DrawMeshInstancedIndirect(mesh, submeshIndex, material, bounds, bufferWithArgs, argsOffset, properties, shadowCastingMode, flag, num, camera);
}
// Token: 0x060006DD RID: 1757 RVA: 0x000091D8 File Offset: 0x000073D8
[ExcludeFromDocs]
public static void DrawMeshInstancedIndirect(Mesh mesh, int submeshIndex, Material material, Bounds bounds, ComputeBuffer bufferWithArgs, int argsOffset)
{
Camera camera = null;
int num = 0;
bool flag = true;
ShadowCastingMode shadowCastingMode = ShadowCastingMode.On;
MaterialPropertyBlock materialPropertyBlock = null;
Graphics.DrawMeshInstancedIndirect(mesh, submeshIndex, material, bounds, bufferWithArgs, argsOffset, materialPropertyBlock, shadowCastingMode, flag, num, camera);
}
// Token: 0x060006DE RID: 1758 RVA: 0x00009204 File Offset: 0x00007404
[ExcludeFromDocs]
public static void DrawMeshInstancedIndirect(Mesh mesh, int submeshIndex, Material material, Bounds bounds, ComputeBuffer bufferWithArgs)
{
Camera camera = null;
int num = 0;
bool flag = true;
ShadowCastingMode shadowCastingMode = ShadowCastingMode.On;
MaterialPropertyBlock materialPropertyBlock = null;
int num2 = 0;
Graphics.DrawMeshInstancedIndirect(mesh, submeshIndex, material, bounds, bufferWithArgs, num2, materialPropertyBlock, shadowCastingMode, flag, num, camera);
}
// Token: 0x060006DF RID: 1759 RVA: 0x00009234 File Offset: 0x00007434
public static void DrawMeshInstancedIndirect(Mesh mesh, int submeshIndex, Material material, Bounds bounds, ComputeBuffer bufferWithArgs, [DefaultValue("0")] int argsOffset, [DefaultValue("null")] MaterialPropertyBlock properties, [DefaultValue("ShadowCastingMode.On")] ShadowCastingMode castShadows, [DefaultValue("true")] bool receiveShadows, [DefaultValue("0")] int layer, [DefaultValue("null")] Camera camera)
{
Graphics.DrawMeshInstancedIndirectImpl(mesh, submeshIndex, material, bounds, bufferWithArgs, argsOffset, properties, castShadows, receiveShadows, layer, camera);
}
// Token: 0x060006E0 RID: 1760 RVA: 0x0000925C File Offset: 0x0000745C
private static void Internal_DrawMeshInstancedIndirect(Mesh mesh, int submeshIndex, Material material, Bounds bounds, ComputeBuffer bufferWithArgs, int argsOffset, MaterialPropertyBlock properties, ShadowCastingMode castShadows, bool receiveShadows, int layer, Camera camera)
{
Graphics.INTERNAL_CALL_Internal_DrawMeshInstancedIndirect(mesh, submeshIndex, material, ref bounds, bufferWithArgs, argsOffset, properties, castShadows, receiveShadows, layer, camera);
}
// Token: 0x060006E1 RID: 1761
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
private static extern void INTERNAL_CALL_Internal_DrawMeshInstancedIndirect(Mesh mesh, int submeshIndex, Material material, ref Bounds bounds, ComputeBuffer bufferWithArgs, int argsOffset, MaterialPropertyBlock properties, ShadowCastingMode castShadows, bool receiveShadows, int layer, Camera camera);
// Token: 0x060006E2 RID: 1762 RVA: 0x00009284 File Offset: 0x00007484
[ExcludeFromDocs]
public static void DrawTexture(Rect screenRect, Texture texture, Material mat)
{
int num = -1;
Graphics.DrawTexture(screenRect, texture, mat, num);
}
// Token: 0x060006E3 RID: 1763 RVA: 0x000092A0 File Offset: 0x000074A0
[ExcludeFromDocs]
public static void DrawTexture(Rect screenRect, Texture texture)
{
int num = -1;
Material material = null;
Graphics.DrawTexture(screenRect, texture, material, num);
}
// Token: 0x060006E4 RID: 1764 RVA: 0x000092BC File Offset: 0x000074BC
public static void DrawTexture(Rect screenRect, Texture texture, [DefaultValue("null")] Material mat, [DefaultValue("-1")] int pass)
{
Graphics.DrawTexture(screenRect, texture, 0, 0, 0, 0, mat, pass);
}
// Token: 0x060006E5 RID: 1765 RVA: 0x000092CC File Offset: 0x000074CC
[ExcludeFromDocs]
public static void DrawTexture(Rect screenRect, Texture texture, int leftBorder, int rightBorder, int topBorder, int bottomBorder, Material mat)
{
int num = -1;
Graphics.DrawTexture(screenRect, texture, leftBorder, rightBorder, topBorder, bottomBorder, mat, num);
}
// Token: 0x060006E6 RID: 1766 RVA: 0x000092EC File Offset: 0x000074EC
[ExcludeFromDocs]
public static void DrawTexture(Rect screenRect, Texture texture, int leftBorder, int rightBorder, int topBorder, int bottomBorder)
{
int num = -1;
Material material = null;
Graphics.DrawTexture(screenRect, texture, leftBorder, rightBorder, topBorder, bottomBorder, material, num);
}
// Token: 0x060006E7 RID: 1767 RVA: 0x00009310 File Offset: 0x00007510
public static void DrawTexture(Rect screenRect, Texture texture, int leftBorder, int rightBorder, int topBorder, int bottomBorder, [DefaultValue("null")] Material mat, [DefaultValue("-1")] int pass)
{
Graphics.DrawTexture(screenRect, texture, new Rect(0f, 0f, 1f, 1f), leftBorder, rightBorder, topBorder, bottomBorder, mat, pass);
}
// Token: 0x060006E8 RID: 1768 RVA: 0x00009348 File Offset: 0x00007548
[ExcludeFromDocs]
public static void DrawTexture(Rect screenRect, Texture texture, Rect sourceRect, int leftBorder, int rightBorder, int topBorder, int bottomBorder, Material mat)
{
int num = -1;
Graphics.DrawTexture(screenRect, texture, sourceRect, leftBorder, rightBorder, topBorder, bottomBorder, mat, num);
}
// Token: 0x060006E9 RID: 1769 RVA: 0x0000936C File Offset: 0x0000756C
[ExcludeFromDocs]
public static void DrawTexture(Rect screenRect, Texture texture, Rect sourceRect, int leftBorder, int rightBorder, int topBorder, int bottomBorder)
{
int num = -1;
Material material = null;
Graphics.DrawTexture(screenRect, texture, sourceRect, leftBorder, rightBorder, topBorder, bottomBorder, material, num);
}
// Token: 0x060006EA RID: 1770 RVA: 0x00009390 File Offset: 0x00007590
public static void DrawTexture(Rect screenRect, Texture texture, Rect sourceRect, int leftBorder, int rightBorder, int topBorder, int bottomBorder, [DefaultValue("null")] Material mat, [DefaultValue("-1")] int pass)
{
Color32 color = new Color32(128, 128, 128, 128);
Graphics.DrawTextureImpl(screenRect, texture, sourceRect, leftBorder, rightBorder, topBorder, bottomBorder, color, mat, pass);
}
// Token: 0x060006EB RID: 1771 RVA: 0x000093D4 File Offset: 0x000075D4
[ExcludeFromDocs]
public static void DrawTexture(Rect screenRect, Texture texture, Rect sourceRect, int leftBorder, int rightBorder, int topBorder, int bottomBorder, Color color, Material mat)
{
int num = -1;
Graphics.DrawTexture(screenRect, texture, sourceRect, leftBorder, rightBorder, topBorder, bottomBorder, color, mat, num);
}
// Token: 0x060006EC RID: 1772 RVA: 0x000093F8 File Offset: 0x000075F8
[ExcludeFromDocs]
public static void DrawTexture(Rect screenRect, Texture texture, Rect sourceRect, int leftBorder, int rightBorder, int topBorder, int bottomBorder, Color color)
{
int num = -1;
Material material = null;
Graphics.DrawTexture(screenRect, texture, sourceRect, leftBorder, rightBorder, topBorder, bottomBorder, color, material, num);
}
// Token: 0x060006ED RID: 1773 RVA: 0x00009420 File Offset: 0x00007620
public static void DrawTexture(Rect screenRect, Texture texture, Rect sourceRect, int leftBorder, int rightBorder, int topBorder, int bottomBorder, Color color, [DefaultValue("null")] Material mat, [DefaultValue("-1")] int pass)
{
Graphics.DrawTextureImpl(screenRect, texture, sourceRect, leftBorder, rightBorder, topBorder, bottomBorder, color, mat, pass);
}
// Token: 0x060006EE RID: 1774
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
internal static extern void Internal_DrawTexture(ref Internal_DrawTextureArguments args);
// Token: 0x060006EF RID: 1775
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
public static extern void ExecuteCommandBuffer(CommandBuffer buffer);
// Token: 0x060006F0 RID: 1776
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
public static extern void Blit(Texture source, RenderTexture dest);
// Token: 0x060006F1 RID: 1777 RVA: 0x00009444 File Offset: 0x00007644
public static void Blit(Texture source, RenderTexture dest, Vector2 scale, Vector2 offset)
{
Graphics.INTERNAL_CALL_Blit(source, dest, ref scale, ref offset);
}
// Token: 0x060006F2 RID: 1778
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
private static extern void INTERNAL_CALL_Blit(Texture source, RenderTexture dest, ref Vector2 scale, ref Vector2 offset);
// Token: 0x060006F3 RID: 1779 RVA: 0x00009454 File Offset: 0x00007654
[ExcludeFromDocs]
public static void Blit(Texture source, RenderTexture dest, Material mat)
{
int num = -1;
Graphics.Blit(source, dest, mat, num);
}
// Token: 0x060006F4 RID: 1780 RVA: 0x00009470 File Offset: 0x00007670
public static void Blit(Texture source, RenderTexture dest, Material mat, [DefaultValue("-1")] int pass)
{
Graphics.Internal_BlitMaterial(source, dest, mat, pass, true, new Vector2(1f, 1f), new Vector2(0f, 0f));
}
// Token: 0x060006F5 RID: 1781 RVA: 0x0000949C File Offset: 0x0000769C
[ExcludeFromDocs]
public static void Blit(Texture source, Material mat)
{
int num = -1;
Graphics.Blit(source, mat, num);
}
// Token: 0x060006F6 RID: 1782 RVA: 0x000094B4 File Offset: 0x000076B4
public static void Blit(Texture source, Material mat, [DefaultValue("-1")] int pass)
{
Graphics.Internal_BlitMaterial(source, null, mat, pass, false, new Vector2(1f, 1f), new Vector2(0f, 0f));
}
// Token: 0x060006F7 RID: 1783 RVA: 0x000094E0 File Offset: 0x000076E0
private static void Internal_BlitMaterial(Texture source, RenderTexture dest, Material mat, int pass, bool setRT, Vector2 scale, Vector2 offset)
{
Graphics.INTERNAL_CALL_Internal_BlitMaterial(source, dest, mat, pass, setRT, ref scale, ref offset);
}
// Token: 0x060006F8 RID: 1784
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
private static extern void INTERNAL_CALL_Internal_BlitMaterial(Texture source, RenderTexture dest, Material mat, int pass, bool setRT, ref Vector2 scale, ref Vector2 offset);
// Token: 0x060006F9 RID: 1785 RVA: 0x000094F4 File Offset: 0x000076F4
public static void BlitMultiTap(Texture source, RenderTexture dest, Material mat, params Vector2[] offsets)
{
Graphics.Internal_BlitMultiTap(source, dest, mat, offsets);
}
// Token: 0x060006FA RID: 1786
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
private static extern void Internal_BlitMultiTap(Texture source, RenderTexture dest, Material mat, Vector2[] offsets);
// Token: 0x060006FB RID: 1787
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
private static extern void CopyTexture_Full(Texture src, Texture dst);
// Token: 0x060006FC RID: 1788
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
private static extern void CopyTexture_Slice_AllMips(Texture src, int srcElement, Texture dst, int dstElement);
// Token: 0x060006FD RID: 1789
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
private static extern void CopyTexture_Slice(Texture src, int srcElement, int srcMip, Texture dst, int dstElement, int dstMip);
// Token: 0x060006FE RID: 1790
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
private static extern void CopyTexture_Region(Texture src, int srcElement, int srcMip, int srcX, int srcY, int srcWidth, int srcHeight, Texture dst, int dstElement, int dstMip, int dstX, int dstY);
// Token: 0x060006FF RID: 1791
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
private static extern bool ConvertTexture_Full(Texture src, Texture dst);
// Token: 0x06000700 RID: 1792
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
private static extern bool ConvertTexture_Slice(Texture src, int srcElement, Texture dst, int dstElement);
// Token: 0x06000701 RID: 1793
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
private static extern void Internal_SetNullRT();
// Token: 0x06000702 RID: 1794
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
private static extern void Internal_SetRTSimple(out RenderBuffer color, out RenderBuffer depth, int mip, CubemapFace face, int depthSlice);
// Token: 0x06000703 RID: 1795
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
private static extern void Internal_SetMRTFullSetup(RenderBuffer[] colorSA, out RenderBuffer depth, int mip, CubemapFace face, int depthSlice, RenderBufferLoadAction[] colorLoadSA, RenderBufferStoreAction[] colorStoreSA, RenderBufferLoadAction depthLoad, RenderBufferStoreAction depthStore);
// Token: 0x06000704 RID: 1796
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
private static extern void Internal_SetMRTSimple(RenderBuffer[] colorSA, out RenderBuffer depth, int mip, CubemapFace face, int depthSlice);
// Token: 0x17000187 RID: 391
// (get) Token: 0x06000705 RID: 1797 RVA: 0x00009500 File Offset: 0x00007700
public static RenderBuffer activeColorBuffer
{
get
{
RenderBuffer renderBuffer;
Graphics.GetActiveColorBuffer(out renderBuffer);
return renderBuffer;
}
}
// Token: 0x17000188 RID: 392
// (get) Token: 0x06000706 RID: 1798 RVA: 0x00009520 File Offset: 0x00007720
public static RenderBuffer activeDepthBuffer
{
get
{
RenderBuffer renderBuffer;
Graphics.GetActiveDepthBuffer(out renderBuffer);
return renderBuffer;
}
}
// Token: 0x06000707 RID: 1799
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
private static extern void GetActiveColorBuffer(out RenderBuffer res);
// Token: 0x06000708 RID: 1800
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
private static extern void GetActiveDepthBuffer(out RenderBuffer res);
// Token: 0x06000709 RID: 1801 RVA: 0x00009540 File Offset: 0x00007740
public static void SetRandomWriteTarget(int index, RenderTexture uav)
{
Graphics.Internal_SetRandomWriteTargetRT(index, uav);
}
// Token: 0x0600070A RID: 1802 RVA: 0x0000954C File Offset: 0x0000774C
[ExcludeFromDocs]
public static void SetRandomWriteTarget(int index, ComputeBuffer uav)
{
bool flag = false;
Graphics.SetRandomWriteTarget(index, uav, flag);
}
// Token: 0x0600070B RID: 1803 RVA: 0x00009564 File Offset: 0x00007764
public static void SetRandomWriteTarget(int index, ComputeBuffer uav, [DefaultValue("false")] bool preserveCounterValue)
{
if (uav == null)
{
throw new ArgumentNullException("uav");
}
if (uav.m_Ptr == IntPtr.Zero)
{
throw new ObjectDisposedException("uav");
}
Graphics.Internal_SetRandomWriteTargetBuffer(index, uav, preserveCounterValue);
}
// Token: 0x0600070C RID: 1804
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
public static extern void ClearRandomWriteTargets();
// Token: 0x0600070D RID: 1805
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
private static extern void Internal_SetRandomWriteTargetRT(int index, RenderTexture uav);
// Token: 0x0600070E RID: 1806
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
private static extern void Internal_SetRandomWriteTargetBuffer(int index, ComputeBuffer uav, bool preserveCounterValue);
// Token: 0x17000189 RID: 393
// (get) Token: 0x0600070F RID: 1807
// (set) Token: 0x06000710 RID: 1808
public static extern GraphicsTier activeTier
{
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
get;
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
set;
}
// Token: 0x06000711 RID: 1809 RVA: 0x000095A0 File Offset: 0x000077A0
internal static void CheckLoadActionValid(RenderBufferLoadAction load, string bufferType)
{
if (load != RenderBufferLoadAction.Load && load != RenderBufferLoadAction.DontCare)
{
throw new ArgumentException(UnityString.Format("Bad {0} LoadAction provided.", new object[] { bufferType }));
}
}
// Token: 0x06000712 RID: 1810 RVA: 0x000095CC File Offset: 0x000077CC
internal static void CheckStoreActionValid(RenderBufferStoreAction store, string bufferType)
{
if (store != RenderBufferStoreAction.Store && store != RenderBufferStoreAction.DontCare)
{
throw new ArgumentException(UnityString.Format("Bad {0} StoreAction provided.", new object[] { bufferType }));
}
}
// Token: 0x06000713 RID: 1811 RVA: 0x000095F8 File Offset: 0x000077F8
internal static void SetRenderTargetImpl(RenderTargetSetup setup)
{
if (setup.color.Length == 0)
{
throw new ArgumentException("Invalid color buffer count for SetRenderTarget");
}
if (setup.color.Length != setup.colorLoad.Length)
{
throw new ArgumentException("Color LoadAction and Buffer arrays have different sizes");
}
if (setup.color.Length != setup.colorStore.Length)
{
throw new ArgumentException("Color StoreAction and Buffer arrays have different sizes");
}
foreach (RenderBufferLoadAction renderBufferLoadAction in setup.colorLoad)
{
Graphics.CheckLoadActionValid(renderBufferLoadAction, "Color");
}
foreach (RenderBufferStoreAction renderBufferStoreAction in setup.colorStore)
{
Graphics.CheckStoreActionValid(renderBufferStoreAction, "Color");
}
Graphics.CheckLoadActionValid(setup.depthLoad, "Depth");
Graphics.CheckStoreActionValid(setup.depthStore, "Depth");
if (setup.cubemapFace < CubemapFace.Unknown || setup.cubemapFace > CubemapFace.NegativeZ)
{
throw new ArgumentException("Bad CubemapFace provided");
}
Graphics.Internal_SetMRTFullSetup(setup.color, out setup.depth, setup.mipLevel, setup.cubemapFace, setup.depthSlice, setup.colorLoad, setup.colorStore, setup.depthLoad, setup.depthStore);
}
// Token: 0x06000714 RID: 1812 RVA: 0x00009750 File Offset: 0x00007950
internal static void SetRenderTargetImpl(RenderBuffer colorBuffer, RenderBuffer depthBuffer, int mipLevel, CubemapFace face, int depthSlice)
{
RenderBuffer renderBuffer = colorBuffer;
RenderBuffer renderBuffer2 = depthBuffer;
Graphics.Internal_SetRTSimple(out renderBuffer, out renderBuffer2, mipLevel, face, depthSlice);
}
// Token: 0x06000715 RID: 1813 RVA: 0x00009770 File Offset: 0x00007970
internal static void SetRenderTargetImpl(RenderTexture rt, int mipLevel, CubemapFace face, int depthSlice)
{
if (rt)
{
Graphics.SetRenderTargetImpl(rt.colorBuffer, rt.depthBuffer, mipLevel, face, depthSlice);
}
else
{
Graphics.Internal_SetNullRT();
}
}
// Token: 0x06000716 RID: 1814 RVA: 0x0000979C File Offset: 0x0000799C
internal static void SetRenderTargetImpl(RenderBuffer[] colorBuffers, RenderBuffer depthBuffer, int mipLevel, CubemapFace face, int depthSlice)
{
RenderBuffer renderBuffer = depthBuffer;
Graphics.Internal_SetMRTSimple(colorBuffers, out renderBuffer, mipLevel, face, depthSlice);
}
// Token: 0x06000717 RID: 1815 RVA: 0x000097B8 File Offset: 0x000079B8
public static void SetRenderTarget(RenderTexture rt)
{
Graphics.SetRenderTargetImpl(rt, 0, CubemapFace.Unknown, 0);
}
// Token: 0x06000718 RID: 1816 RVA: 0x000097C4 File Offset: 0x000079C4
public static void SetRenderTarget(RenderTexture rt, int mipLevel)
{
Graphics.SetRenderTargetImpl(rt, mipLevel, CubemapFace.Unknown, 0);
}
// Token: 0x06000719 RID: 1817 RVA: 0x000097D0 File Offset: 0x000079D0
public static void SetRenderTarget(RenderTexture rt, int mipLevel, CubemapFace face)
{
Graphics.SetRenderTargetImpl(rt, mipLevel, face, 0);
}
// Token: 0x0600071A RID: 1818 RVA: 0x000097DC File Offset: 0x000079DC
public static void SetRenderTarget(RenderTexture rt, int mipLevel, CubemapFace face, int depthSlice)
{
Graphics.SetRenderTargetImpl(rt, mipLevel, face, depthSlice);
}
// Token: 0x0600071B RID: 1819 RVA: 0x000097E8 File Offset: 0x000079E8
public static void SetRenderTarget(RenderBuffer colorBuffer, RenderBuffer depthBuffer)
{
Graphics.SetRenderTargetImpl(colorBuffer, depthBuffer, 0, CubemapFace.Unknown, 0);
}
// Token: 0x0600071C RID: 1820 RVA: 0x000097F8 File Offset: 0x000079F8
public static void SetRenderTarget(RenderBuffer colorBuffer, RenderBuffer depthBuffer, int mipLevel)
{
Graphics.SetRenderTargetImpl(colorBuffer, depthBuffer, mipLevel, CubemapFace.Unknown, 0);
}
// Token: 0x0600071D RID: 1821 RVA: 0x00009808 File Offset: 0x00007A08
public static void SetRenderTarget(RenderBuffer colorBuffer, RenderBuffer depthBuffer, int mipLevel, CubemapFace face)
{
Graphics.SetRenderTargetImpl(colorBuffer, depthBuffer, mipLevel, face, 0);
}
// Token: 0x0600071E RID: 1822 RVA: 0x00009818 File Offset: 0x00007A18
public static void SetRenderTarget(RenderBuffer colorBuffer, RenderBuffer depthBuffer, int mipLevel, CubemapFace face, int depthSlice)
{
Graphics.SetRenderTargetImpl(colorBuffer, depthBuffer, mipLevel, face, depthSlice);
}
// Token: 0x0600071F RID: 1823 RVA: 0x00009828 File Offset: 0x00007A28
public static void SetRenderTarget(RenderBuffer[] colorBuffers, RenderBuffer depthBuffer)
{
Graphics.SetRenderTargetImpl(colorBuffers, depthBuffer, 0, CubemapFace.Unknown, 0);
}
// Token: 0x06000720 RID: 1824 RVA: 0x00009838 File Offset: 0x00007A38
public static void SetRenderTarget(RenderTargetSetup setup)
{
Graphics.SetRenderTargetImpl(setup);
}
// Token: 0x06000721 RID: 1825 RVA: 0x00009844 File Offset: 0x00007A44
public static void CopyTexture(Texture src, Texture dst)
{
Graphics.CopyTexture_Full(src, dst);
}
// Token: 0x06000722 RID: 1826 RVA: 0x00009850 File Offset: 0x00007A50
public static void CopyTexture(Texture src, int srcElement, Texture dst, int dstElement)
{
Graphics.CopyTexture_Slice_AllMips(src, srcElement, dst, dstElement);
}
// Token: 0x06000723 RID: 1827 RVA: 0x0000985C File Offset: 0x00007A5C
public static void CopyTexture(Texture src, int srcElement, int srcMip, Texture dst, int dstElement, int dstMip)
{
Graphics.CopyTexture_Slice(src, srcElement, srcMip, dst, dstElement, dstMip);
}
// Token: 0x06000724 RID: 1828 RVA: 0x0000986C File Offset: 0x00007A6C
public static void CopyTexture(Texture src, int srcElement, int srcMip, int srcX, int srcY, int srcWidth, int srcHeight, Texture dst, int dstElement, int dstMip, int dstX, int dstY)
{
Graphics.CopyTexture_Region(src, srcElement, srcMip, srcX, srcY, srcWidth, srcHeight, dst, dstElement, dstMip, dstX, dstY);
}
// Token: 0x06000725 RID: 1829 RVA: 0x00009894 File Offset: 0x00007A94
public static bool ConvertTexture(Texture src, Texture dst)
{
return Graphics.ConvertTexture_Full(src, dst);
}
// Token: 0x06000726 RID: 1830 RVA: 0x000098B0 File Offset: 0x00007AB0
public static bool ConvertTexture(Texture src, int srcElement, Texture dst, int dstElement)
{
return Graphics.ConvertTexture_Slice(src, srcElement, dst, dstElement);
}
// Token: 0x06000727 RID: 1831 RVA: 0x000098D0 File Offset: 0x00007AD0
private static void DrawMeshImpl(Mesh mesh, Matrix4x4 matrix, Material material, int layer, Camera camera, int submeshIndex, MaterialPropertyBlock properties, ShadowCastingMode castShadows, bool receiveShadows, Transform probeAnchor, bool useLightProbes)
{
Internal_DrawMeshMatrixArguments internal_DrawMeshMatrixArguments = default(Internal_DrawMeshMatrixArguments);
internal_DrawMeshMatrixArguments.layer = layer;
internal_DrawMeshMatrixArguments.submeshIndex = submeshIndex;
internal_DrawMeshMatrixArguments.matrix = matrix;
internal_DrawMeshMatrixArguments.castShadows = (int)castShadows;
internal_DrawMeshMatrixArguments.receiveShadows = ((!receiveShadows) ? 0 : 1);
internal_DrawMeshMatrixArguments.reflectionProbeAnchorInstanceID = ((!(probeAnchor != null)) ? 0 : probeAnchor.GetInstanceID());
internal_DrawMeshMatrixArguments.useLightProbes = useLightProbes;
Graphics.Internal_DrawMeshMatrix(ref internal_DrawMeshMatrixArguments, properties, material, mesh, camera);
}
// Token: 0x06000728 RID: 1832 RVA: 0x00009954 File Offset: 0x00007B54
private static void DrawTextureImpl(Rect screenRect, Texture texture, Rect sourceRect, int leftBorder, int rightBorder, int topBorder, int bottomBorder, Color color, Material mat, int pass)
{
Internal_DrawTextureArguments internal_DrawTextureArguments = default(Internal_DrawTextureArguments);
internal_DrawTextureArguments.screenRect = screenRect;
internal_DrawTextureArguments.sourceRect = sourceRect;
internal_DrawTextureArguments.leftBorder = leftBorder;
internal_DrawTextureArguments.rightBorder = rightBorder;
internal_DrawTextureArguments.topBorder = topBorder;
internal_DrawTextureArguments.bottomBorder = bottomBorder;
internal_DrawTextureArguments.color = color;
internal_DrawTextureArguments.pass = pass;
internal_DrawTextureArguments.texture = texture;
internal_DrawTextureArguments.mat = mat;
Graphics.Internal_DrawTexture(ref internal_DrawTextureArguments);
}
// Token: 0x06000729 RID: 1833 RVA: 0x000099CC File Offset: 0x00007BCC
public static void DrawMeshNow(Mesh mesh, Vector3 position, Quaternion rotation)
{
Graphics.DrawMeshNow(mesh, position, rotation, -1);
}
// Token: 0x0600072A RID: 1834 RVA: 0x000099D8 File Offset: 0x00007BD8
public static void DrawMeshNow(Mesh mesh, Vector3 position, Quaternion rotation, int materialIndex)
{
if (mesh == null)
{
throw new ArgumentNullException("mesh");
}
Graphics.Internal_DrawMeshNow1(mesh, materialIndex, position, rotation);
}
// Token: 0x0600072B RID: 1835 RVA: 0x000099FC File Offset: 0x00007BFC
public static void DrawMeshNow(Mesh mesh, Matrix4x4 matrix)
{
Graphics.DrawMeshNow(mesh, matrix, -1);
}
// Token: 0x0600072C RID: 1836 RVA: 0x00009A08 File Offset: 0x00007C08
public static void DrawMeshNow(Mesh mesh, Matrix4x4 matrix, int materialIndex)
{
if (mesh == null)
{
throw new ArgumentNullException("mesh");
}
Graphics.Internal_DrawMeshNow2(mesh, materialIndex, matrix);
}
// Token: 0x0600072D RID: 1837 RVA: 0x00009A2C File Offset: 0x00007C2C
private static void DrawMeshInstancedImpl(Mesh mesh, int submeshIndex, Material material, Matrix4x4[] matrices, int count, MaterialPropertyBlock properties, ShadowCastingMode castShadows, bool receiveShadows, int layer, Camera camera)
{
if (!SystemInfo.supportsInstancing)
{
throw new InvalidOperationException("Instancing is not supported.");
}
if (mesh == null)
{
throw new ArgumentNullException("mesh");
}
if (submeshIndex < 0 || submeshIndex >= mesh.subMeshCount)
{
throw new ArgumentOutOfRangeException("submeshIndex", "submeshIndex out of range.");
}
if (material == null)
{
throw new ArgumentNullException("material");
}
if (!material.enableInstancing)
{
throw new InvalidOperationException("Material needs to enable instancing for use with DrawMeshInstanced.");
}
if (matrices == null)
{
throw new ArgumentNullException("matrices");
}
if (count < 0 || count > Mathf.Min(Graphics.kMaxDrawMeshInstanceCount, matrices.Length))
{
throw new ArgumentOutOfRangeException("count", string.Format("Count must be in the range of 0 to {0}.", Mathf.Min(Graphics.kMaxDrawMeshInstanceCount, matrices.Length)));
}
if (count > 0)
{
Graphics.Internal_DrawMeshInstanced(mesh, submeshIndex, material, matrices, count, properties, castShadows, receiveShadows, layer, camera);
}
}
// Token: 0x0600072E RID: 1838 RVA: 0x00009B28 File Offset: 0x00007D28
private static void DrawMeshInstancedImpl(Mesh mesh, int submeshIndex, Material material, List<Matrix4x4> matrices, MaterialPropertyBlock properties, ShadowCastingMode castShadows, bool receiveShadows, int layer, Camera camera)
{
if (matrices == null)
{
throw new ArgumentNullException("matrices");
}
if (matrices.Count > Graphics.kMaxDrawMeshInstanceCount)
{
throw new ArgumentOutOfRangeException("matrices", string.Format("Matrix list count must be in the range of 0 to {0}.", Graphics.kMaxDrawMeshInstanceCount));
}
Graphics.DrawMeshInstancedImpl(mesh, submeshIndex, material, (Matrix4x4[])Graphics.ExtractArrayFromList(matrices), matrices.Count, properties, castShadows, receiveShadows, layer, camera);
}
// Token: 0x0600072F RID: 1839 RVA: 0x00009B9C File Offset: 0x00007D9C
private static void DrawMeshInstancedIndirectImpl(Mesh mesh, int submeshIndex, Material material, Bounds bounds, ComputeBuffer bufferWithArgs, int argsOffset, MaterialPropertyBlock properties, ShadowCastingMode castShadows, bool receiveShadows, int layer, Camera camera)
{
if (!SystemInfo.supportsInstancing)
{
throw new InvalidOperationException("Instancing is not supported.");
}
if (mesh == null)
{
throw new ArgumentNullException("mesh");
}
if (submeshIndex < 0 || submeshIndex >= mesh.subMeshCount)
{
throw new ArgumentOutOfRangeException("submeshIndex", "submeshIndex out of range.");
}
if (material == null)
{
throw new ArgumentNullException("material");
}
if (bufferWithArgs == null)
{
throw new ArgumentNullException("bufferWithArgs");
}
Graphics.Internal_DrawMeshInstancedIndirect(mesh, submeshIndex, material, bounds, bufferWithArgs, argsOffset, properties, castShadows, receiveShadows, layer, camera);
}
// Token: 0x0400006E RID: 110
internal static readonly int kMaxDrawMeshInstanceCount = Graphics.Internal_GetMaxDrawMeshInstanceCount();
}
}