static StackObject *GetPixelBilinear_19(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.Int32 @mipLevel = ptr_of_this_method->Value; ptr_of_this_method = ILIntepreter.Minus(__esp, 2); System.Single @w = *(float *)&ptr_of_this_method->Value; ptr_of_this_method = ILIntepreter.Minus(__esp, 3); System.Single @v = *(float *)&ptr_of_this_method->Value; ptr_of_this_method = ILIntepreter.Minus(__esp, 4); System.Single @u = *(float *)&ptr_of_this_method->Value; ptr_of_this_method = ILIntepreter.Minus(__esp, 5); UnityEngine.Texture3D instance_of_this_method = (UnityEngine.Texture3D) typeof(UnityEngine.Texture3D).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); var result_of_this_method = instance_of_this_method.GetPixelBilinear(@u, @v, @w, @mipLevel); return(ILIntepreter.PushObject(__ret, __mStack, result_of_this_method)); }
static int _m_GetPixelBilinear(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.Texture3D gen_to_be_invoked = (UnityEngine.Texture3D)translator.FastGetCSObj(L, 1); int gen_param_count = LuaAPI.lua_gettop(L); if (gen_param_count == 4 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) { float _u = (float)LuaAPI.lua_tonumber(L, 2); float _v = (float)LuaAPI.lua_tonumber(L, 3); float _w = (float)LuaAPI.lua_tonumber(L, 4); UnityEngine.Color gen_ret = gen_to_be_invoked.GetPixelBilinear(_u, _v, _w); translator.PushUnityEngineColor(L, gen_ret); return(1); } if (gen_param_count == 5 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) { float _u = (float)LuaAPI.lua_tonumber(L, 2); float _v = (float)LuaAPI.lua_tonumber(L, 3); float _w = (float)LuaAPI.lua_tonumber(L, 4); int _mipLevel = LuaAPI.xlua_tointeger(L, 5); UnityEngine.Color gen_ret = gen_to_be_invoked.GetPixelBilinear(_u, _v, _w, _mipLevel); translator.PushUnityEngineColor(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.Texture3D.GetPixelBilinear!")); }