static int _m_GetKernelThreadGroupSizes(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ComputeShader gen_to_be_invoked = (UnityEngine.ComputeShader)translator.FastGetCSObj(L, 1); { int _kernelIndex = LuaAPI.xlua_tointeger(L, 2); uint _x; uint _y; uint _z; gen_to_be_invoked.GetKernelThreadGroupSizes(_kernelIndex, out _x, out _y, out _z); LuaAPI.xlua_pushuint(L, _x); LuaAPI.xlua_pushuint(L, _y); LuaAPI.xlua_pushuint(L, _z); return(3); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_SetConstantBuffer(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ComputeShader gen_to_be_invoked = (UnityEngine.ComputeShader)translator.FastGetCSObj(L, 1); { int _nameID = LuaAPI.xlua_tointeger(L, 2); UnityEngine.ComputeBuffer _buffer = (UnityEngine.ComputeBuffer)translator.GetObject(L, 3, typeof(UnityEngine.ComputeBuffer)); int _offset = LuaAPI.xlua_tointeger(L, 4); int _size = LuaAPI.xlua_tointeger(L, 5); gen_to_be_invoked.SetConstantBuffer(_nameID, _buffer, _offset, _size); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_Dispatch(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ComputeShader gen_to_be_invoked = (UnityEngine.ComputeShader)translator.FastGetCSObj(L, 1); { int _kernelIndex = LuaAPI.xlua_tointeger(L, 2); int _threadGroupsX = LuaAPI.xlua_tointeger(L, 3); int _threadGroupsY = LuaAPI.xlua_tointeger(L, 4); int _threadGroupsZ = LuaAPI.xlua_tointeger(L, 5); gen_to_be_invoked.Dispatch(_kernelIndex, _threadGroupsX, _threadGroupsY, _threadGroupsZ); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_GetKernelThreadGroupSizes(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ComputeShader __cl_gen_to_be_invoked = (UnityEngine.ComputeShader)translator.FastGetCSObj(L, 1); try { { int kernelIndex = LuaAPI.xlua_tointeger(L, 2); uint x; uint y; uint z; __cl_gen_to_be_invoked.GetKernelThreadGroupSizes(kernelIndex, out x, out y, out z); LuaAPI.xlua_pushuint(L, x); LuaAPI.xlua_pushuint(L, y); LuaAPI.xlua_pushuint(L, z); return(3); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
static StackObject *Ctor_0(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj) { CSHotFix.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; StackObject *__ret = ILIntepreter.Minus(__esp, 0); var result_of_this_method = new UnityEngine.ComputeShader(); return(ILIntepreter.PushObject(__ret, __mStack, result_of_this_method)); }
static int _g_get_shaderKeywords(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ComputeShader gen_to_be_invoked = (UnityEngine.ComputeShader)translator.FastGetCSObj(L, 1); translator.Push(L, gen_to_be_invoked.shaderKeywords); } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(1); }
static int _s_set_shaderKeywords(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ComputeShader gen_to_be_invoked = (UnityEngine.ComputeShader)translator.FastGetCSObj(L, 1); gen_to_be_invoked.shaderKeywords = (string[])translator.GetObject(L, 2, typeof(string[])); } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(0); }
/** CreatePrefab * * a_assets_path : アセットフォルダからの相対パス。 * */ #if (UNITY_EDITOR) public static void CreatePrefab(Fee.File.Path a_assets_path, UnityEngine.ComputeShader a_computeshader) { UnityEngine.GameObject t_prefab = new UnityEngine.GameObject("prefab_temp"); { //コンポーネント追加。 ComputeShader_MonoBehaviour t_monobehaviour = t_prefab.AddComponent <ComputeShader_MonoBehaviour>(); t_monobehaviour.computeshader = a_computeshader; //保存。 Fee.EditorTool.AssetTool.SavePrefab(t_prefab, a_assets_path); } UnityEngine.GameObject.DestroyImmediate(t_prefab); }
static int __CreateInstance(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); try { if (LuaAPI.lua_gettop(L) == 1) { UnityEngine.ComputeShader __cl_gen_ret = new UnityEngine.ComputeShader(); 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.ComputeShader constructor!")); }
static int _m_SetBuffer(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ComputeShader __cl_gen_to_be_invoked = (UnityEngine.ComputeShader)translator.FastGetCSObj(L, 1); int __gen_param_count = LuaAPI.lua_gettop(L); try { if (__gen_param_count == 4 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && translator.Assignable <UnityEngine.ComputeBuffer>(L, 4)) { int kernelIndex = LuaAPI.xlua_tointeger(L, 2); int nameID = LuaAPI.xlua_tointeger(L, 3); UnityEngine.ComputeBuffer buffer = (UnityEngine.ComputeBuffer)translator.GetObject(L, 4, typeof(UnityEngine.ComputeBuffer)); __cl_gen_to_be_invoked.SetBuffer(kernelIndex, nameID, buffer); return(0); } if (__gen_param_count == 4 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING) && translator.Assignable <UnityEngine.ComputeBuffer>(L, 4)) { int kernelIndex = LuaAPI.xlua_tointeger(L, 2); string name = LuaAPI.lua_tostring(L, 3); UnityEngine.ComputeBuffer buffer = (UnityEngine.ComputeBuffer)translator.GetObject(L, 4, typeof(UnityEngine.ComputeBuffer)); __cl_gen_to_be_invoked.SetBuffer(kernelIndex, name, buffer); 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.ComputeShader.SetBuffer!")); }
static int _m_SetTextureFromGlobal(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ComputeShader gen_to_be_invoked = (UnityEngine.ComputeShader)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)) { int _kernelIndex = LuaAPI.xlua_tointeger(L, 2); int _nameID = LuaAPI.xlua_tointeger(L, 3); int _globalTextureNameID = LuaAPI.xlua_tointeger(L, 4); gen_to_be_invoked.SetTextureFromGlobal(_kernelIndex, _nameID, _globalTextureNameID); return(0); } if (gen_param_count == 4 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING) && (LuaAPI.lua_isnil(L, 4) || LuaAPI.lua_type(L, 4) == LuaTypes.LUA_TSTRING)) { int _kernelIndex = LuaAPI.xlua_tointeger(L, 2); string _name = LuaAPI.lua_tostring(L, 3); string _globalTextureName = LuaAPI.lua_tostring(L, 4); gen_to_be_invoked.SetTextureFromGlobal(_kernelIndex, _name, _globalTextureName); 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.ComputeShader.SetTextureFromGlobal!")); }
static int _m_DispatchIndirect(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ComputeShader __cl_gen_to_be_invoked = (UnityEngine.ComputeShader)translator.FastGetCSObj(L, 1); int __gen_param_count = LuaAPI.lua_gettop(L); try { if (__gen_param_count == 3 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && translator.Assignable <UnityEngine.ComputeBuffer>(L, 3)) { int kernelIndex = LuaAPI.xlua_tointeger(L, 2); UnityEngine.ComputeBuffer argsBuffer = (UnityEngine.ComputeBuffer)translator.GetObject(L, 3, typeof(UnityEngine.ComputeBuffer)); __cl_gen_to_be_invoked.DispatchIndirect(kernelIndex, argsBuffer); return(0); } if (__gen_param_count == 4 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && translator.Assignable <UnityEngine.ComputeBuffer>(L, 3) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) { int kernelIndex = LuaAPI.xlua_tointeger(L, 2); UnityEngine.ComputeBuffer argsBuffer = (UnityEngine.ComputeBuffer)translator.GetObject(L, 3, typeof(UnityEngine.ComputeBuffer)); uint argsOffset = LuaAPI.xlua_touint(L, 4); __cl_gen_to_be_invoked.DispatchIndirect(kernelIndex, argsBuffer, argsOffset); 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.ComputeShader.DispatchIndirect!")); }
static int _m_SetInts(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ComputeShader __cl_gen_to_be_invoked = (UnityEngine.ComputeShader)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) && (LuaTypes.LUA_TNONE == LuaAPI.lua_type(L, 3) || LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3))) { int nameID = LuaAPI.xlua_tointeger(L, 2); int[] values = translator.GetParams <int>(L, 3); __cl_gen_to_be_invoked.SetInts(nameID, values); return(0); } if (__gen_param_count >= 2 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && (LuaTypes.LUA_TNONE == LuaAPI.lua_type(L, 3) || LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3))) { string name = LuaAPI.lua_tostring(L, 2); int[] values = translator.GetParams <int>(L, 3); __cl_gen_to_be_invoked.SetInts(name, values); 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.ComputeShader.SetInts!")); }
static int _m_SetBool(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ComputeShader gen_to_be_invoked = (UnityEngine.ComputeShader)translator.FastGetCSObj(L, 1); int gen_param_count = LuaAPI.lua_gettop(L); if (gen_param_count == 3 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) { int _nameID = LuaAPI.xlua_tointeger(L, 2); bool _val = LuaAPI.lua_toboolean(L, 3); gen_to_be_invoked.SetBool(_nameID, _val); return(0); } if (gen_param_count == 3 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) { string _name = LuaAPI.lua_tostring(L, 2); bool _val = LuaAPI.lua_toboolean(L, 3); gen_to_be_invoked.SetBool(_name, _val); 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.ComputeShader.SetBool!")); }
static int _m_SetMatrixArray(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ComputeShader gen_to_be_invoked = (UnityEngine.ComputeShader)translator.FastGetCSObj(L, 1); int gen_param_count = LuaAPI.lua_gettop(L); if (gen_param_count == 3 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && translator.Assignable <UnityEngine.Matrix4x4[]>(L, 3)) { int _nameID = LuaAPI.xlua_tointeger(L, 2); UnityEngine.Matrix4x4[] _values = (UnityEngine.Matrix4x4[])translator.GetObject(L, 3, typeof(UnityEngine.Matrix4x4[])); gen_to_be_invoked.SetMatrixArray(_nameID, _values); return(0); } if (gen_param_count == 3 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && translator.Assignable <UnityEngine.Matrix4x4[]>(L, 3)) { string _name = LuaAPI.lua_tostring(L, 2); UnityEngine.Matrix4x4[] _values = (UnityEngine.Matrix4x4[])translator.GetObject(L, 3, typeof(UnityEngine.Matrix4x4[])); gen_to_be_invoked.SetMatrixArray(_name, _values); 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.ComputeShader.SetMatrixArray!")); }
static int _m_DisableKeyword(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ComputeShader gen_to_be_invoked = (UnityEngine.ComputeShader)translator.FastGetCSObj(L, 1); { string _keyword = LuaAPI.lua_tostring(L, 2); gen_to_be_invoked.DisableKeyword(_keyword); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_FindKernel(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ComputeShader __cl_gen_to_be_invoked = (UnityEngine.ComputeShader)translator.FastGetCSObj(L, 1); try { { string name = LuaAPI.lua_tostring(L, 2); int __cl_gen_ret = __cl_gen_to_be_invoked.FindKernel(name); LuaAPI.xlua_pushinteger(L, __cl_gen_ret); return(1); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
static int _m_HasKernel(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ComputeShader gen_to_be_invoked = (UnityEngine.ComputeShader)translator.FastGetCSObj(L, 1); { string _name = LuaAPI.lua_tostring(L, 2); bool gen_ret = gen_to_be_invoked.HasKernel(_name); LuaAPI.lua_pushboolean(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_IsSupported(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ComputeShader gen_to_be_invoked = (UnityEngine.ComputeShader)translator.FastGetCSObj(L, 1); { int _kernelIndex = LuaAPI.xlua_tointeger(L, 2); var gen_ret = gen_to_be_invoked.IsSupported(_kernelIndex); LuaAPI.lua_pushboolean(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_SetTexture(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ComputeShader gen_to_be_invoked = (UnityEngine.ComputeShader)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) && translator.Assignable <UnityEngine.Texture>(L, 4)) { int _kernelIndex = LuaAPI.xlua_tointeger(L, 2); int _nameID = LuaAPI.xlua_tointeger(L, 3); UnityEngine.Texture _texture = (UnityEngine.Texture)translator.GetObject(L, 4, typeof(UnityEngine.Texture)); gen_to_be_invoked.SetTexture(_kernelIndex, _nameID, _texture); return(0); } if (gen_param_count == 5 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && translator.Assignable <UnityEngine.Texture>(L, 4) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) { int _kernelIndex = LuaAPI.xlua_tointeger(L, 2); int _nameID = LuaAPI.xlua_tointeger(L, 3); UnityEngine.Texture _texture = (UnityEngine.Texture)translator.GetObject(L, 4, typeof(UnityEngine.Texture)); int _mipLevel = LuaAPI.xlua_tointeger(L, 5); gen_to_be_invoked.SetTexture(_kernelIndex, _nameID, _texture, _mipLevel); return(0); } if (gen_param_count == 4 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING) && translator.Assignable <UnityEngine.Texture>(L, 4)) { int _kernelIndex = LuaAPI.xlua_tointeger(L, 2); string _name = LuaAPI.lua_tostring(L, 3); UnityEngine.Texture _texture = (UnityEngine.Texture)translator.GetObject(L, 4, typeof(UnityEngine.Texture)); gen_to_be_invoked.SetTexture(_kernelIndex, _name, _texture); return(0); } if (gen_param_count == 5 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING) && translator.Assignable <UnityEngine.Texture>(L, 4) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) { int _kernelIndex = LuaAPI.xlua_tointeger(L, 2); string _name = LuaAPI.lua_tostring(L, 3); UnityEngine.Texture _texture = (UnityEngine.Texture)translator.GetObject(L, 4, typeof(UnityEngine.Texture)); int _mipLevel = LuaAPI.xlua_tointeger(L, 5); gen_to_be_invoked.SetTexture(_kernelIndex, _name, _texture, _mipLevel); return(0); } if (gen_param_count == 6 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && translator.Assignable <UnityEngine.RenderTexture>(L, 4) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5) && translator.Assignable <UnityEngine.Rendering.RenderTextureSubElement>(L, 6)) { int _kernelIndex = LuaAPI.xlua_tointeger(L, 2); int _nameID = LuaAPI.xlua_tointeger(L, 3); UnityEngine.RenderTexture _texture = (UnityEngine.RenderTexture)translator.GetObject(L, 4, typeof(UnityEngine.RenderTexture)); int _mipLevel = LuaAPI.xlua_tointeger(L, 5); UnityEngine.Rendering.RenderTextureSubElement _element; translator.Get(L, 6, out _element); gen_to_be_invoked.SetTexture(_kernelIndex, _nameID, _texture, _mipLevel, _element); return(0); } if (gen_param_count == 6 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING) && translator.Assignable <UnityEngine.RenderTexture>(L, 4) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5) && translator.Assignable <UnityEngine.Rendering.RenderTextureSubElement>(L, 6)) { int _kernelIndex = LuaAPI.xlua_tointeger(L, 2); string _name = LuaAPI.lua_tostring(L, 3); UnityEngine.RenderTexture _texture = (UnityEngine.RenderTexture)translator.GetObject(L, 4, typeof(UnityEngine.RenderTexture)); int _mipLevel = LuaAPI.xlua_tointeger(L, 5); UnityEngine.Rendering.RenderTextureSubElement _element; translator.Get(L, 6, out _element); gen_to_be_invoked.SetTexture(_kernelIndex, _name, _texture, _mipLevel, _element); 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.ComputeShader.SetTexture!")); }
static int _m_SetConstantBuffer(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ComputeShader gen_to_be_invoked = (UnityEngine.ComputeShader)translator.FastGetCSObj(L, 1); int gen_param_count = LuaAPI.lua_gettop(L); if (gen_param_count == 5 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && translator.Assignable <UnityEngine.ComputeBuffer>(L, 3) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) { int _nameID = LuaAPI.xlua_tointeger(L, 2); UnityEngine.ComputeBuffer _buffer = (UnityEngine.ComputeBuffer)translator.GetObject(L, 3, typeof(UnityEngine.ComputeBuffer)); int _offset = LuaAPI.xlua_tointeger(L, 4); int _size = LuaAPI.xlua_tointeger(L, 5); gen_to_be_invoked.SetConstantBuffer(_nameID, _buffer, _offset, _size); return(0); } if (gen_param_count == 5 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && translator.Assignable <UnityEngine.GraphicsBuffer>(L, 3) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) { int _nameID = LuaAPI.xlua_tointeger(L, 2); UnityEngine.GraphicsBuffer _buffer = (UnityEngine.GraphicsBuffer)translator.GetObject(L, 3, typeof(UnityEngine.GraphicsBuffer)); int _offset = LuaAPI.xlua_tointeger(L, 4); int _size = LuaAPI.xlua_tointeger(L, 5); gen_to_be_invoked.SetConstantBuffer(_nameID, _buffer, _offset, _size); return(0); } if (gen_param_count == 5 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && translator.Assignable <UnityEngine.ComputeBuffer>(L, 3) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) { string _name = LuaAPI.lua_tostring(L, 2); UnityEngine.ComputeBuffer _buffer = (UnityEngine.ComputeBuffer)translator.GetObject(L, 3, typeof(UnityEngine.ComputeBuffer)); int _offset = LuaAPI.xlua_tointeger(L, 4); int _size = LuaAPI.xlua_tointeger(L, 5); gen_to_be_invoked.SetConstantBuffer(_name, _buffer, _offset, _size); return(0); } if (gen_param_count == 5 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && translator.Assignable <UnityEngine.GraphicsBuffer>(L, 3) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) { string _name = LuaAPI.lua_tostring(L, 2); UnityEngine.GraphicsBuffer _buffer = (UnityEngine.GraphicsBuffer)translator.GetObject(L, 3, typeof(UnityEngine.GraphicsBuffer)); int _offset = LuaAPI.xlua_tointeger(L, 4); int _size = LuaAPI.xlua_tointeger(L, 5); gen_to_be_invoked.SetConstantBuffer(_name, _buffer, _offset, _size); 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.ComputeShader.SetConstantBuffer!")); }