//this source code was auto-generated by tolua#, do not modify it using System; using LuaInterface; public class UnityEngine_RenderTextureDescriptorWrap { public static void Register(LuaState L) { L.BeginClass(typeof(UnityEngine.RenderTextureDescriptor), null, "RenderTextureDescriptor"); L.RegFunction("New", _CreateUnityEngine_RenderTextureDescriptor); L.RegFunction("__tostring", ToLua.op_ToString); L.RegVar("width", get_width, set_width); L.RegVar("height", get_height, set_height); L.RegVar("msaaSamples", get_msaaSamples, set_msaaSamples); L.RegVar("volumeDepth", get_volumeDepth, set_volumeDepth); L.RegVar("colorFormat", get_colorFormat, set_colorFormat); L.RegVar("depthBufferBits", get_depthBufferBits, set_depthBufferBits); L.RegVar("dimension", get_dimension, set_dimension); L.RegVar("shadowSamplingMode", get_shadowSamplingMode, set_shadowSamplingMode); L.RegVar("vrUsage", get_vrUsage, set_vrUsage); L.RegVar("flags", get_flags, null); L.RegVar("memoryless", get_memoryless, set_memoryless); L.RegVar("sRGB", get_sRGB, set_sRGB); L.RegVar("useMipMap", get_useMipMap, set_useMipMap); L.RegVar("autoGenerateMips", get_autoGenerateMips, set_autoGenerateMips); L.RegVar("enableRandomWrite", get_enableRandomWrite, set_enableRandomWrite); L.RegVar("bindMS", get_bindMS, set_bindMS); L.EndClass(); } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _CreateUnityEngine_RenderTextureDescriptor(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); if (count == 2) { int arg0 = (int)LuaDLL.luaL_checknumber(L, 1); int arg1 = (int)LuaDLL.luaL_checknumber(L, 2); UnityEngine.RenderTextureDescriptor obj = new UnityEngine.RenderTextureDescriptor(arg0, arg1); ToLua.PushValue(L, obj); return 1; } else if (count == 3) { int arg0 = (int)LuaDLL.luaL_checknumber(L, 1); int arg1 = (int)LuaDLL.luaL_checknumber(L, 2); UnityEngine.RenderTextureFormat arg2 = (UnityEngine.RenderTextureFormat)ToLua.CheckObject(L, 3, typeof(UnityEngine.RenderTextureFormat)); UnityEngine.RenderTextureDescriptor obj = new UnityEngine.RenderTextureDescriptor(arg0, arg1, arg2); ToLua.PushValue(L, obj); return 1; } else if (count == 4) { int arg0 = (int)LuaDLL.luaL_checknumber(L, 1); int arg1 = (int)LuaDLL.luaL_checknumber(L, 2); UnityEngine.RenderTextureFormat arg2 = (UnityEngine.RenderTextureFormat)ToLua.CheckObject(L, 3, typeof(UnityEngine.RenderTextureFormat)); int arg3 = (int)LuaDLL.luaL_checknumber(L, 4); UnityEngine.RenderTextureDescriptor obj = new UnityEngine.RenderTextureDescriptor(arg0, arg1, arg2, arg3); ToLua.PushValue(L, obj); return 1; } else if (count == 0) { UnityEngine.RenderTextureDescriptor obj = new UnityEngine.RenderTextureDescriptor(); ToLua.PushValue(L, obj); return 1; } else { return LuaDLL.luaL_throw(L, "invalid arguments to ctor method: UnityEngine.RenderTextureDescriptor.New"); } } catch (Exception e) { return LuaDLL.toluaL_exception(L, e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int get_width(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UnityEngine.RenderTextureDescriptor obj = (UnityEngine.RenderTextureDescriptor)o; int ret = obj.width; LuaDLL.lua_pushinteger(L, ret); return 1; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index width on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int get_height(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UnityEngine.RenderTextureDescriptor obj = (UnityEngine.RenderTextureDescriptor)o; int ret = obj.height; LuaDLL.lua_pushinteger(L, ret); return 1; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index height on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int get_msaaSamples(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UnityEngine.RenderTextureDescriptor obj = (UnityEngine.RenderTextureDescriptor)o; int ret = obj.msaaSamples; LuaDLL.lua_pushinteger(L, ret); return 1; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index msaaSamples on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int get_volumeDepth(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UnityEngine.RenderTextureDescriptor obj = (UnityEngine.RenderTextureDescriptor)o; int ret = obj.volumeDepth; LuaDLL.lua_pushinteger(L, ret); return 1; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index volumeDepth on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int get_colorFormat(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UnityEngine.RenderTextureDescriptor obj = (UnityEngine.RenderTextureDescriptor)o; UnityEngine.RenderTextureFormat ret = obj.colorFormat; ToLua.Push(L, ret); return 1; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index colorFormat on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int get_depthBufferBits(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UnityEngine.RenderTextureDescriptor obj = (UnityEngine.RenderTextureDescriptor)o; int ret = obj.depthBufferBits; LuaDLL.lua_pushinteger(L, ret); return 1; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index depthBufferBits on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int get_dimension(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UnityEngine.RenderTextureDescriptor obj = (UnityEngine.RenderTextureDescriptor)o; UnityEngine.Rendering.TextureDimension ret = obj.dimension; ToLua.Push(L, ret); return 1; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index dimension on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int get_shadowSamplingMode(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UnityEngine.RenderTextureDescriptor obj = (UnityEngine.RenderTextureDescriptor)o; UnityEngine.Rendering.ShadowSamplingMode ret = obj.shadowSamplingMode; ToLua.Push(L, ret); return 1; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index shadowSamplingMode on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int get_vrUsage(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UnityEngine.RenderTextureDescriptor obj = (UnityEngine.RenderTextureDescriptor)o; UnityEngine.VRTextureUsage ret = obj.vrUsage; ToLua.Push(L, ret); return 1; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index vrUsage on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int get_flags(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UnityEngine.RenderTextureDescriptor obj = (UnityEngine.RenderTextureDescriptor)o; UnityEngine.RenderTextureCreationFlags ret = obj.flags; ToLua.Push(L, ret); return 1; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index flags on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int get_memoryless(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UnityEngine.RenderTextureDescriptor obj = (UnityEngine.RenderTextureDescriptor)o; UnityEngine.RenderTextureMemoryless ret = obj.memoryless; ToLua.Push(L, ret); return 1; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index memoryless on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int get_sRGB(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UnityEngine.RenderTextureDescriptor obj = (UnityEngine.RenderTextureDescriptor)o; bool ret = obj.sRGB; LuaDLL.lua_pushboolean(L, ret); return 1; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index sRGB on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int get_useMipMap(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UnityEngine.RenderTextureDescriptor obj = (UnityEngine.RenderTextureDescriptor)o; bool ret = obj.useMipMap; LuaDLL.lua_pushboolean(L, ret); return 1; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index useMipMap on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int get_autoGenerateMips(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UnityEngine.RenderTextureDescriptor obj = (UnityEngine.RenderTextureDescriptor)o; bool ret = obj.autoGenerateMips; LuaDLL.lua_pushboolean(L, ret); return 1; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index autoGenerateMips on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int get_enableRandomWrite(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UnityEngine.RenderTextureDescriptor obj = (UnityEngine.RenderTextureDescriptor)o; bool ret = obj.enableRandomWrite; LuaDLL.lua_pushboolean(L, ret); return 1; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index enableRandomWrite on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int get_bindMS(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UnityEngine.RenderTextureDescriptor obj = (UnityEngine.RenderTextureDescriptor)o; bool ret = obj.bindMS; LuaDLL.lua_pushboolean(L, ret); return 1; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index bindMS on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int set_width(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UnityEngine.RenderTextureDescriptor obj = (UnityEngine.RenderTextureDescriptor)o; int arg0 = (int)LuaDLL.luaL_checknumber(L, 2); obj.width = arg0; ToLua.SetBack(L, 1, obj); return 0; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index width on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int set_height(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UnityEngine.RenderTextureDescriptor obj = (UnityEngine.RenderTextureDescriptor)o; int arg0 = (int)LuaDLL.luaL_checknumber(L, 2); obj.height = arg0; ToLua.SetBack(L, 1, obj); return 0; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index height on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int set_msaaSamples(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UnityEngine.RenderTextureDescriptor obj = (UnityEngine.RenderTextureDescriptor)o; int arg0 = (int)LuaDLL.luaL_checknumber(L, 2); obj.msaaSamples = arg0; ToLua.SetBack(L, 1, obj); return 0; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index msaaSamples on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int set_volumeDepth(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UnityEngine.RenderTextureDescriptor obj = (UnityEngine.RenderTextureDescriptor)o; int arg0 = (int)LuaDLL.luaL_checknumber(L, 2); obj.volumeDepth = arg0; ToLua.SetBack(L, 1, obj); return 0; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index volumeDepth on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int set_colorFormat(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UnityEngine.RenderTextureDescriptor obj = (UnityEngine.RenderTextureDescriptor)o; UnityEngine.RenderTextureFormat arg0 = (UnityEngine.RenderTextureFormat)ToLua.CheckObject(L, 2, typeof(UnityEngine.RenderTextureFormat)); obj.colorFormat = arg0; ToLua.SetBack(L, 1, obj); return 0; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index colorFormat on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int set_depthBufferBits(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UnityEngine.RenderTextureDescriptor obj = (UnityEngine.RenderTextureDescriptor)o; int arg0 = (int)LuaDLL.luaL_checknumber(L, 2); obj.depthBufferBits = arg0; ToLua.SetBack(L, 1, obj); return 0; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index depthBufferBits on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int set_dimension(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UnityEngine.RenderTextureDescriptor obj = (UnityEngine.RenderTextureDescriptor)o; UnityEngine.Rendering.TextureDimension arg0 = (UnityEngine.Rendering.TextureDimension)ToLua.CheckObject(L, 2, typeof(UnityEngine.Rendering.TextureDimension)); obj.dimension = arg0; ToLua.SetBack(L, 1, obj); return 0; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index dimension on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int set_shadowSamplingMode(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UnityEngine.RenderTextureDescriptor obj = (UnityEngine.RenderTextureDescriptor)o; UnityEngine.Rendering.ShadowSamplingMode arg0 = (UnityEngine.Rendering.ShadowSamplingMode)ToLua.CheckObject(L, 2, typeof(UnityEngine.Rendering.ShadowSamplingMode)); obj.shadowSamplingMode = arg0; ToLua.SetBack(L, 1, obj); return 0; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index shadowSamplingMode on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int set_vrUsage(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UnityEngine.RenderTextureDescriptor obj = (UnityEngine.RenderTextureDescriptor)o; UnityEngine.VRTextureUsage arg0 = (UnityEngine.VRTextureUsage)ToLua.CheckObject(L, 2, typeof(UnityEngine.VRTextureUsage)); obj.vrUsage = arg0; ToLua.SetBack(L, 1, obj); return 0; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index vrUsage on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int set_memoryless(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UnityEngine.RenderTextureDescriptor obj = (UnityEngine.RenderTextureDescriptor)o; UnityEngine.RenderTextureMemoryless arg0 = (UnityEngine.RenderTextureMemoryless)ToLua.CheckObject(L, 2, typeof(UnityEngine.RenderTextureMemoryless)); obj.memoryless = arg0; ToLua.SetBack(L, 1, obj); return 0; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index memoryless on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int set_sRGB(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UnityEngine.RenderTextureDescriptor obj = (UnityEngine.RenderTextureDescriptor)o; bool arg0 = LuaDLL.luaL_checkboolean(L, 2); obj.sRGB = arg0; ToLua.SetBack(L, 1, obj); return 0; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index sRGB on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int set_useMipMap(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UnityEngine.RenderTextureDescriptor obj = (UnityEngine.RenderTextureDescriptor)o; bool arg0 = LuaDLL.luaL_checkboolean(L, 2); obj.useMipMap = arg0; ToLua.SetBack(L, 1, obj); return 0; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index useMipMap on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int set_autoGenerateMips(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UnityEngine.RenderTextureDescriptor obj = (UnityEngine.RenderTextureDescriptor)o; bool arg0 = LuaDLL.luaL_checkboolean(L, 2); obj.autoGenerateMips = arg0; ToLua.SetBack(L, 1, obj); return 0; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index autoGenerateMips on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int set_enableRandomWrite(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UnityEngine.RenderTextureDescriptor obj = (UnityEngine.RenderTextureDescriptor)o; bool arg0 = LuaDLL.luaL_checkboolean(L, 2); obj.enableRandomWrite = arg0; ToLua.SetBack(L, 1, obj); return 0; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index enableRandomWrite on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int set_bindMS(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UnityEngine.RenderTextureDescriptor obj = (UnityEngine.RenderTextureDescriptor)o; bool arg0 = LuaDLL.luaL_checkboolean(L, 2); obj.bindMS = arg0; ToLua.SetBack(L, 1, obj); return 0; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index bindMS on a nil value"); } } }