static StackObject *Ctor_5(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj) { CSHotFix.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; StackObject *ptr_of_this_method; StackObject *__ret = ILIntepreter.Minus(__esp, 5); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); System.Boolean @mipChain = ptr_of_this_method->Value == 1; ptr_of_this_method = ILIntepreter.Minus(__esp, 2); UnityEngine.TextureFormat @textureFormat = (UnityEngine.TextureFormat) typeof(UnityEngine.TextureFormat).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); ptr_of_this_method = ILIntepreter.Minus(__esp, 3); System.Int32 @depth = ptr_of_this_method->Value; ptr_of_this_method = ILIntepreter.Minus(__esp, 4); System.Int32 @height = ptr_of_this_method->Value; ptr_of_this_method = ILIntepreter.Minus(__esp, 5); System.Int32 @width = ptr_of_this_method->Value; var result_of_this_method = new UnityEngine.Texture2DArray(@width, @height, @depth, @textureFormat, @mipChain); return(ILIntepreter.PushObject(__ret, __mStack, result_of_this_method)); }
static StackObject *Ctor_2(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj) { CSHotFix.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; StackObject *ptr_of_this_method; StackObject *__ret = ILIntepreter.Minus(__esp, 6); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); System.Int32 @mipCount = ptr_of_this_method->Value; ptr_of_this_method = ILIntepreter.Minus(__esp, 2); UnityEngine.Experimental.Rendering.TextureCreationFlags @flags = (UnityEngine.Experimental.Rendering.TextureCreationFlags) typeof(UnityEngine.Experimental.Rendering.TextureCreationFlags).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); ptr_of_this_method = ILIntepreter.Minus(__esp, 3); UnityEngine.Experimental.Rendering.GraphicsFormat @format = (UnityEngine.Experimental.Rendering.GraphicsFormat) typeof(UnityEngine.Experimental.Rendering.GraphicsFormat).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); ptr_of_this_method = ILIntepreter.Minus(__esp, 4); System.Int32 @depth = ptr_of_this_method->Value; ptr_of_this_method = ILIntepreter.Minus(__esp, 5); System.Int32 @height = ptr_of_this_method->Value; ptr_of_this_method = ILIntepreter.Minus(__esp, 6); System.Int32 @width = ptr_of_this_method->Value; var result_of_this_method = new UnityEngine.Texture2DArray(@width, @height, @depth, @format, @flags, @mipCount); return(ILIntepreter.PushObject(__ret, __mStack, result_of_this_method)); }
static int _g_get_format(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); try { UnityEngine.Texture2DArray __cl_gen_to_be_invoked = (UnityEngine.Texture2DArray)translator.FastGetCSObj(L, 1); translator.Push(L, __cl_gen_to_be_invoked.format); } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(1); }
static int _g_get_isReadable(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.Texture2DArray gen_to_be_invoked = (UnityEngine.Texture2DArray)translator.FastGetCSObj(L, 1); LuaAPI.lua_pushboolean(L, gen_to_be_invoked.isReadable); } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(1); }
static StackObject *Apply_14(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj) { CSHotFix.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; StackObject *ptr_of_this_method; StackObject *__ret = ILIntepreter.Minus(__esp, 1); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); UnityEngine.Texture2DArray instance_of_this_method = (UnityEngine.Texture2DArray) typeof(UnityEngine.Texture2DArray).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); instance_of_this_method.Apply(); return(__ret); }
static int __CreateInstance(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); if (LuaAPI.lua_gettop(L) == 6 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4) && translator.Assignable <UnityEngine.Experimental.Rendering.GraphicsFormat>(L, 5) && translator.Assignable <UnityEngine.Experimental.Rendering.TextureCreationFlags>(L, 6)) { int _width = LuaAPI.xlua_tointeger(L, 2); int _height = LuaAPI.xlua_tointeger(L, 3); int _depth = LuaAPI.xlua_tointeger(L, 4); UnityEngine.Experimental.Rendering.GraphicsFormat _format; translator.Get(L, 5, out _format); UnityEngine.Experimental.Rendering.TextureCreationFlags _flags; translator.Get(L, 6, out _flags); var gen_ret = new UnityEngine.Texture2DArray(_width, _height, _depth, _format, _flags); translator.Push(L, gen_ret); return(1); } if (LuaAPI.lua_gettop(L) == 7 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4) && translator.Assignable <UnityEngine.TextureFormat>(L, 5) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 6) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 7)) { int _width = LuaAPI.xlua_tointeger(L, 2); int _height = LuaAPI.xlua_tointeger(L, 3); int _depth = LuaAPI.xlua_tointeger(L, 4); UnityEngine.TextureFormat _textureFormat; translator.Get(L, 5, out _textureFormat); bool _mipChain = LuaAPI.lua_toboolean(L, 6); bool _linear = LuaAPI.lua_toboolean(L, 7); var gen_ret = new UnityEngine.Texture2DArray(_width, _height, _depth, _textureFormat, _mipChain, _linear); translator.Push(L, gen_ret); return(1); } if (LuaAPI.lua_gettop(L) == 6 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4) && translator.Assignable <UnityEngine.TextureFormat>(L, 5) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 6)) { int _width = LuaAPI.xlua_tointeger(L, 2); int _height = LuaAPI.xlua_tointeger(L, 3); int _depth = LuaAPI.xlua_tointeger(L, 4); UnityEngine.TextureFormat _textureFormat; translator.Get(L, 5, out _textureFormat); bool _mipChain = LuaAPI.lua_toboolean(L, 6); var gen_ret = new UnityEngine.Texture2DArray(_width, _height, _depth, _textureFormat, _mipChain); translator.Push(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Texture2DArray constructor!")); }
static StackObject *get_isReadable_3(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj) { CSHotFix.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; StackObject *ptr_of_this_method; StackObject *__ret = ILIntepreter.Minus(__esp, 1); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); UnityEngine.Texture2DArray instance_of_this_method = (UnityEngine.Texture2DArray) typeof(UnityEngine.Texture2DArray).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); var result_of_this_method = instance_of_this_method.isReadable; __ret->ObjectType = ObjectTypes.Integer; __ret->Value = result_of_this_method ? 1 : 0; return(__ret + 1); }
static int _m_Apply(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.Texture2DArray __cl_gen_to_be_invoked = (UnityEngine.Texture2DArray)translator.FastGetCSObj(L, 1); int __gen_param_count = LuaAPI.lua_gettop(L); try { if (__gen_param_count == 1) { __cl_gen_to_be_invoked.Apply( ); return(0); } if (__gen_param_count == 2 && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) { bool updateMipmaps = LuaAPI.lua_toboolean(L, 2); __cl_gen_to_be_invoked.Apply(updateMipmaps); return(0); } if (__gen_param_count == 3 && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) { bool updateMipmaps = LuaAPI.lua_toboolean(L, 2); bool makeNoLongerReadable = LuaAPI.lua_toboolean(L, 3); __cl_gen_to_be_invoked.Apply(updateMipmaps, makeNoLongerReadable); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Texture2DArray.Apply!")); }
static StackObject *GetPixels32_7(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj) { CSHotFix.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; StackObject *ptr_of_this_method; StackObject *__ret = ILIntepreter.Minus(__esp, 2); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); System.Int32 @arrayElement = ptr_of_this_method->Value; ptr_of_this_method = ILIntepreter.Minus(__esp, 2); UnityEngine.Texture2DArray instance_of_this_method = (UnityEngine.Texture2DArray) typeof(UnityEngine.Texture2DArray).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); var result_of_this_method = instance_of_this_method.GetPixels32(@arrayElement); return(ILIntepreter.PushObject(__ret, __mStack, result_of_this_method)); }
static StackObject *Apply_12(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj) { CSHotFix.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; StackObject *ptr_of_this_method; StackObject *__ret = ILIntepreter.Minus(__esp, 3); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); System.Boolean @makeNoLongerReadable = ptr_of_this_method->Value == 1; ptr_of_this_method = ILIntepreter.Minus(__esp, 2); System.Boolean @updateMipmaps = ptr_of_this_method->Value == 1; ptr_of_this_method = ILIntepreter.Minus(__esp, 3); UnityEngine.Texture2DArray instance_of_this_method = (UnityEngine.Texture2DArray) typeof(UnityEngine.Texture2DArray).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); instance_of_this_method.Apply(@updateMipmaps, @makeNoLongerReadable); return(__ret); }
static StackObject *SetPixels_9(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj) { CSHotFix.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; StackObject *ptr_of_this_method; StackObject *__ret = ILIntepreter.Minus(__esp, 3); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); System.Int32 @arrayElement = ptr_of_this_method->Value; ptr_of_this_method = ILIntepreter.Minus(__esp, 2); UnityEngine.Color[] @colors = (UnityEngine.Color[]) typeof(UnityEngine.Color[]).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); ptr_of_this_method = ILIntepreter.Minus(__esp, 3); UnityEngine.Texture2DArray instance_of_this_method = (UnityEngine.Texture2DArray) typeof(UnityEngine.Texture2DArray).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); instance_of_this_method.SetPixels(@colors, @arrayElement); return(__ret); }
static int _m_GetPixels32(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.Texture2DArray __cl_gen_to_be_invoked = (UnityEngine.Texture2DArray)translator.FastGetCSObj(L, 1); int __gen_param_count = LuaAPI.lua_gettop(L); try { if (__gen_param_count == 2 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) { int arrayElement = LuaAPI.xlua_tointeger(L, 2); UnityEngine.Color32[] __cl_gen_ret = __cl_gen_to_be_invoked.GetPixels32(arrayElement); translator.Push(L, __cl_gen_ret); return(1); } if (__gen_param_count == 3 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) { int arrayElement = LuaAPI.xlua_tointeger(L, 2); int miplevel = LuaAPI.xlua_tointeger(L, 3); UnityEngine.Color32[] __cl_gen_ret = __cl_gen_to_be_invoked.GetPixels32(arrayElement, miplevel); translator.Push(L, __cl_gen_ret); return(1); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Texture2DArray.GetPixels32!")); }
static int _m_SetPixels32(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.Texture2DArray __cl_gen_to_be_invoked = (UnityEngine.Texture2DArray)translator.FastGetCSObj(L, 1); int __gen_param_count = LuaAPI.lua_gettop(L); try { if (__gen_param_count == 3 && translator.Assignable <UnityEngine.Color32[]>(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) { UnityEngine.Color32[] colors = (UnityEngine.Color32[])translator.GetObject(L, 2, typeof(UnityEngine.Color32[])); int arrayElement = LuaAPI.xlua_tointeger(L, 3); __cl_gen_to_be_invoked.SetPixels32(colors, arrayElement); return(0); } if (__gen_param_count == 4 && translator.Assignable <UnityEngine.Color32[]>(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) { UnityEngine.Color32[] colors = (UnityEngine.Color32[])translator.GetObject(L, 2, typeof(UnityEngine.Color32[])); int arrayElement = LuaAPI.xlua_tointeger(L, 3); int miplevel = LuaAPI.xlua_tointeger(L, 4); __cl_gen_to_be_invoked.SetPixels32(colors, arrayElement, miplevel); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Texture2DArray.SetPixels32!")); }
static int __CreateInstance(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); try { if (LuaAPI.lua_gettop(L) == 6 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4) && translator.Assignable <UnityEngine.TextureFormat>(L, 5) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 6)) { int width = LuaAPI.xlua_tointeger(L, 2); int height = LuaAPI.xlua_tointeger(L, 3); int depth = LuaAPI.xlua_tointeger(L, 4); UnityEngine.TextureFormat format; translator.Get(L, 5, out format); bool mipmap = LuaAPI.lua_toboolean(L, 6); UnityEngine.Texture2DArray __cl_gen_ret = new UnityEngine.Texture2DArray(width, height, depth, format, mipmap); translator.Push(L, __cl_gen_ret); return(1); } if (LuaAPI.lua_gettop(L) == 7 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4) && translator.Assignable <UnityEngine.TextureFormat>(L, 5) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 6) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 7)) { int width = LuaAPI.xlua_tointeger(L, 2); int height = LuaAPI.xlua_tointeger(L, 3); int depth = LuaAPI.xlua_tointeger(L, 4); UnityEngine.TextureFormat format; translator.Get(L, 5, out format); bool mipmap = LuaAPI.lua_toboolean(L, 6); bool linear = LuaAPI.lua_toboolean(L, 7); UnityEngine.Texture2DArray __cl_gen_ret = new UnityEngine.Texture2DArray(width, height, depth, format, mipmap, linear); translator.Push(L, __cl_gen_ret); return(1); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Texture2DArray constructor!")); }