118 lines
3.9 KiB
C#
118 lines
3.9 KiB
C#
using System;
|
|
using UnityEngine.Rendering;
|
|
|
|
namespace UnityEngine
|
|
{
|
|
// Token: 0x020003DE RID: 990
|
|
public struct RenderTargetSetup
|
|
{
|
|
// Token: 0x0600381C RID: 14364 RVA: 0x00060430 File Offset: 0x0005E630
|
|
public RenderTargetSetup(RenderBuffer[] color, RenderBuffer depth, int mip, CubemapFace face, RenderBufferLoadAction[] colorLoad, RenderBufferStoreAction[] colorStore, RenderBufferLoadAction depthLoad, RenderBufferStoreAction depthStore)
|
|
{
|
|
this.color = color;
|
|
this.depth = depth;
|
|
this.mipLevel = mip;
|
|
this.cubemapFace = face;
|
|
this.depthSlice = 0;
|
|
this.colorLoad = colorLoad;
|
|
this.colorStore = colorStore;
|
|
this.depthLoad = depthLoad;
|
|
this.depthStore = depthStore;
|
|
}
|
|
|
|
// Token: 0x0600381D RID: 14365 RVA: 0x00060484 File Offset: 0x0005E684
|
|
public RenderTargetSetup(RenderBuffer color, RenderBuffer depth)
|
|
{
|
|
this = new RenderTargetSetup(new RenderBuffer[] { color }, depth);
|
|
}
|
|
|
|
// Token: 0x0600381E RID: 14366 RVA: 0x000604A4 File Offset: 0x0005E6A4
|
|
public RenderTargetSetup(RenderBuffer color, RenderBuffer depth, int mipLevel)
|
|
{
|
|
this = new RenderTargetSetup(new RenderBuffer[] { color }, depth, mipLevel);
|
|
}
|
|
|
|
// Token: 0x0600381F RID: 14367 RVA: 0x000604C4 File Offset: 0x0005E6C4
|
|
public RenderTargetSetup(RenderBuffer color, RenderBuffer depth, int mipLevel, CubemapFace face)
|
|
{
|
|
this = new RenderTargetSetup(new RenderBuffer[] { color }, depth, mipLevel, face);
|
|
}
|
|
|
|
// Token: 0x06003820 RID: 14368 RVA: 0x000604E4 File Offset: 0x0005E6E4
|
|
public RenderTargetSetup(RenderBuffer color, RenderBuffer depth, int mipLevel, CubemapFace face, int depthSlice)
|
|
{
|
|
this = new RenderTargetSetup(new RenderBuffer[] { color }, depth, mipLevel, face);
|
|
this.depthSlice = depthSlice;
|
|
}
|
|
|
|
// Token: 0x06003821 RID: 14369 RVA: 0x0006050C File Offset: 0x0005E70C
|
|
public RenderTargetSetup(RenderBuffer[] color, RenderBuffer depth)
|
|
{
|
|
this = new RenderTargetSetup(color, depth, 0, CubemapFace.Unknown);
|
|
}
|
|
|
|
// Token: 0x06003822 RID: 14370 RVA: 0x0006051C File Offset: 0x0005E71C
|
|
public RenderTargetSetup(RenderBuffer[] color, RenderBuffer depth, int mipLevel)
|
|
{
|
|
this = new RenderTargetSetup(color, depth, mipLevel, CubemapFace.Unknown);
|
|
}
|
|
|
|
// Token: 0x06003823 RID: 14371 RVA: 0x0006052C File Offset: 0x0005E72C
|
|
public RenderTargetSetup(RenderBuffer[] color, RenderBuffer depth, int mip, CubemapFace face)
|
|
{
|
|
this = new RenderTargetSetup(color, depth, mip, face, RenderTargetSetup.LoadActions(color), RenderTargetSetup.StoreActions(color), depth.loadAction, depth.storeAction);
|
|
}
|
|
|
|
// Token: 0x06003824 RID: 14372 RVA: 0x00060560 File Offset: 0x0005E760
|
|
internal static RenderBufferLoadAction[] LoadActions(RenderBuffer[] buf)
|
|
{
|
|
RenderBufferLoadAction[] array = new RenderBufferLoadAction[buf.Length];
|
|
for (int i = 0; i < buf.Length; i++)
|
|
{
|
|
array[i] = buf[i].loadAction;
|
|
buf[i].loadAction = RenderBufferLoadAction.Load;
|
|
}
|
|
return array;
|
|
}
|
|
|
|
// Token: 0x06003825 RID: 14373 RVA: 0x000605B4 File Offset: 0x0005E7B4
|
|
internal static RenderBufferStoreAction[] StoreActions(RenderBuffer[] buf)
|
|
{
|
|
RenderBufferStoreAction[] array = new RenderBufferStoreAction[buf.Length];
|
|
for (int i = 0; i < buf.Length; i++)
|
|
{
|
|
array[i] = buf[i].storeAction;
|
|
buf[i].storeAction = RenderBufferStoreAction.Store;
|
|
}
|
|
return array;
|
|
}
|
|
|
|
// Token: 0x04000D48 RID: 3400
|
|
public RenderBuffer[] color;
|
|
|
|
// Token: 0x04000D49 RID: 3401
|
|
public RenderBuffer depth;
|
|
|
|
// Token: 0x04000D4A RID: 3402
|
|
public int mipLevel;
|
|
|
|
// Token: 0x04000D4B RID: 3403
|
|
public CubemapFace cubemapFace;
|
|
|
|
// Token: 0x04000D4C RID: 3404
|
|
public int depthSlice;
|
|
|
|
// Token: 0x04000D4D RID: 3405
|
|
public RenderBufferLoadAction[] colorLoad;
|
|
|
|
// Token: 0x04000D4E RID: 3406
|
|
public RenderBufferStoreAction[] colorStore;
|
|
|
|
// Token: 0x04000D4F RID: 3407
|
|
public RenderBufferLoadAction depthLoad;
|
|
|
|
// Token: 0x04000D50 RID: 3408
|
|
public RenderBufferStoreAction depthStore;
|
|
}
|
|
}
|