UnityEngine.RenderTargetSetup.LoadActions C# (CSharp) Method

LoadActions() static private method

static private LoadActions ( RenderBuffer buf ) : RenderBufferLoadAction[]
buf RenderBuffer
return RenderBufferLoadAction[]
        internal static RenderBufferLoadAction[] LoadActions(RenderBuffer[] buf)
        {
            RenderBufferLoadAction[] actionArray = new RenderBufferLoadAction[buf.Length];
            for (int i = 0; i < buf.Length; i++)
            {
                actionArray[i] = buf[i].loadAction;
                buf[i].loadAction = RenderBufferLoadAction.Load;
            }
            return actionArray;
        }

Usage Example

コード例 #1
0
 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);
 }
All Usage Examples Of UnityEngine.RenderTargetSetup::LoadActions