501 lines
24 KiB
C#
501 lines
24 KiB
C#
|
#if USE_UNI_LUA
|
|||
|
using LuaAPI = UniLua.Lua;
|
|||
|
using RealStatePtr = UniLua.ILuaState;
|
|||
|
using LuaCSFunction = UniLua.CSharpFunctionDelegate;
|
|||
|
#else
|
|||
|
using LuaAPI = XLua.LuaDLL.Lua;
|
|||
|
using RealStatePtr = System.IntPtr;
|
|||
|
using LuaCSFunction = XLua.LuaDLL.lua_CSFunction;
|
|||
|
#endif
|
|||
|
|
|||
|
using XLua;
|
|||
|
using System.Collections.Generic;
|
|||
|
|
|||
|
|
|||
|
namespace XLua.CSObjectWrap
|
|||
|
{
|
|||
|
using Utils = XLua.Utils;
|
|||
|
public class UnityEngineRenderingRenderTargetIdentifierWrap
|
|||
|
{
|
|||
|
public static void __Register(RealStatePtr L)
|
|||
|
{
|
|||
|
ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L);
|
|||
|
System.Type type = typeof(UnityEngine.Rendering.RenderTargetIdentifier);
|
|||
|
Utils.BeginObjectRegister(type, L, translator, 1, 3, 0, 0);
|
|||
|
Utils.RegisterFunc(L, Utils.OBJ_META_IDX, "__eq", __EqMeta);
|
|||
|
|
|||
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "ToString", _m_ToString);
|
|||
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetHashCode", _m_GetHashCode);
|
|||
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "Equals", _m_Equals);
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
Utils.EndObjectRegister(type, L, translator, null, null,
|
|||
|
null, null, null);
|
|||
|
|
|||
|
Utils.BeginClassRegister(type, L, __CreateInstance, 2, 0, 0);
|
|||
|
|
|||
|
|
|||
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "AllDepthSlices", UnityEngine.Rendering.RenderTargetIdentifier.AllDepthSlices);
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
Utils.EndClassRegister(type, L, translator);
|
|||
|
}
|
|||
|
|
|||
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|||
|
static int __CreateInstance(RealStatePtr L)
|
|||
|
{
|
|||
|
|
|||
|
try {
|
|||
|
ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L);
|
|||
|
if(LuaAPI.lua_gettop(L) == 2 && (translator.Assignable<UnityEngine.Rendering.BuiltinRenderTextureType>(L, 2)||LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)))
|
|||
|
{
|
|||
|
UnityEngine.Rendering.BuiltinRenderTextureType _type;if (LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TNUMBER)_type = (UnityEngine.Rendering.BuiltinRenderTextureType)LuaAPI.lua_tonumber(L, 2);else translator.Get(L, 2, out _type);
|
|||
|
|
|||
|
UnityEngine.Rendering.RenderTargetIdentifier gen_ret = new UnityEngine.Rendering.RenderTargetIdentifier(_type);
|
|||
|
translator.Push(L, gen_ret);
|
|||
|
|
|||
|
return 1;
|
|||
|
}
|
|||
|
if(LuaAPI.lua_gettop(L) == 5 && (translator.Assignable<UnityEngine.Rendering.BuiltinRenderTextureType>(L, 2)||LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && (translator.Assignable<UnityEngine.CubemapFace>(L, 4)||LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5))
|
|||
|
{
|
|||
|
UnityEngine.Rendering.BuiltinRenderTextureType _type;if (LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TNUMBER)_type = (UnityEngine.Rendering.BuiltinRenderTextureType)LuaAPI.lua_tonumber(L, 2);else translator.Get(L, 2, out _type);
|
|||
|
int _mipLevel = LuaAPI.xlua_tointeger(L, 3);
|
|||
|
UnityEngine.CubemapFace _cubeFace;if (LuaAPI.lua_type(L, 4) == LuaTypes.LUA_TNUMBER)_cubeFace = (UnityEngine.CubemapFace)LuaAPI.lua_tonumber(L, 4);else translator.Get(L, 4, out _cubeFace);
|
|||
|
int _depthSlice = LuaAPI.xlua_tointeger(L, 5);
|
|||
|
|
|||
|
UnityEngine.Rendering.RenderTargetIdentifier gen_ret = new UnityEngine.Rendering.RenderTargetIdentifier(_type, _mipLevel, _cubeFace, _depthSlice);
|
|||
|
translator.Push(L, gen_ret);
|
|||
|
|
|||
|
return 1;
|
|||
|
}
|
|||
|
if(LuaAPI.lua_gettop(L) == 4 && (translator.Assignable<UnityEngine.Rendering.BuiltinRenderTextureType>(L, 2)||LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && (translator.Assignable<UnityEngine.CubemapFace>(L, 4)||LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)))
|
|||
|
{
|
|||
|
UnityEngine.Rendering.BuiltinRenderTextureType _type;if (LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TNUMBER)_type = (UnityEngine.Rendering.BuiltinRenderTextureType)LuaAPI.lua_tonumber(L, 2);else translator.Get(L, 2, out _type);
|
|||
|
int _mipLevel = LuaAPI.xlua_tointeger(L, 3);
|
|||
|
UnityEngine.CubemapFace _cubeFace;if (LuaAPI.lua_type(L, 4) == LuaTypes.LUA_TNUMBER)_cubeFace = (UnityEngine.CubemapFace)LuaAPI.lua_tonumber(L, 4);else translator.Get(L, 4, out _cubeFace);
|
|||
|
|
|||
|
UnityEngine.Rendering.RenderTargetIdentifier gen_ret = new UnityEngine.Rendering.RenderTargetIdentifier(_type, _mipLevel, _cubeFace);
|
|||
|
translator.Push(L, gen_ret);
|
|||
|
|
|||
|
return 1;
|
|||
|
}
|
|||
|
if(LuaAPI.lua_gettop(L) == 3 && (translator.Assignable<UnityEngine.Rendering.BuiltinRenderTextureType>(L, 2)||LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3))
|
|||
|
{
|
|||
|
UnityEngine.Rendering.BuiltinRenderTextureType _type;if (LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TNUMBER)_type = (UnityEngine.Rendering.BuiltinRenderTextureType)LuaAPI.lua_tonumber(L, 2);else translator.Get(L, 2, out _type);
|
|||
|
int _mipLevel = LuaAPI.xlua_tointeger(L, 3);
|
|||
|
|
|||
|
UnityEngine.Rendering.RenderTargetIdentifier gen_ret = new UnityEngine.Rendering.RenderTargetIdentifier(_type, _mipLevel);
|
|||
|
translator.Push(L, gen_ret);
|
|||
|
|
|||
|
return 1;
|
|||
|
}
|
|||
|
if(LuaAPI.lua_gettop(L) == 2 && (translator.Assignable<UnityEngine.Rendering.BuiltinRenderTextureType>(L, 2)||LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)))
|
|||
|
{
|
|||
|
UnityEngine.Rendering.BuiltinRenderTextureType _type;if (LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TNUMBER)_type = (UnityEngine.Rendering.BuiltinRenderTextureType)LuaAPI.lua_tonumber(L, 2);else translator.Get(L, 2, out _type);
|
|||
|
|
|||
|
UnityEngine.Rendering.RenderTargetIdentifier gen_ret = new UnityEngine.Rendering.RenderTargetIdentifier(_type);
|
|||
|
translator.Push(L, gen_ret);
|
|||
|
|
|||
|
return 1;
|
|||
|
}
|
|||
|
if(LuaAPI.lua_gettop(L) == 2 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING))
|
|||
|
{
|
|||
|
string _name = LuaAPI.lua_tostring(L, 2);
|
|||
|
|
|||
|
UnityEngine.Rendering.RenderTargetIdentifier gen_ret = new UnityEngine.Rendering.RenderTargetIdentifier(_name);
|
|||
|
translator.Push(L, gen_ret);
|
|||
|
|
|||
|
return 1;
|
|||
|
}
|
|||
|
if(LuaAPI.lua_gettop(L) == 5 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && (translator.Assignable<UnityEngine.CubemapFace>(L, 4)||LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5))
|
|||
|
{
|
|||
|
string _name = LuaAPI.lua_tostring(L, 2);
|
|||
|
int _mipLevel = LuaAPI.xlua_tointeger(L, 3);
|
|||
|
UnityEngine.CubemapFace _cubeFace;if (LuaAPI.lua_type(L, 4) == LuaTypes.LUA_TNUMBER)_cubeFace = (UnityEngine.CubemapFace)LuaAPI.lua_tonumber(L, 4);else translator.Get(L, 4, out _cubeFace);
|
|||
|
int _depthSlice = LuaAPI.xlua_tointeger(L, 5);
|
|||
|
|
|||
|
UnityEngine.Rendering.RenderTargetIdentifier gen_ret = new UnityEngine.Rendering.RenderTargetIdentifier(_name, _mipLevel, _cubeFace, _depthSlice);
|
|||
|
translator.Push(L, gen_ret);
|
|||
|
|
|||
|
return 1;
|
|||
|
}
|
|||
|
if(LuaAPI.lua_gettop(L) == 4 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && (translator.Assignable<UnityEngine.CubemapFace>(L, 4)||LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)))
|
|||
|
{
|
|||
|
string _name = LuaAPI.lua_tostring(L, 2);
|
|||
|
int _mipLevel = LuaAPI.xlua_tointeger(L, 3);
|
|||
|
UnityEngine.CubemapFace _cubeFace;if (LuaAPI.lua_type(L, 4) == LuaTypes.LUA_TNUMBER)_cubeFace = (UnityEngine.CubemapFace)LuaAPI.lua_tonumber(L, 4);else translator.Get(L, 4, out _cubeFace);
|
|||
|
|
|||
|
UnityEngine.Rendering.RenderTargetIdentifier gen_ret = new UnityEngine.Rendering.RenderTargetIdentifier(_name, _mipLevel, _cubeFace);
|
|||
|
translator.Push(L, gen_ret);
|
|||
|
|
|||
|
return 1;
|
|||
|
}
|
|||
|
if(LuaAPI.lua_gettop(L) == 3 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3))
|
|||
|
{
|
|||
|
string _name = LuaAPI.lua_tostring(L, 2);
|
|||
|
int _mipLevel = LuaAPI.xlua_tointeger(L, 3);
|
|||
|
|
|||
|
UnityEngine.Rendering.RenderTargetIdentifier gen_ret = new UnityEngine.Rendering.RenderTargetIdentifier(_name, _mipLevel);
|
|||
|
translator.Push(L, gen_ret);
|
|||
|
|
|||
|
return 1;
|
|||
|
}
|
|||
|
if(LuaAPI.lua_gettop(L) == 2 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING))
|
|||
|
{
|
|||
|
string _name = LuaAPI.lua_tostring(L, 2);
|
|||
|
|
|||
|
UnityEngine.Rendering.RenderTargetIdentifier gen_ret = new UnityEngine.Rendering.RenderTargetIdentifier(_name);
|
|||
|
translator.Push(L, gen_ret);
|
|||
|
|
|||
|
return 1;
|
|||
|
}
|
|||
|
if(LuaAPI.lua_gettop(L) == 2 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2))
|
|||
|
{
|
|||
|
int _nameID = LuaAPI.xlua_tointeger(L, 2);
|
|||
|
|
|||
|
UnityEngine.Rendering.RenderTargetIdentifier gen_ret = new UnityEngine.Rendering.RenderTargetIdentifier(_nameID);
|
|||
|
translator.Push(L, gen_ret);
|
|||
|
|
|||
|
return 1;
|
|||
|
}
|
|||
|
if(LuaAPI.lua_gettop(L) == 5 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && (translator.Assignable<UnityEngine.CubemapFace>(L, 4)||LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5))
|
|||
|
{
|
|||
|
int _nameID = LuaAPI.xlua_tointeger(L, 2);
|
|||
|
int _mipLevel = LuaAPI.xlua_tointeger(L, 3);
|
|||
|
UnityEngine.CubemapFace _cubeFace;if (LuaAPI.lua_type(L, 4) == LuaTypes.LUA_TNUMBER)_cubeFace = (UnityEngine.CubemapFace)LuaAPI.lua_tonumber(L, 4);else translator.Get(L, 4, out _cubeFace);
|
|||
|
int _depthSlice = LuaAPI.xlua_tointeger(L, 5);
|
|||
|
|
|||
|
UnityEngine.Rendering.RenderTargetIdentifier gen_ret = new UnityEngine.Rendering.RenderTargetIdentifier(_nameID, _mipLevel, _cubeFace, _depthSlice);
|
|||
|
translator.Push(L, gen_ret);
|
|||
|
|
|||
|
return 1;
|
|||
|
}
|
|||
|
if(LuaAPI.lua_gettop(L) == 4 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && (translator.Assignable<UnityEngine.CubemapFace>(L, 4)||LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)))
|
|||
|
{
|
|||
|
int _nameID = LuaAPI.xlua_tointeger(L, 2);
|
|||
|
int _mipLevel = LuaAPI.xlua_tointeger(L, 3);
|
|||
|
UnityEngine.CubemapFace _cubeFace;if (LuaAPI.lua_type(L, 4) == LuaTypes.LUA_TNUMBER)_cubeFace = (UnityEngine.CubemapFace)LuaAPI.lua_tonumber(L, 4);else translator.Get(L, 4, out _cubeFace);
|
|||
|
|
|||
|
UnityEngine.Rendering.RenderTargetIdentifier gen_ret = new UnityEngine.Rendering.RenderTargetIdentifier(_nameID, _mipLevel, _cubeFace);
|
|||
|
translator.Push(L, gen_ret);
|
|||
|
|
|||
|
return 1;
|
|||
|
}
|
|||
|
if(LuaAPI.lua_gettop(L) == 3 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3))
|
|||
|
{
|
|||
|
int _nameID = LuaAPI.xlua_tointeger(L, 2);
|
|||
|
int _mipLevel = LuaAPI.xlua_tointeger(L, 3);
|
|||
|
|
|||
|
UnityEngine.Rendering.RenderTargetIdentifier gen_ret = new UnityEngine.Rendering.RenderTargetIdentifier(_nameID, _mipLevel);
|
|||
|
translator.Push(L, gen_ret);
|
|||
|
|
|||
|
return 1;
|
|||
|
}
|
|||
|
if(LuaAPI.lua_gettop(L) == 2 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2))
|
|||
|
{
|
|||
|
int _nameID = LuaAPI.xlua_tointeger(L, 2);
|
|||
|
|
|||
|
UnityEngine.Rendering.RenderTargetIdentifier gen_ret = new UnityEngine.Rendering.RenderTargetIdentifier(_nameID);
|
|||
|
translator.Push(L, gen_ret);
|
|||
|
|
|||
|
return 1;
|
|||
|
}
|
|||
|
if(LuaAPI.lua_gettop(L) == 5 && translator.Assignable<UnityEngine.Rendering.RenderTargetIdentifier>(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && (translator.Assignable<UnityEngine.CubemapFace>(L, 4)||LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5))
|
|||
|
{
|
|||
|
UnityEngine.Rendering.RenderTargetIdentifier _renderTargetIdentifier;translator.Get(L, 2, out _renderTargetIdentifier);
|
|||
|
int _mipLevel = LuaAPI.xlua_tointeger(L, 3);
|
|||
|
UnityEngine.CubemapFace _cubeFace;if (LuaAPI.lua_type(L, 4) == LuaTypes.LUA_TNUMBER)_cubeFace = (UnityEngine.CubemapFace)LuaAPI.lua_tonumber(L, 4);else translator.Get(L, 4, out _cubeFace);
|
|||
|
int _depthSlice = LuaAPI.xlua_tointeger(L, 5);
|
|||
|
|
|||
|
UnityEngine.Rendering.RenderTargetIdentifier gen_ret = new UnityEngine.Rendering.RenderTargetIdentifier(_renderTargetIdentifier, _mipLevel, _cubeFace, _depthSlice);
|
|||
|
translator.Push(L, gen_ret);
|
|||
|
|
|||
|
return 1;
|
|||
|
}
|
|||
|
if(LuaAPI.lua_gettop(L) == 4 && translator.Assignable<UnityEngine.Rendering.RenderTargetIdentifier>(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && (translator.Assignable<UnityEngine.CubemapFace>(L, 4)||LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)))
|
|||
|
{
|
|||
|
UnityEngine.Rendering.RenderTargetIdentifier _renderTargetIdentifier;translator.Get(L, 2, out _renderTargetIdentifier);
|
|||
|
int _mipLevel = LuaAPI.xlua_tointeger(L, 3);
|
|||
|
UnityEngine.CubemapFace _cubeFace;if (LuaAPI.lua_type(L, 4) == LuaTypes.LUA_TNUMBER)_cubeFace = (UnityEngine.CubemapFace)LuaAPI.lua_tonumber(L, 4);else translator.Get(L, 4, out _cubeFace);
|
|||
|
|
|||
|
UnityEngine.Rendering.RenderTargetIdentifier gen_ret = new UnityEngine.Rendering.RenderTargetIdentifier(_renderTargetIdentifier, _mipLevel, _cubeFace);
|
|||
|
translator.Push(L, gen_ret);
|
|||
|
|
|||
|
return 1;
|
|||
|
}
|
|||
|
if(LuaAPI.lua_gettop(L) == 3 && translator.Assignable<UnityEngine.Rendering.RenderTargetIdentifier>(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3))
|
|||
|
{
|
|||
|
UnityEngine.Rendering.RenderTargetIdentifier _renderTargetIdentifier;translator.Get(L, 2, out _renderTargetIdentifier);
|
|||
|
int _mipLevel = LuaAPI.xlua_tointeger(L, 3);
|
|||
|
|
|||
|
UnityEngine.Rendering.RenderTargetIdentifier gen_ret = new UnityEngine.Rendering.RenderTargetIdentifier(_renderTargetIdentifier, _mipLevel);
|
|||
|
translator.Push(L, gen_ret);
|
|||
|
|
|||
|
return 1;
|
|||
|
}
|
|||
|
if(LuaAPI.lua_gettop(L) == 2 && translator.Assignable<UnityEngine.Texture>(L, 2))
|
|||
|
{
|
|||
|
UnityEngine.Texture _tex = (UnityEngine.Texture)translator.GetObject(L, 2, typeof(UnityEngine.Texture));
|
|||
|
|
|||
|
UnityEngine.Rendering.RenderTargetIdentifier gen_ret = new UnityEngine.Rendering.RenderTargetIdentifier(_tex);
|
|||
|
translator.Push(L, gen_ret);
|
|||
|
|
|||
|
return 1;
|
|||
|
}
|
|||
|
if(LuaAPI.lua_gettop(L) == 5 && translator.Assignable<UnityEngine.Texture>(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && (translator.Assignable<UnityEngine.CubemapFace>(L, 4)||LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5))
|
|||
|
{
|
|||
|
UnityEngine.Texture _tex = (UnityEngine.Texture)translator.GetObject(L, 2, typeof(UnityEngine.Texture));
|
|||
|
int _mipLevel = LuaAPI.xlua_tointeger(L, 3);
|
|||
|
UnityEngine.CubemapFace _cubeFace;if (LuaAPI.lua_type(L, 4) == LuaTypes.LUA_TNUMBER)_cubeFace = (UnityEngine.CubemapFace)LuaAPI.lua_tonumber(L, 4);else translator.Get(L, 4, out _cubeFace);
|
|||
|
int _depthSlice = LuaAPI.xlua_tointeger(L, 5);
|
|||
|
|
|||
|
UnityEngine.Rendering.RenderTargetIdentifier gen_ret = new UnityEngine.Rendering.RenderTargetIdentifier(_tex, _mipLevel, _cubeFace, _depthSlice);
|
|||
|
translator.Push(L, gen_ret);
|
|||
|
|
|||
|
return 1;
|
|||
|
}
|
|||
|
if(LuaAPI.lua_gettop(L) == 4 && translator.Assignable<UnityEngine.Texture>(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && (translator.Assignable<UnityEngine.CubemapFace>(L, 4)||LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)))
|
|||
|
{
|
|||
|
UnityEngine.Texture _tex = (UnityEngine.Texture)translator.GetObject(L, 2, typeof(UnityEngine.Texture));
|
|||
|
int _mipLevel = LuaAPI.xlua_tointeger(L, 3);
|
|||
|
UnityEngine.CubemapFace _cubeFace;if (LuaAPI.lua_type(L, 4) == LuaTypes.LUA_TNUMBER)_cubeFace = (UnityEngine.CubemapFace)LuaAPI.lua_tonumber(L, 4);else translator.Get(L, 4, out _cubeFace);
|
|||
|
|
|||
|
UnityEngine.Rendering.RenderTargetIdentifier gen_ret = new UnityEngine.Rendering.RenderTargetIdentifier(_tex, _mipLevel, _cubeFace);
|
|||
|
translator.Push(L, gen_ret);
|
|||
|
|
|||
|
return 1;
|
|||
|
}
|
|||
|
if(LuaAPI.lua_gettop(L) == 3 && translator.Assignable<UnityEngine.Texture>(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3))
|
|||
|
{
|
|||
|
UnityEngine.Texture _tex = (UnityEngine.Texture)translator.GetObject(L, 2, typeof(UnityEngine.Texture));
|
|||
|
int _mipLevel = LuaAPI.xlua_tointeger(L, 3);
|
|||
|
|
|||
|
UnityEngine.Rendering.RenderTargetIdentifier gen_ret = new UnityEngine.Rendering.RenderTargetIdentifier(_tex, _mipLevel);
|
|||
|
translator.Push(L, gen_ret);
|
|||
|
|
|||
|
return 1;
|
|||
|
}
|
|||
|
if(LuaAPI.lua_gettop(L) == 2 && translator.Assignable<UnityEngine.Texture>(L, 2))
|
|||
|
{
|
|||
|
UnityEngine.Texture _tex = (UnityEngine.Texture)translator.GetObject(L, 2, typeof(UnityEngine.Texture));
|
|||
|
|
|||
|
UnityEngine.Rendering.RenderTargetIdentifier gen_ret = new UnityEngine.Rendering.RenderTargetIdentifier(_tex);
|
|||
|
translator.Push(L, gen_ret);
|
|||
|
|
|||
|
return 1;
|
|||
|
}
|
|||
|
if(LuaAPI.lua_gettop(L) == 5 && translator.Assignable<UnityEngine.RenderBuffer>(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && (translator.Assignable<UnityEngine.CubemapFace>(L, 4)||LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5))
|
|||
|
{
|
|||
|
UnityEngine.RenderBuffer _buf;translator.Get(L, 2, out _buf);
|
|||
|
int _mipLevel = LuaAPI.xlua_tointeger(L, 3);
|
|||
|
UnityEngine.CubemapFace _cubeFace;if (LuaAPI.lua_type(L, 4) == LuaTypes.LUA_TNUMBER)_cubeFace = (UnityEngine.CubemapFace)LuaAPI.lua_tonumber(L, 4);else translator.Get(L, 4, out _cubeFace);
|
|||
|
int _depthSlice = LuaAPI.xlua_tointeger(L, 5);
|
|||
|
|
|||
|
UnityEngine.Rendering.RenderTargetIdentifier gen_ret = new UnityEngine.Rendering.RenderTargetIdentifier(_buf, _mipLevel, _cubeFace, _depthSlice);
|
|||
|
translator.Push(L, gen_ret);
|
|||
|
|
|||
|
return 1;
|
|||
|
}
|
|||
|
if(LuaAPI.lua_gettop(L) == 4 && translator.Assignable<UnityEngine.RenderBuffer>(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && (translator.Assignable<UnityEngine.CubemapFace>(L, 4)||LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)))
|
|||
|
{
|
|||
|
UnityEngine.RenderBuffer _buf;translator.Get(L, 2, out _buf);
|
|||
|
int _mipLevel = LuaAPI.xlua_tointeger(L, 3);
|
|||
|
UnityEngine.CubemapFace _cubeFace;if (LuaAPI.lua_type(L, 4) == LuaTypes.LUA_TNUMBER)_cubeFace = (UnityEngine.CubemapFace)LuaAPI.lua_tonumber(L, 4);else translator.Get(L, 4, out _cubeFace);
|
|||
|
|
|||
|
UnityEngine.Rendering.RenderTargetIdentifier gen_ret = new UnityEngine.Rendering.RenderTargetIdentifier(_buf, _mipLevel, _cubeFace);
|
|||
|
translator.Push(L, gen_ret);
|
|||
|
|
|||
|
return 1;
|
|||
|
}
|
|||
|
if(LuaAPI.lua_gettop(L) == 3 && translator.Assignable<UnityEngine.RenderBuffer>(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3))
|
|||
|
{
|
|||
|
UnityEngine.RenderBuffer _buf;translator.Get(L, 2, out _buf);
|
|||
|
int _mipLevel = LuaAPI.xlua_tointeger(L, 3);
|
|||
|
|
|||
|
UnityEngine.Rendering.RenderTargetIdentifier gen_ret = new UnityEngine.Rendering.RenderTargetIdentifier(_buf, _mipLevel);
|
|||
|
translator.Push(L, gen_ret);
|
|||
|
|
|||
|
return 1;
|
|||
|
}
|
|||
|
if(LuaAPI.lua_gettop(L) == 2 && translator.Assignable<UnityEngine.RenderBuffer>(L, 2))
|
|||
|
{
|
|||
|
UnityEngine.RenderBuffer _buf;translator.Get(L, 2, out _buf);
|
|||
|
|
|||
|
UnityEngine.Rendering.RenderTargetIdentifier gen_ret = new UnityEngine.Rendering.RenderTargetIdentifier(_buf);
|
|||
|
translator.Push(L, gen_ret);
|
|||
|
|
|||
|
return 1;
|
|||
|
}
|
|||
|
|
|||
|
if (LuaAPI.lua_gettop(L) == 1)
|
|||
|
{
|
|||
|
translator.Push(L, default(UnityEngine.Rendering.RenderTargetIdentifier));
|
|||
|
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.Rendering.RenderTargetIdentifier constructor!");
|
|||
|
|
|||
|
}
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|||
|
static int __EqMeta(RealStatePtr L)
|
|||
|
{
|
|||
|
|
|||
|
try {
|
|||
|
ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L);
|
|||
|
|
|||
|
|
|||
|
if (translator.Assignable<UnityEngine.Rendering.RenderTargetIdentifier>(L, 1) && translator.Assignable<UnityEngine.Rendering.RenderTargetIdentifier>(L, 2))
|
|||
|
{
|
|||
|
UnityEngine.Rendering.RenderTargetIdentifier leftside;translator.Get(L, 1, out leftside);
|
|||
|
UnityEngine.Rendering.RenderTargetIdentifier rightside;translator.Get(L, 2, out rightside);
|
|||
|
|
|||
|
LuaAPI.lua_pushboolean(L, leftside == rightside);
|
|||
|
|
|||
|
return 1;
|
|||
|
}
|
|||
|
|
|||
|
}
|
|||
|
catch(System.Exception gen_e) {
|
|||
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|||
|
}
|
|||
|
return LuaAPI.luaL_error(L, "invalid arguments to right hand of == operator, need UnityEngine.Rendering.RenderTargetIdentifier!");
|
|||
|
|
|||
|
}
|
|||
|
|
|||
|
|
|||
|
|
|||
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|||
|
static int _m_ToString(RealStatePtr L)
|
|||
|
{
|
|||
|
try {
|
|||
|
|
|||
|
ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L);
|
|||
|
|
|||
|
|
|||
|
UnityEngine.Rendering.RenderTargetIdentifier gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
|||
|
|
|||
|
|
|||
|
|
|||
|
{
|
|||
|
|
|||
|
string gen_ret = gen_to_be_invoked.ToString( );
|
|||
|
LuaAPI.lua_pushstring(L, gen_ret);
|
|||
|
|
|||
|
|
|||
|
translator.Update(L, 1, gen_to_be_invoked);
|
|||
|
|
|||
|
|
|||
|
return 1;
|
|||
|
}
|
|||
|
|
|||
|
} catch(System.Exception gen_e) {
|
|||
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|||
|
}
|
|||
|
|
|||
|
}
|
|||
|
|
|||
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|||
|
static int _m_GetHashCode(RealStatePtr L)
|
|||
|
{
|
|||
|
try {
|
|||
|
|
|||
|
ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L);
|
|||
|
|
|||
|
|
|||
|
UnityEngine.Rendering.RenderTargetIdentifier gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
|||
|
|
|||
|
|
|||
|
|
|||
|
{
|
|||
|
|
|||
|
int gen_ret = gen_to_be_invoked.GetHashCode( );
|
|||
|
LuaAPI.xlua_pushinteger(L, gen_ret);
|
|||
|
|
|||
|
|
|||
|
translator.Update(L, 1, gen_to_be_invoked);
|
|||
|
|
|||
|
|
|||
|
return 1;
|
|||
|
}
|
|||
|
|
|||
|
} catch(System.Exception gen_e) {
|
|||
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|||
|
}
|
|||
|
|
|||
|
}
|
|||
|
|
|||
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|||
|
static int _m_Equals(RealStatePtr L)
|
|||
|
{
|
|||
|
try {
|
|||
|
|
|||
|
ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L);
|
|||
|
|
|||
|
|
|||
|
UnityEngine.Rendering.RenderTargetIdentifier gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
|||
|
|
|||
|
|
|||
|
int gen_param_count = LuaAPI.lua_gettop(L);
|
|||
|
|
|||
|
if(gen_param_count == 2&& translator.Assignable<UnityEngine.Rendering.RenderTargetIdentifier>(L, 2))
|
|||
|
{
|
|||
|
UnityEngine.Rendering.RenderTargetIdentifier _rhs;translator.Get(L, 2, out _rhs);
|
|||
|
|
|||
|
bool gen_ret = gen_to_be_invoked.Equals( _rhs );
|
|||
|
LuaAPI.lua_pushboolean(L, gen_ret);
|
|||
|
|
|||
|
|
|||
|
translator.Update(L, 1, gen_to_be_invoked);
|
|||
|
|
|||
|
|
|||
|
return 1;
|
|||
|
}
|
|||
|
if(gen_param_count == 2&& translator.Assignable<object>(L, 2))
|
|||
|
{
|
|||
|
object _obj = translator.GetObject(L, 2, typeof(object));
|
|||
|
|
|||
|
bool gen_ret = gen_to_be_invoked.Equals( _obj );
|
|||
|
LuaAPI.lua_pushboolean(L, gen_ret);
|
|||
|
|
|||
|
|
|||
|
translator.Update(L, 1, gen_to_be_invoked);
|
|||
|
|
|||
|
|
|||
|
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.Rendering.RenderTargetIdentifier.Equals!");
|
|||
|
|
|||
|
}
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
}
|
|||
|
}
|