122 lines
3.0 KiB
C#
122 lines
3.0 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Runtime.InteropServices;
|
|
using Cpp2IlInjected;
|
|
using UnityEngine;
|
|
using UnityEngine.Experimental.Rendering;
|
|
|
|
// Token: 0x02001FF6 RID: 8182
|
|
[Token(Token = "0x2001FF6")]
|
|
[StructLayout(3)]
|
|
public static class FLPHOMJCLFL
|
|
{
|
|
// Token: 0x0600E295 RID: 58005 RVA: 0x0035EAF4 File Offset: 0x0035CCF4
|
|
[Token(Token = "0x600E295")]
|
|
[Address(RVA = "0x197E660", Offset = "0x197D060", VA = "0x18197E660")]
|
|
public static Texture2DArray NDCJJFFPLFP(string MMBOKOLAJFH, IReadOnlyList<Texture2D> BLOGMIIDEJP, Vector2? OJJOHDIFMEG, TextureFormat NBKKPPCAOLL, bool CKLCAEHJGBA)
|
|
{
|
|
int num = 0;
|
|
int num2 = 0;
|
|
Texture2DArray texture2DArray;
|
|
ulong num3;
|
|
texture2DArray.Apply(num2 != 0, num3 != 0UL);
|
|
if ((ulong)num < num3)
|
|
{
|
|
num += num;
|
|
if ((ulong)num == num3)
|
|
{
|
|
goto IL_48;
|
|
}
|
|
num++;
|
|
}
|
|
int num4 = 0;
|
|
if (num >= texture2DArray)
|
|
{
|
|
goto IL_5D;
|
|
}
|
|
if (num < num4)
|
|
{
|
|
num += num;
|
|
if (num == num4)
|
|
{
|
|
goto IL_51;
|
|
}
|
|
num++;
|
|
}
|
|
FLPHOMJCLFL.OHKIPBOMDCG(num, texture2DArray, num);
|
|
num++;
|
|
IL_48:
|
|
texture2DArray += texture2DArray;
|
|
num += 19;
|
|
IL_51:
|
|
texture2DArray += texture2DArray;
|
|
num += 19;
|
|
IL_5D:
|
|
Texture2DArray texture2DArray2;
|
|
texture2DArray2.name = MMBOKOLAJFH;
|
|
return texture2DArray2;
|
|
}
|
|
|
|
// Token: 0x0600E296 RID: 58006 RVA: 0x0035EB70 File Offset: 0x0035CD70
|
|
[Token(Token = "0x600E296")]
|
|
[Address(RVA = "0x197E4F0", Offset = "0x197CEF0", VA = "0x18197E4F0")]
|
|
private static void BPFDNECIFMI(IReadOnlyList<Texture2D> BLOGMIIDEJP, Texture2DArray OAKEMFMMCKA)
|
|
{
|
|
int num = 0;
|
|
num += num;
|
|
num++;
|
|
int num2 = 0;
|
|
if (num < num2)
|
|
{
|
|
num += num;
|
|
if (num == num2)
|
|
{
|
|
goto IL_2D;
|
|
}
|
|
num++;
|
|
}
|
|
FLPHOMJCLFL.OHKIPBOMDCG(num, OAKEMFMMCKA, num);
|
|
num++;
|
|
num += 19;
|
|
IL_2D:
|
|
num += 19;
|
|
}
|
|
|
|
// Token: 0x0600E297 RID: 58007 RVA: 0x0035EBB8 File Offset: 0x0035CDB8
|
|
[Token(Token = "0x600E297")]
|
|
[Address(RVA = "0x197E900", Offset = "0x197D300", VA = "0x18197E900")]
|
|
public static void OHKIPBOMDCG(Texture2D OOEEPIKBHHO, Texture2DArray OAKEMFMMCKA, int EODMCMBIENL)
|
|
{
|
|
int num = 0;
|
|
if (!(OOEEPIKBHHO == num))
|
|
{
|
|
int graphicsFormat = (int)OOEEPIKBHHO.graphicsFormat;
|
|
GraphicsFormat graphicsFormat2 = OAKEMFMMCKA.graphicsFormat;
|
|
if (graphicsFormat == (int)graphicsFormat2)
|
|
{
|
|
int num2 = 0;
|
|
int mipmapCount = OOEEPIKBHHO.mipmapCount;
|
|
if (num2 >= mipmapCount)
|
|
{
|
|
return;
|
|
}
|
|
int num3 = 0;
|
|
Graphics.CopyTexture(OOEEPIKBHHO, num3, num2, OAKEMFMMCKA, EODMCMBIENL, num2);
|
|
num2++;
|
|
}
|
|
object[] array = new object[4];
|
|
GraphicsFormat graphicsFormat3 = OAKEMFMMCKA.graphicsFormat;
|
|
if (graphicsFormat3 != GraphicsFormat.None)
|
|
{
|
|
}
|
|
array[0] = graphicsFormat3;
|
|
GraphicsFormat graphicsFormat4 = OOEEPIKBHHO.graphicsFormat;
|
|
if (graphicsFormat4 != GraphicsFormat.None)
|
|
{
|
|
}
|
|
array[2] = graphicsFormat4;
|
|
Debug.LogError(string.Format("Expected texture size ({0}, {1}) but got ({2}, {3})", array));
|
|
}
|
|
}
|
|
}
|