public RenderTargetSetup(RenderBuffer color, RenderBuffer depth, int mipLevel) { this = new RenderTargetSetup(new RenderBuffer[] { color }, depth, mipLevel); }
static void RenderTargetSetup_colorStore(JSVCall vc) { if (vc.bGet) { UnityEngine.RenderTargetSetup _this = (UnityEngine.RenderTargetSetup)vc.csObj; var result = _this.colorStore; var arrRet = result; for (int i = 0; arrRet != null && i < arrRet.Length; i++) { JSApi.setEnum((int)JSApi.SetType.SaveAndTempTrace, (int)arrRet[i]); JSApi.moveSaveID2Arr(i); } JSApi.setArrayS((int)JSApi.SetType.Rval, (arrRet != null ? arrRet.Length : 0), true); } else { UnityEngine.Rendering.RenderBufferStoreAction[] arg0 = JSDataExchangeMgr.GetJSArg <UnityEngine.Rendering.RenderBufferStoreAction[]>(() => { int jsObjID = JSApi.getObject((int)JSApi.GetType.Arg); int length = JSApi.getArrayLength(jsObjID); var ret = new UnityEngine.Rendering.RenderBufferStoreAction[length]; for (var i = 0; i < length; i++) { JSApi.getElement(jsObjID, i); ret[i] = (UnityEngine.Rendering.RenderBufferStoreAction)JSApi.getEnum((int)JSApi.GetType.SaveAndRemove); } return(ret); }); UnityEngine.RenderTargetSetup _this = (UnityEngine.RenderTargetSetup)vc.csObj; _this.colorStore = arg0; JSMgr.changeJSObj(vc.jsObjID, _this); } }
public RenderTargetSetup(RenderBuffer color, RenderBuffer depth) { this = new RenderTargetSetup(new RenderBuffer[] { color }, depth); }
public RenderTargetSetup(RenderBuffer color, RenderBuffer depth, int mipLevel, CubemapFace face) { this = new RenderTargetSetup(new RenderBuffer[] { color }, depth, mipLevel, face); }
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"); } RenderBufferLoadAction[] colorLoad = setup.colorLoad; for (int i = 0; i < colorLoad.Length; i++) { RenderBufferLoadAction load = colorLoad[i]; Graphics.CheckLoadActionValid(load, "Color"); } RenderBufferStoreAction[] colorStore = setup.colorStore; for (int j = 0; j < colorStore.Length; j++) { RenderBufferStoreAction store = colorStore[j]; Graphics.CheckStoreActionValid(store, "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.colorLoad, setup.colorStore, setup.depthLoad, setup.depthStore); }
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 action in setup.colorLoad) { CheckLoadActionValid(action, "Color"); } foreach (RenderBufferStoreAction action2 in setup.colorStore) { CheckStoreActionValid(action2, "Color"); } CheckLoadActionValid(setup.depthLoad, "Depth"); CheckStoreActionValid(setup.depthStore, "Depth"); if ((setup.cubemapFace != -1) && ((setup.cubemapFace < 0) || (setup.cubemapFace > 5))) { throw new ArgumentException("Bad CubemapFace"); } Internal_SetMRTFullSetup(setup.color, out setup.depth, setup.mipLevel, setup.cubemapFace, setup.colorLoad, setup.colorStore, setup.depthLoad, setup.depthStore); }
static void RenderTargetSetup_depthStore(JSVCall vc) { if (vc.bGet) { UnityEngine.RenderTargetSetup _this = (UnityEngine.RenderTargetSetup)vc.csObj; var result = _this.depthStore; JSApi.setEnum((int)JSApi.SetType.Rval, (int)result); } else { UnityEngine.Rendering.RenderBufferStoreAction arg0 = (UnityEngine.Rendering.RenderBufferStoreAction)JSApi.getEnum((int)JSApi.GetType.Arg); UnityEngine.RenderTargetSetup _this = (UnityEngine.RenderTargetSetup)vc.csObj; _this.depthStore = arg0; JSMgr.changeJSObj(vc.jsObjID, _this); } }
static void RenderTargetSetup_cubemapFace(JSVCall vc) { if (vc.bGet) { UnityEngine.RenderTargetSetup _this = (UnityEngine.RenderTargetSetup)vc.csObj; var result = _this.cubemapFace; JSApi.setEnum((int)JSApi.SetType.Rval, (int)result); } else { UnityEngine.CubemapFace arg0 = (UnityEngine.CubemapFace)JSApi.getEnum((int)JSApi.GetType.Arg); UnityEngine.RenderTargetSetup _this = (UnityEngine.RenderTargetSetup)vc.csObj; _this.cubemapFace = arg0; JSMgr.changeJSObj(vc.jsObjID, _this); } }
static void RenderTargetSetup_mipLevel(JSVCall vc) { if (vc.bGet) { UnityEngine.RenderTargetSetup _this = (UnityEngine.RenderTargetSetup)vc.csObj; var result = _this.mipLevel; JSApi.setInt32((int)JSApi.SetType.Rval, (System.Int32)(result)); } else { System.Int32 arg0 = (System.Int32)JSApi.getInt32((int)JSApi.GetType.Arg); UnityEngine.RenderTargetSetup _this = (UnityEngine.RenderTargetSetup)vc.csObj; _this.mipLevel = arg0; JSMgr.changeJSObj(vc.jsObjID, _this); } }
static void RenderTargetSetup_depth(JSVCall vc) { if (vc.bGet) { UnityEngine.RenderTargetSetup _this = (UnityEngine.RenderTargetSetup)vc.csObj; var result = _this.depth; JSMgr.datax.setObject((int)JSApi.SetType.Rval, result); } else { UnityEngine.RenderBuffer arg0 = (UnityEngine.RenderBuffer)JSMgr.datax.getObject((int)JSApi.GetType.Arg); UnityEngine.RenderTargetSetup _this = (UnityEngine.RenderTargetSetup)vc.csObj; _this.depth = arg0; JSMgr.changeJSObj(vc.jsObjID, _this); } }
internal static void SetRenderTargetImpl(RenderTargetSetup setup) { if (setup.color.Length == 0) { Debug.LogError("Invalid color buffer count for SetRenderTarget"); return; } if (setup.color.Length != setup.colorLoad.Length) { Debug.LogError("Color LoadAction and Buffer arrays have different sizes"); return; } if (setup.color.Length != setup.colorStore.Length) { Debug.LogError("Color StoreAction and Buffer arrays have different sizes"); return; } Graphics.Internal_SetMRTFullSetup(setup.color, out setup.depth, setup.mipLevel, setup.cubemapFace, setup.colorLoad, setup.colorStore, setup.depthLoad, setup.depthStore); }
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 (var load in setup.colorLoad) { CheckLoadActionValid(load, "Color"); } foreach (var store in setup.colorStore) { CheckStoreActionValid(store, "Color"); } CheckLoadActionValid(setup.depthLoad, "Depth"); CheckStoreActionValid(setup.depthStore, "Depth"); if ((int)setup.cubemapFace < (int)CubemapFace.Unknown || (int)setup.cubemapFace > (int)CubemapFace.NegativeZ) { throw new ArgumentException("Bad CubemapFace provided"); } Internal_SetMRTFullSetup( setup.color, setup.depth, setup.mipLevel, setup.cubemapFace, setup.depthSlice, setup.colorLoad, setup.colorStore, setup.depthLoad, setup.depthStore ); }
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); }
public RenderTargetSetup(RenderBuffer[] color, RenderBuffer depth) { this = new RenderTargetSetup(color, depth, 0, CubemapFace.Unknown); }
public RenderTargetSetup(RenderBuffer[] color, RenderBuffer depth, int mipLevel) { this = new RenderTargetSetup(color, depth, mipLevel, CubemapFace.Unknown); }
public RenderTargetSetup(RenderBuffer[] color, RenderBuffer depth, int mipLevel, CubemapFace face) { this = new RenderTargetSetup(color, depth, mipLevel, (int)face); }
/// <summary> /// <para>Constructs RenderTargetSetup.</para> /// </summary> /// <param name="color">Color Buffer(s) to set.</param> /// <param name="depth">Depth Buffer to set.</param> /// <param name="mipLevel">Mip Level to render to.</param> /// <param name="face">Cubemap face to render to.</param> /// <param name="mip"></param> 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); }
/// <summary> /// <para>Constructs RenderTargetSetup.</para> /// </summary> /// <param name="color">Color Buffer(s) to set.</param> /// <param name="depth">Depth Buffer to set.</param> /// <param name="mipLevel">Mip Level to render to.</param> /// <param name="face">Cubemap face to render to.</param> /// <param name="mip"></param> public RenderTargetSetup(RenderBuffer[] color, RenderBuffer depth, int mipLevel) { this = new RenderTargetSetup(color, depth, mipLevel, CubemapFace.Unknown); }
internal static void SetRenderTarget(RenderTargetSetup setup) { Graphics.SetRenderTargetImpl(setup); }
static public int constructor(IntPtr l) { try { int argc = LuaDLL.lua_gettop(l); UnityEngine.RenderTargetSetup o; if (matchType(l, argc, 2, typeof(UnityEngine.RenderBuffer), typeof(UnityEngine.RenderBuffer))) { UnityEngine.RenderBuffer a1; checkValueType(l, 2, out a1); UnityEngine.RenderBuffer a2; checkValueType(l, 3, out a2); o = new UnityEngine.RenderTargetSetup(a1, a2); pushValue(l, true); pushValue(l, o); return(2); } else if (matchType(l, argc, 2, typeof(UnityEngine.RenderBuffer), typeof(UnityEngine.RenderBuffer), typeof(int))) { UnityEngine.RenderBuffer a1; checkValueType(l, 2, out a1); UnityEngine.RenderBuffer a2; checkValueType(l, 3, out a2); System.Int32 a3; checkType(l, 4, out a3); o = new UnityEngine.RenderTargetSetup(a1, a2, a3); pushValue(l, true); pushValue(l, o); return(2); } else if (matchType(l, argc, 2, typeof(UnityEngine.RenderBuffer), typeof(UnityEngine.RenderBuffer), typeof(int), typeof(UnityEngine.CubemapFace))) { UnityEngine.RenderBuffer a1; checkValueType(l, 2, out a1); UnityEngine.RenderBuffer a2; checkValueType(l, 3, out a2); System.Int32 a3; checkType(l, 4, out a3); UnityEngine.CubemapFace a4; checkEnum(l, 5, out a4); o = new UnityEngine.RenderTargetSetup(a1, a2, a3, a4); pushValue(l, true); pushValue(l, o); return(2); } else if (matchType(l, argc, 2, typeof(UnityEngine.RenderBuffer[]), typeof(UnityEngine.RenderBuffer))) { UnityEngine.RenderBuffer[] a1; checkType(l, 2, out a1); UnityEngine.RenderBuffer a2; checkValueType(l, 3, out a2); o = new UnityEngine.RenderTargetSetup(a1, a2); pushValue(l, true); pushValue(l, o); return(2); } else if (matchType(l, argc, 2, typeof(UnityEngine.RenderBuffer[]), typeof(UnityEngine.RenderBuffer), typeof(int))) { UnityEngine.RenderBuffer[] a1; checkType(l, 2, out a1); UnityEngine.RenderBuffer a2; checkValueType(l, 3, out a2); System.Int32 a3; checkType(l, 4, out a3); o = new UnityEngine.RenderTargetSetup(a1, a2, a3); pushValue(l, true); pushValue(l, o); return(2); } else if (matchType(l, argc, 2, typeof(UnityEngine.RenderBuffer[]), typeof(UnityEngine.RenderBuffer), typeof(int), typeof(UnityEngine.CubemapFace))) { UnityEngine.RenderBuffer[] a1; checkType(l, 2, out a1); UnityEngine.RenderBuffer a2; checkValueType(l, 3, out a2); System.Int32 a3; checkType(l, 4, out a3); UnityEngine.CubemapFace a4; checkEnum(l, 5, out a4); o = new UnityEngine.RenderTargetSetup(a1, a2, a3, a4); pushValue(l, true); pushValue(l, o); return(2); } return(error(l, "New object failed.")); } catch (Exception e) { return(error(l, e)); } }
internal RenderTargetSetup(RenderBuffer[] color, RenderBuffer depth, int mip, int face) { this = new RenderTargetSetup(color, depth, mip, face, RenderTargetSetup.LoadActions(color), RenderTargetSetup.StoreActions(color), depth.loadAction, depth.storeAction); }
/// <summary> /// <para>Sets current render target.</para> /// </summary> /// <param name="setup"></param> /// <param name="rt"></param> /// <param name="mipLevel"></param> /// <param name="face"></param> /// <param name="colorBuffer"></param> /// <param name="depthBuffer"></param> /// <param name="colorBuffers"></param> public static void SetRenderTarget(RenderTargetSetup setup) { Graphics.SetRenderTargetImpl(setup); }
public static void SetRenderTarget(RenderTargetSetup setup) { SetRenderTargetImpl(setup); }
public RenderTargetSetup(RenderBuffer[] color, RenderBuffer depth, int mipLevel) { this = new RenderTargetSetup(color, depth, mipLevel, -1); }
static public int constructor(IntPtr l) { try { int argc = LuaDLL.lua_gettop(l); UnityEngine.RenderTargetSetup o; if (argc == 9) { UnityEngine.RenderBuffer[] a1; checkArray(l, 2, out a1); UnityEngine.RenderBuffer a2; checkValueType(l, 3, out a2); System.Int32 a3; checkType(l, 4, out a3); UnityEngine.CubemapFace a4; checkEnum(l, 5, out a4); UnityEngine.Rendering.RenderBufferLoadAction[] a5; checkArray(l, 6, out a5); UnityEngine.Rendering.RenderBufferStoreAction[] a6; checkArray(l, 7, out a6); UnityEngine.Rendering.RenderBufferLoadAction a7; checkEnum(l, 8, out a7); UnityEngine.Rendering.RenderBufferStoreAction a8; checkEnum(l, 9, out a8); o = new UnityEngine.RenderTargetSetup(a1, a2, a3, a4, a5, a6, a7, a8); pushValue(l, true); pushValue(l, o); return(2); } else if (matchType(l, argc, 2, typeof(UnityEngine.RenderBuffer), typeof(UnityEngine.RenderBuffer))) { UnityEngine.RenderBuffer a1; checkValueType(l, 2, out a1); UnityEngine.RenderBuffer a2; checkValueType(l, 3, out a2); o = new UnityEngine.RenderTargetSetup(a1, a2); pushValue(l, true); pushValue(l, o); return(2); } else if (matchType(l, argc, 2, typeof(UnityEngine.RenderBuffer), typeof(UnityEngine.RenderBuffer), typeof(int))) { UnityEngine.RenderBuffer a1; checkValueType(l, 2, out a1); UnityEngine.RenderBuffer a2; checkValueType(l, 3, out a2); System.Int32 a3; checkType(l, 4, out a3); o = new UnityEngine.RenderTargetSetup(a1, a2, a3); pushValue(l, true); pushValue(l, o); return(2); } else if (matchType(l, argc, 2, typeof(UnityEngine.RenderBuffer), typeof(UnityEngine.RenderBuffer), typeof(int), typeof(UnityEngine.CubemapFace))) { UnityEngine.RenderBuffer a1; checkValueType(l, 2, out a1); UnityEngine.RenderBuffer a2; checkValueType(l, 3, out a2); System.Int32 a3; checkType(l, 4, out a3); UnityEngine.CubemapFace a4; checkEnum(l, 5, out a4); o = new UnityEngine.RenderTargetSetup(a1, a2, a3, a4); pushValue(l, true); pushValue(l, o); return(2); } else if (argc == 6) { UnityEngine.RenderBuffer a1; checkValueType(l, 2, out a1); UnityEngine.RenderBuffer a2; checkValueType(l, 3, out a2); System.Int32 a3; checkType(l, 4, out a3); UnityEngine.CubemapFace a4; checkEnum(l, 5, out a4); System.Int32 a5; checkType(l, 6, out a5); o = new UnityEngine.RenderTargetSetup(a1, a2, a3, a4, a5); pushValue(l, true); pushValue(l, o); return(2); } else if (matchType(l, argc, 2, typeof(UnityEngine.RenderBuffer[]), typeof(UnityEngine.RenderBuffer))) { UnityEngine.RenderBuffer[] a1; checkArray(l, 2, out a1); UnityEngine.RenderBuffer a2; checkValueType(l, 3, out a2); o = new UnityEngine.RenderTargetSetup(a1, a2); pushValue(l, true); pushValue(l, o); return(2); } else if (matchType(l, argc, 2, typeof(UnityEngine.RenderBuffer[]), typeof(UnityEngine.RenderBuffer), typeof(int))) { UnityEngine.RenderBuffer[] a1; checkArray(l, 2, out a1); UnityEngine.RenderBuffer a2; checkValueType(l, 3, out a2); System.Int32 a3; checkType(l, 4, out a3); o = new UnityEngine.RenderTargetSetup(a1, a2, a3); pushValue(l, true); pushValue(l, o); return(2); } else if (matchType(l, argc, 2, typeof(UnityEngine.RenderBuffer[]), typeof(UnityEngine.RenderBuffer), typeof(int), typeof(UnityEngine.CubemapFace))) { UnityEngine.RenderBuffer[] a1; checkArray(l, 2, out a1); UnityEngine.RenderBuffer a2; checkValueType(l, 3, out a2); System.Int32 a3; checkType(l, 4, out a3); UnityEngine.CubemapFace a4; checkEnum(l, 5, out a4); o = new UnityEngine.RenderTargetSetup(a1, a2, a3, a4); pushValue(l, true); pushValue(l, o); return(2); } return(error(l, "New object failed.")); } catch (Exception e) { return(error(l, e)); } }
public RenderTargetSetup(RenderBuffer[] color, RenderBuffer depth) { this = new RenderTargetSetup(color, depth, 0, -1); }
/// <summary> /// <para>Constructs RenderTargetSetup.</para> /// </summary> /// <param name="color">Color Buffer(s) to set.</param> /// <param name="depth">Depth Buffer to set.</param> /// <param name="mipLevel">Mip Level to render to.</param> /// <param name="face">Cubemap face to render to.</param> /// <param name="mip"></param> public RenderTargetSetup(RenderBuffer[] color, RenderBuffer depth) { this = new RenderTargetSetup(color, depth, 0, CubemapFace.Unknown); }
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 load in setup.colorLoad) Graphics.CheckLoadActionValid(load, "Color"); foreach (RenderBufferStoreAction store in setup.colorStore) Graphics.CheckStoreActionValid(store, "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.colorLoad, setup.colorStore, setup.depthLoad, setup.depthStore); }
public static int constructor(IntPtr l) { try { int argc = LuaDLL.lua_gettop(l); UnityEngine.RenderTargetSetup o; if(matchType(l,argc,2,typeof(UnityEngine.RenderBuffer),typeof(UnityEngine.RenderBuffer))){ UnityEngine.RenderBuffer a1; checkValueType(l,2,out a1); UnityEngine.RenderBuffer a2; checkValueType(l,3,out a2); o=new UnityEngine.RenderTargetSetup(a1,a2); pushValue(l,true); pushValue(l,o); return 2; } else if(matchType(l,argc,2,typeof(UnityEngine.RenderBuffer),typeof(UnityEngine.RenderBuffer),typeof(int))){ UnityEngine.RenderBuffer a1; checkValueType(l,2,out a1); UnityEngine.RenderBuffer a2; checkValueType(l,3,out a2); System.Int32 a3; checkType(l,4,out a3); o=new UnityEngine.RenderTargetSetup(a1,a2,a3); pushValue(l,true); pushValue(l,o); return 2; } else if(matchType(l,argc,2,typeof(UnityEngine.RenderBuffer),typeof(UnityEngine.RenderBuffer),typeof(int),typeof(UnityEngine.CubemapFace))){ UnityEngine.RenderBuffer a1; checkValueType(l,2,out a1); UnityEngine.RenderBuffer a2; checkValueType(l,3,out a2); System.Int32 a3; checkType(l,4,out a3); UnityEngine.CubemapFace a4; checkEnum(l,5,out a4); o=new UnityEngine.RenderTargetSetup(a1,a2,a3,a4); pushValue(l,true); pushValue(l,o); return 2; } else if(matchType(l,argc,2,typeof(UnityEngine.RenderBuffer[]),typeof(UnityEngine.RenderBuffer))){ UnityEngine.RenderBuffer[] a1; checkType(l,2,out a1); UnityEngine.RenderBuffer a2; checkValueType(l,3,out a2); o=new UnityEngine.RenderTargetSetup(a1,a2); pushValue(l,true); pushValue(l,o); return 2; } else if(matchType(l,argc,2,typeof(UnityEngine.RenderBuffer[]),typeof(UnityEngine.RenderBuffer),typeof(int))){ UnityEngine.RenderBuffer[] a1; checkType(l,2,out a1); UnityEngine.RenderBuffer a2; checkValueType(l,3,out a2); System.Int32 a3; checkType(l,4,out a3); o=new UnityEngine.RenderTargetSetup(a1,a2,a3); pushValue(l,true); pushValue(l,o); return 2; } else if(matchType(l,argc,2,typeof(UnityEngine.RenderBuffer[]),typeof(UnityEngine.RenderBuffer),typeof(int),typeof(UnityEngine.CubemapFace))){ UnityEngine.RenderBuffer[] a1; checkType(l,2,out a1); UnityEngine.RenderBuffer a2; checkValueType(l,3,out a2); System.Int32 a3; checkType(l,4,out a3); UnityEngine.CubemapFace a4; checkEnum(l,5,out a4); o=new UnityEngine.RenderTargetSetup(a1,a2,a3,a4); pushValue(l,true); pushValue(l,o); return 2; } return error(l,"New object failed."); } catch(Exception e) { return error(l,e); } }
static public int constructor(IntPtr l) { try { int argc = LuaDLL.lua_gettop(l); UnityEngine.RenderTargetSetup o; if(argc==9){ UnityEngine.RenderBuffer[] a1; checkArray(l,2,out a1); UnityEngine.RenderBuffer a2; checkValueType(l,3,out a2); System.Int32 a3; checkType(l,4,out a3); UnityEngine.CubemapFace a4; checkEnum(l,5,out a4); UnityEngine.Rendering.RenderBufferLoadAction[] a5; checkArray(l,6,out a5); UnityEngine.Rendering.RenderBufferStoreAction[] a6; checkArray(l,7,out a6); UnityEngine.Rendering.RenderBufferLoadAction a7; checkEnum(l,8,out a7); UnityEngine.Rendering.RenderBufferStoreAction a8; checkEnum(l,9,out a8); o=new UnityEngine.RenderTargetSetup(a1,a2,a3,a4,a5,a6,a7,a8); pushValue(l,true); pushValue(l,o); return 2; } else if(matchType(l,argc,2,typeof(UnityEngine.RenderBuffer),typeof(UnityEngine.RenderBuffer))){ UnityEngine.RenderBuffer a1; checkValueType(l,2,out a1); UnityEngine.RenderBuffer a2; checkValueType(l,3,out a2); o=new UnityEngine.RenderTargetSetup(a1,a2); pushValue(l,true); pushValue(l,o); return 2; } else if(matchType(l,argc,2,typeof(UnityEngine.RenderBuffer),typeof(UnityEngine.RenderBuffer),typeof(int))){ UnityEngine.RenderBuffer a1; checkValueType(l,2,out a1); UnityEngine.RenderBuffer a2; checkValueType(l,3,out a2); System.Int32 a3; checkType(l,4,out a3); o=new UnityEngine.RenderTargetSetup(a1,a2,a3); pushValue(l,true); pushValue(l,o); return 2; } else if(matchType(l,argc,2,typeof(UnityEngine.RenderBuffer),typeof(UnityEngine.RenderBuffer),typeof(int),typeof(UnityEngine.CubemapFace))){ UnityEngine.RenderBuffer a1; checkValueType(l,2,out a1); UnityEngine.RenderBuffer a2; checkValueType(l,3,out a2); System.Int32 a3; checkType(l,4,out a3); UnityEngine.CubemapFace a4; checkEnum(l,5,out a4); o=new UnityEngine.RenderTargetSetup(a1,a2,a3,a4); pushValue(l,true); pushValue(l,o); return 2; } else if(matchType(l,argc,2,typeof(UnityEngine.RenderBuffer[]),typeof(UnityEngine.RenderBuffer))){ UnityEngine.RenderBuffer[] a1; checkArray(l,2,out a1); UnityEngine.RenderBuffer a2; checkValueType(l,3,out a2); o=new UnityEngine.RenderTargetSetup(a1,a2); pushValue(l,true); pushValue(l,o); return 2; } else if(matchType(l,argc,2,typeof(UnityEngine.RenderBuffer[]),typeof(UnityEngine.RenderBuffer),typeof(int))){ UnityEngine.RenderBuffer[] a1; checkArray(l,2,out a1); UnityEngine.RenderBuffer a2; checkValueType(l,3,out a2); System.Int32 a3; checkType(l,4,out a3); o=new UnityEngine.RenderTargetSetup(a1,a2,a3); pushValue(l,true); pushValue(l,o); return 2; } else if(matchType(l,argc,2,typeof(UnityEngine.RenderBuffer[]),typeof(UnityEngine.RenderBuffer),typeof(int),typeof(UnityEngine.CubemapFace))){ UnityEngine.RenderBuffer[] a1; checkArray(l,2,out a1); UnityEngine.RenderBuffer a2; checkValueType(l,3,out a2); System.Int32 a3; checkType(l,4,out a3); UnityEngine.CubemapFace a4; checkEnum(l,5,out a4); o=new UnityEngine.RenderTargetSetup(a1,a2,a3,a4); pushValue(l,true); pushValue(l,o); return 2; } return error(l,"New object failed."); } catch(Exception e) { return error(l,e); } }