UnityEngine.RenderTargetSetup.StoreActions C# (CSharp) Method

StoreActions() static private method

static private StoreActions ( RenderBuffer buf ) : RenderBufferStoreAction[]
buf RenderBuffer
return RenderBufferStoreAction[]
        internal static RenderBufferStoreAction[] StoreActions(RenderBuffer[] buf)
        {
            RenderBufferStoreAction[] actionArray = new RenderBufferStoreAction[buf.Length];
            for (int i = 0; i < buf.Length; i++)
            {
                actionArray[i] = buf[i].storeAction;
                buf[i].storeAction = RenderBufferStoreAction.Store;
            }
            return actionArray;
        }
    }

Usage Example

 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::StoreActions