UnityEngine_RenderTextureWrap.cs 33 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195
  1. //this source code was auto-generated by tolua#, do not modify it
  2. using System;
  3. using LuaInterface;
  4. public class UnityEngine_RenderTextureWrap
  5. {
  6. public static void Register(LuaState L)
  7. {
  8. L.BeginClass(typeof(UnityEngine.RenderTexture), typeof(UnityEngine.Texture), "RenderTexture");
  9. L.RegFunction("GetNativeDepthBufferPtr", GetNativeDepthBufferPtr);
  10. L.RegFunction("DiscardContents", DiscardContents);
  11. L.RegFunction("MarkRestoreExpected", MarkRestoreExpected);
  12. L.RegFunction("ResolveAntiAliasedSurface", ResolveAntiAliasedSurface);
  13. L.RegFunction("SetGlobalShaderProperty", SetGlobalShaderProperty);
  14. L.RegFunction("Create", Create);
  15. L.RegFunction("Release", Release);
  16. L.RegFunction("IsCreated", IsCreated);
  17. L.RegFunction("GenerateMips", GenerateMips);
  18. L.RegFunction("ConvertToEquirect", ConvertToEquirect);
  19. L.RegFunction("SupportsStencil", SupportsStencil);
  20. L.RegFunction("ReleaseTemporary", ReleaseTemporary);
  21. L.RegFunction("GetTemporary", GetTemporary);
  22. L.RegFunction("New", _CreateUnityEngine_RenderTexture);
  23. L.RegFunction("__eq", op_Equality);
  24. L.RegFunction("__tostring", ToLua.op_ToString);
  25. L.RegVar("width", get_width, set_width);
  26. L.RegVar("height", get_height, set_height);
  27. L.RegVar("dimension", get_dimension, set_dimension);
  28. L.RegVar("useMipMap", get_useMipMap, set_useMipMap);
  29. L.RegVar("sRGB", get_sRGB, null);
  30. L.RegVar("format", get_format, set_format);
  31. L.RegVar("vrUsage", get_vrUsage, set_vrUsage);
  32. L.RegVar("memorylessMode", get_memorylessMode, set_memorylessMode);
  33. L.RegVar("autoGenerateMips", get_autoGenerateMips, set_autoGenerateMips);
  34. L.RegVar("volumeDepth", get_volumeDepth, set_volumeDepth);
  35. L.RegVar("antiAliasing", get_antiAliasing, set_antiAliasing);
  36. L.RegVar("bindTextureMS", get_bindTextureMS, set_bindTextureMS);
  37. L.RegVar("enableRandomWrite", get_enableRandomWrite, set_enableRandomWrite);
  38. L.RegVar("useDynamicScale", get_useDynamicScale, set_useDynamicScale);
  39. L.RegVar("isPowerOfTwo", get_isPowerOfTwo, set_isPowerOfTwo);
  40. L.RegVar("active", get_active, set_active);
  41. L.RegVar("colorBuffer", get_colorBuffer, null);
  42. L.RegVar("depthBuffer", get_depthBuffer, null);
  43. L.RegVar("depth", get_depth, set_depth);
  44. L.RegVar("descriptor", get_descriptor, set_descriptor);
  45. L.EndClass();
  46. }
  47. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  48. static int _CreateUnityEngine_RenderTexture(IntPtr L)
  49. {
  50. try
  51. {
  52. int count = LuaDLL.lua_gettop(L);
  53. if (count == 1 && TypeChecker.CheckTypes<UnityEngine.RenderTextureDescriptor>(L, 1))
  54. {
  55. UnityEngine.RenderTextureDescriptor arg0 = StackTraits<UnityEngine.RenderTextureDescriptor>.To(L, 1);
  56. UnityEngine.RenderTexture obj = new UnityEngine.RenderTexture(arg0);
  57. ToLua.Push(L, obj);
  58. return 1;
  59. }
  60. else if (count == 1 && TypeChecker.CheckTypes<UnityEngine.RenderTexture>(L, 1))
  61. {
  62. UnityEngine.RenderTexture arg0 = (UnityEngine.RenderTexture)ToLua.ToObject(L, 1);
  63. UnityEngine.RenderTexture obj = new UnityEngine.RenderTexture(arg0);
  64. ToLua.Push(L, obj);
  65. return 1;
  66. }
  67. else if (count == 3)
  68. {
  69. int arg0 = (int)LuaDLL.luaL_checknumber(L, 1);
  70. int arg1 = (int)LuaDLL.luaL_checknumber(L, 2);
  71. int arg2 = (int)LuaDLL.luaL_checknumber(L, 3);
  72. UnityEngine.RenderTexture obj = new UnityEngine.RenderTexture(arg0, arg1, arg2);
  73. ToLua.Push(L, obj);
  74. return 1;
  75. }
  76. else if (count == 4 && TypeChecker.CheckTypes<UnityEngine.Experimental.Rendering.GraphicsFormat>(L, 4))
  77. {
  78. int arg0 = (int)LuaDLL.luaL_checknumber(L, 1);
  79. int arg1 = (int)LuaDLL.luaL_checknumber(L, 2);
  80. int arg2 = (int)LuaDLL.luaL_checknumber(L, 3);
  81. UnityEngine.Experimental.Rendering.GraphicsFormat arg3 = (UnityEngine.Experimental.Rendering.GraphicsFormat)ToLua.ToObject(L, 4);
  82. UnityEngine.RenderTexture obj = new UnityEngine.RenderTexture(arg0, arg1, arg2, arg3);
  83. ToLua.Push(L, obj);
  84. return 1;
  85. }
  86. else if (count == 4 && TypeChecker.CheckTypes<UnityEngine.RenderTextureFormat>(L, 4))
  87. {
  88. int arg0 = (int)LuaDLL.luaL_checknumber(L, 1);
  89. int arg1 = (int)LuaDLL.luaL_checknumber(L, 2);
  90. int arg2 = (int)LuaDLL.luaL_checknumber(L, 3);
  91. UnityEngine.RenderTextureFormat arg3 = (UnityEngine.RenderTextureFormat)ToLua.ToObject(L, 4);
  92. UnityEngine.RenderTexture obj = new UnityEngine.RenderTexture(arg0, arg1, arg2, arg3);
  93. ToLua.Push(L, obj);
  94. return 1;
  95. }
  96. else if (count == 5)
  97. {
  98. int arg0 = (int)LuaDLL.luaL_checknumber(L, 1);
  99. int arg1 = (int)LuaDLL.luaL_checknumber(L, 2);
  100. int arg2 = (int)LuaDLL.luaL_checknumber(L, 3);
  101. UnityEngine.RenderTextureFormat arg3 = (UnityEngine.RenderTextureFormat)ToLua.CheckObject(L, 4, typeof(UnityEngine.RenderTextureFormat));
  102. UnityEngine.RenderTextureReadWrite arg4 = (UnityEngine.RenderTextureReadWrite)ToLua.CheckObject(L, 5, typeof(UnityEngine.RenderTextureReadWrite));
  103. UnityEngine.RenderTexture obj = new UnityEngine.RenderTexture(arg0, arg1, arg2, arg3, arg4);
  104. ToLua.Push(L, obj);
  105. return 1;
  106. }
  107. else
  108. {
  109. return LuaDLL.luaL_throw(L, "invalid arguments to ctor method: UnityEngine.RenderTexture.New");
  110. }
  111. }
  112. catch (Exception e)
  113. {
  114. return LuaDLL.toluaL_exception(L, e);
  115. }
  116. }
  117. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  118. static int GetNativeDepthBufferPtr(IntPtr L)
  119. {
  120. try
  121. {
  122. ToLua.CheckArgsCount(L, 1);
  123. UnityEngine.RenderTexture obj = (UnityEngine.RenderTexture)ToLua.CheckObject<UnityEngine.RenderTexture>(L, 1);
  124. System.IntPtr o = obj.GetNativeDepthBufferPtr();
  125. LuaDLL.lua_pushlightuserdata(L, o);
  126. return 1;
  127. }
  128. catch (Exception e)
  129. {
  130. return LuaDLL.toluaL_exception(L, e);
  131. }
  132. }
  133. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  134. static int DiscardContents(IntPtr L)
  135. {
  136. try
  137. {
  138. int count = LuaDLL.lua_gettop(L);
  139. if (count == 1)
  140. {
  141. UnityEngine.RenderTexture obj = (UnityEngine.RenderTexture)ToLua.CheckObject<UnityEngine.RenderTexture>(L, 1);
  142. obj.DiscardContents();
  143. return 0;
  144. }
  145. else if (count == 3)
  146. {
  147. UnityEngine.RenderTexture obj = (UnityEngine.RenderTexture)ToLua.CheckObject<UnityEngine.RenderTexture>(L, 1);
  148. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  149. bool arg1 = LuaDLL.luaL_checkboolean(L, 3);
  150. obj.DiscardContents(arg0, arg1);
  151. return 0;
  152. }
  153. else
  154. {
  155. return LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.RenderTexture.DiscardContents");
  156. }
  157. }
  158. catch (Exception e)
  159. {
  160. return LuaDLL.toluaL_exception(L, e);
  161. }
  162. }
  163. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  164. static int MarkRestoreExpected(IntPtr L)
  165. {
  166. try
  167. {
  168. ToLua.CheckArgsCount(L, 1);
  169. UnityEngine.RenderTexture obj = (UnityEngine.RenderTexture)ToLua.CheckObject<UnityEngine.RenderTexture>(L, 1);
  170. obj.MarkRestoreExpected();
  171. return 0;
  172. }
  173. catch (Exception e)
  174. {
  175. return LuaDLL.toluaL_exception(L, e);
  176. }
  177. }
  178. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  179. static int ResolveAntiAliasedSurface(IntPtr L)
  180. {
  181. try
  182. {
  183. int count = LuaDLL.lua_gettop(L);
  184. if (count == 1)
  185. {
  186. UnityEngine.RenderTexture obj = (UnityEngine.RenderTexture)ToLua.CheckObject<UnityEngine.RenderTexture>(L, 1);
  187. obj.ResolveAntiAliasedSurface();
  188. return 0;
  189. }
  190. else if (count == 2)
  191. {
  192. UnityEngine.RenderTexture obj = (UnityEngine.RenderTexture)ToLua.CheckObject<UnityEngine.RenderTexture>(L, 1);
  193. UnityEngine.RenderTexture arg0 = (UnityEngine.RenderTexture)ToLua.CheckObject<UnityEngine.RenderTexture>(L, 2);
  194. obj.ResolveAntiAliasedSurface(arg0);
  195. return 0;
  196. }
  197. else
  198. {
  199. return LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.RenderTexture.ResolveAntiAliasedSurface");
  200. }
  201. }
  202. catch (Exception e)
  203. {
  204. return LuaDLL.toluaL_exception(L, e);
  205. }
  206. }
  207. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  208. static int SetGlobalShaderProperty(IntPtr L)
  209. {
  210. try
  211. {
  212. ToLua.CheckArgsCount(L, 2);
  213. UnityEngine.RenderTexture obj = (UnityEngine.RenderTexture)ToLua.CheckObject<UnityEngine.RenderTexture>(L, 1);
  214. string arg0 = ToLua.CheckString(L, 2);
  215. obj.SetGlobalShaderProperty(arg0);
  216. return 0;
  217. }
  218. catch (Exception e)
  219. {
  220. return LuaDLL.toluaL_exception(L, e);
  221. }
  222. }
  223. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  224. static int Create(IntPtr L)
  225. {
  226. try
  227. {
  228. ToLua.CheckArgsCount(L, 1);
  229. UnityEngine.RenderTexture obj = (UnityEngine.RenderTexture)ToLua.CheckObject<UnityEngine.RenderTexture>(L, 1);
  230. bool o = obj.Create();
  231. LuaDLL.lua_pushboolean(L, o);
  232. return 1;
  233. }
  234. catch (Exception e)
  235. {
  236. return LuaDLL.toluaL_exception(L, e);
  237. }
  238. }
  239. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  240. static int Release(IntPtr L)
  241. {
  242. try
  243. {
  244. ToLua.CheckArgsCount(L, 1);
  245. UnityEngine.RenderTexture obj = (UnityEngine.RenderTexture)ToLua.CheckObject<UnityEngine.RenderTexture>(L, 1);
  246. obj.Release();
  247. return 0;
  248. }
  249. catch (Exception e)
  250. {
  251. return LuaDLL.toluaL_exception(L, e);
  252. }
  253. }
  254. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  255. static int IsCreated(IntPtr L)
  256. {
  257. try
  258. {
  259. ToLua.CheckArgsCount(L, 1);
  260. UnityEngine.RenderTexture obj = (UnityEngine.RenderTexture)ToLua.CheckObject<UnityEngine.RenderTexture>(L, 1);
  261. bool o = obj.IsCreated();
  262. LuaDLL.lua_pushboolean(L, o);
  263. return 1;
  264. }
  265. catch (Exception e)
  266. {
  267. return LuaDLL.toluaL_exception(L, e);
  268. }
  269. }
  270. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  271. static int GenerateMips(IntPtr L)
  272. {
  273. try
  274. {
  275. ToLua.CheckArgsCount(L, 1);
  276. UnityEngine.RenderTexture obj = (UnityEngine.RenderTexture)ToLua.CheckObject<UnityEngine.RenderTexture>(L, 1);
  277. obj.GenerateMips();
  278. return 0;
  279. }
  280. catch (Exception e)
  281. {
  282. return LuaDLL.toluaL_exception(L, e);
  283. }
  284. }
  285. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  286. static int ConvertToEquirect(IntPtr L)
  287. {
  288. try
  289. {
  290. int count = LuaDLL.lua_gettop(L);
  291. if (count == 2)
  292. {
  293. UnityEngine.RenderTexture obj = (UnityEngine.RenderTexture)ToLua.CheckObject<UnityEngine.RenderTexture>(L, 1);
  294. UnityEngine.RenderTexture arg0 = (UnityEngine.RenderTexture)ToLua.CheckObject<UnityEngine.RenderTexture>(L, 2);
  295. obj.ConvertToEquirect(arg0);
  296. return 0;
  297. }
  298. else if (count == 3)
  299. {
  300. UnityEngine.RenderTexture obj = (UnityEngine.RenderTexture)ToLua.CheckObject<UnityEngine.RenderTexture>(L, 1);
  301. UnityEngine.RenderTexture arg0 = (UnityEngine.RenderTexture)ToLua.CheckObject<UnityEngine.RenderTexture>(L, 2);
  302. UnityEngine.Camera.MonoOrStereoscopicEye arg1 = (UnityEngine.Camera.MonoOrStereoscopicEye)ToLua.CheckObject(L, 3, typeof(UnityEngine.Camera.MonoOrStereoscopicEye));
  303. obj.ConvertToEquirect(arg0, arg1);
  304. return 0;
  305. }
  306. else
  307. {
  308. return LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.RenderTexture.ConvertToEquirect");
  309. }
  310. }
  311. catch (Exception e)
  312. {
  313. return LuaDLL.toluaL_exception(L, e);
  314. }
  315. }
  316. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  317. static int SupportsStencil(IntPtr L)
  318. {
  319. try
  320. {
  321. ToLua.CheckArgsCount(L, 1);
  322. UnityEngine.RenderTexture arg0 = (UnityEngine.RenderTexture)ToLua.CheckObject<UnityEngine.RenderTexture>(L, 1);
  323. bool o = UnityEngine.RenderTexture.SupportsStencil(arg0);
  324. LuaDLL.lua_pushboolean(L, o);
  325. return 1;
  326. }
  327. catch (Exception e)
  328. {
  329. return LuaDLL.toluaL_exception(L, e);
  330. }
  331. }
  332. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  333. static int ReleaseTemporary(IntPtr L)
  334. {
  335. try
  336. {
  337. ToLua.CheckArgsCount(L, 1);
  338. UnityEngine.RenderTexture arg0 = (UnityEngine.RenderTexture)ToLua.CheckObject<UnityEngine.RenderTexture>(L, 1);
  339. UnityEngine.RenderTexture.ReleaseTemporary(arg0);
  340. return 0;
  341. }
  342. catch (Exception e)
  343. {
  344. return LuaDLL.toluaL_exception(L, e);
  345. }
  346. }
  347. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  348. static int GetTemporary(IntPtr L)
  349. {
  350. try
  351. {
  352. int count = LuaDLL.lua_gettop(L);
  353. if (count == 1)
  354. {
  355. UnityEngine.RenderTextureDescriptor arg0 = StackTraits<UnityEngine.RenderTextureDescriptor>.Check(L, 1);
  356. UnityEngine.RenderTexture o = UnityEngine.RenderTexture.GetTemporary(arg0);
  357. ToLua.Push(L, o);
  358. return 1;
  359. }
  360. else if (count == 2)
  361. {
  362. int arg0 = (int)LuaDLL.luaL_checknumber(L, 1);
  363. int arg1 = (int)LuaDLL.luaL_checknumber(L, 2);
  364. UnityEngine.RenderTexture o = UnityEngine.RenderTexture.GetTemporary(arg0, arg1);
  365. ToLua.Push(L, o);
  366. return 1;
  367. }
  368. else if (count == 3)
  369. {
  370. int arg0 = (int)LuaDLL.luaL_checknumber(L, 1);
  371. int arg1 = (int)LuaDLL.luaL_checknumber(L, 2);
  372. int arg2 = (int)LuaDLL.luaL_checknumber(L, 3);
  373. UnityEngine.RenderTexture o = UnityEngine.RenderTexture.GetTemporary(arg0, arg1, arg2);
  374. ToLua.Push(L, o);
  375. return 1;
  376. }
  377. else if (count == 4)
  378. {
  379. int arg0 = (int)LuaDLL.luaL_checknumber(L, 1);
  380. int arg1 = (int)LuaDLL.luaL_checknumber(L, 2);
  381. int arg2 = (int)LuaDLL.luaL_checknumber(L, 3);
  382. UnityEngine.RenderTextureFormat arg3 = (UnityEngine.RenderTextureFormat)ToLua.CheckObject(L, 4, typeof(UnityEngine.RenderTextureFormat));
  383. UnityEngine.RenderTexture o = UnityEngine.RenderTexture.GetTemporary(arg0, arg1, arg2, arg3);
  384. ToLua.Push(L, o);
  385. return 1;
  386. }
  387. else if (count == 5)
  388. {
  389. int arg0 = (int)LuaDLL.luaL_checknumber(L, 1);
  390. int arg1 = (int)LuaDLL.luaL_checknumber(L, 2);
  391. int arg2 = (int)LuaDLL.luaL_checknumber(L, 3);
  392. UnityEngine.RenderTextureFormat arg3 = (UnityEngine.RenderTextureFormat)ToLua.CheckObject(L, 4, typeof(UnityEngine.RenderTextureFormat));
  393. UnityEngine.RenderTextureReadWrite arg4 = (UnityEngine.RenderTextureReadWrite)ToLua.CheckObject(L, 5, typeof(UnityEngine.RenderTextureReadWrite));
  394. UnityEngine.RenderTexture o = UnityEngine.RenderTexture.GetTemporary(arg0, arg1, arg2, arg3, arg4);
  395. ToLua.Push(L, o);
  396. return 1;
  397. }
  398. else if (count == 6)
  399. {
  400. int arg0 = (int)LuaDLL.luaL_checknumber(L, 1);
  401. int arg1 = (int)LuaDLL.luaL_checknumber(L, 2);
  402. int arg2 = (int)LuaDLL.luaL_checknumber(L, 3);
  403. UnityEngine.RenderTextureFormat arg3 = (UnityEngine.RenderTextureFormat)ToLua.CheckObject(L, 4, typeof(UnityEngine.RenderTextureFormat));
  404. UnityEngine.RenderTextureReadWrite arg4 = (UnityEngine.RenderTextureReadWrite)ToLua.CheckObject(L, 5, typeof(UnityEngine.RenderTextureReadWrite));
  405. int arg5 = (int)LuaDLL.luaL_checknumber(L, 6);
  406. UnityEngine.RenderTexture o = UnityEngine.RenderTexture.GetTemporary(arg0, arg1, arg2, arg3, arg4, arg5);
  407. ToLua.Push(L, o);
  408. return 1;
  409. }
  410. else if (count == 7)
  411. {
  412. int arg0 = (int)LuaDLL.luaL_checknumber(L, 1);
  413. int arg1 = (int)LuaDLL.luaL_checknumber(L, 2);
  414. int arg2 = (int)LuaDLL.luaL_checknumber(L, 3);
  415. UnityEngine.RenderTextureFormat arg3 = (UnityEngine.RenderTextureFormat)ToLua.CheckObject(L, 4, typeof(UnityEngine.RenderTextureFormat));
  416. UnityEngine.RenderTextureReadWrite arg4 = (UnityEngine.RenderTextureReadWrite)ToLua.CheckObject(L, 5, typeof(UnityEngine.RenderTextureReadWrite));
  417. int arg5 = (int)LuaDLL.luaL_checknumber(L, 6);
  418. UnityEngine.RenderTextureMemoryless arg6 = (UnityEngine.RenderTextureMemoryless)ToLua.CheckObject(L, 7, typeof(UnityEngine.RenderTextureMemoryless));
  419. UnityEngine.RenderTexture o = UnityEngine.RenderTexture.GetTemporary(arg0, arg1, arg2, arg3, arg4, arg5, arg6);
  420. ToLua.Push(L, o);
  421. return 1;
  422. }
  423. else if (count == 8)
  424. {
  425. int arg0 = (int)LuaDLL.luaL_checknumber(L, 1);
  426. int arg1 = (int)LuaDLL.luaL_checknumber(L, 2);
  427. int arg2 = (int)LuaDLL.luaL_checknumber(L, 3);
  428. UnityEngine.RenderTextureFormat arg3 = (UnityEngine.RenderTextureFormat)ToLua.CheckObject(L, 4, typeof(UnityEngine.RenderTextureFormat));
  429. UnityEngine.RenderTextureReadWrite arg4 = (UnityEngine.RenderTextureReadWrite)ToLua.CheckObject(L, 5, typeof(UnityEngine.RenderTextureReadWrite));
  430. int arg5 = (int)LuaDLL.luaL_checknumber(L, 6);
  431. UnityEngine.RenderTextureMemoryless arg6 = (UnityEngine.RenderTextureMemoryless)ToLua.CheckObject(L, 7, typeof(UnityEngine.RenderTextureMemoryless));
  432. UnityEngine.VRTextureUsage arg7 = (UnityEngine.VRTextureUsage)ToLua.CheckObject(L, 8, typeof(UnityEngine.VRTextureUsage));
  433. UnityEngine.RenderTexture o = UnityEngine.RenderTexture.GetTemporary(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7);
  434. ToLua.Push(L, o);
  435. return 1;
  436. }
  437. else if (count == 9)
  438. {
  439. int arg0 = (int)LuaDLL.luaL_checknumber(L, 1);
  440. int arg1 = (int)LuaDLL.luaL_checknumber(L, 2);
  441. int arg2 = (int)LuaDLL.luaL_checknumber(L, 3);
  442. UnityEngine.RenderTextureFormat arg3 = (UnityEngine.RenderTextureFormat)ToLua.CheckObject(L, 4, typeof(UnityEngine.RenderTextureFormat));
  443. UnityEngine.RenderTextureReadWrite arg4 = (UnityEngine.RenderTextureReadWrite)ToLua.CheckObject(L, 5, typeof(UnityEngine.RenderTextureReadWrite));
  444. int arg5 = (int)LuaDLL.luaL_checknumber(L, 6);
  445. UnityEngine.RenderTextureMemoryless arg6 = (UnityEngine.RenderTextureMemoryless)ToLua.CheckObject(L, 7, typeof(UnityEngine.RenderTextureMemoryless));
  446. UnityEngine.VRTextureUsage arg7 = (UnityEngine.VRTextureUsage)ToLua.CheckObject(L, 8, typeof(UnityEngine.VRTextureUsage));
  447. bool arg8 = LuaDLL.luaL_checkboolean(L, 9);
  448. UnityEngine.RenderTexture o = UnityEngine.RenderTexture.GetTemporary(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8);
  449. ToLua.Push(L, o);
  450. return 1;
  451. }
  452. else
  453. {
  454. return LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.RenderTexture.GetTemporary");
  455. }
  456. }
  457. catch (Exception e)
  458. {
  459. return LuaDLL.toluaL_exception(L, e);
  460. }
  461. }
  462. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  463. static int op_Equality(IntPtr L)
  464. {
  465. try
  466. {
  467. ToLua.CheckArgsCount(L, 2);
  468. UnityEngine.Object arg0 = (UnityEngine.Object)ToLua.ToObject(L, 1);
  469. UnityEngine.Object arg1 = (UnityEngine.Object)ToLua.ToObject(L, 2);
  470. bool o = arg0 == arg1;
  471. LuaDLL.lua_pushboolean(L, o);
  472. return 1;
  473. }
  474. catch (Exception e)
  475. {
  476. return LuaDLL.toluaL_exception(L, e);
  477. }
  478. }
  479. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  480. static int get_width(IntPtr L)
  481. {
  482. object o = null;
  483. try
  484. {
  485. o = ToLua.ToObject(L, 1);
  486. UnityEngine.RenderTexture obj = (UnityEngine.RenderTexture)o;
  487. int ret = obj.width;
  488. LuaDLL.lua_pushinteger(L, ret);
  489. return 1;
  490. }
  491. catch(Exception e)
  492. {
  493. return LuaDLL.toluaL_exception(L, e, o, "attempt to index width on a nil value");
  494. }
  495. }
  496. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  497. static int get_height(IntPtr L)
  498. {
  499. object o = null;
  500. try
  501. {
  502. o = ToLua.ToObject(L, 1);
  503. UnityEngine.RenderTexture obj = (UnityEngine.RenderTexture)o;
  504. int ret = obj.height;
  505. LuaDLL.lua_pushinteger(L, ret);
  506. return 1;
  507. }
  508. catch(Exception e)
  509. {
  510. return LuaDLL.toluaL_exception(L, e, o, "attempt to index height on a nil value");
  511. }
  512. }
  513. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  514. static int get_dimension(IntPtr L)
  515. {
  516. object o = null;
  517. try
  518. {
  519. o = ToLua.ToObject(L, 1);
  520. UnityEngine.RenderTexture obj = (UnityEngine.RenderTexture)o;
  521. UnityEngine.Rendering.TextureDimension ret = obj.dimension;
  522. ToLua.Push(L, ret);
  523. return 1;
  524. }
  525. catch(Exception e)
  526. {
  527. return LuaDLL.toluaL_exception(L, e, o, "attempt to index dimension on a nil value");
  528. }
  529. }
  530. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  531. static int get_useMipMap(IntPtr L)
  532. {
  533. object o = null;
  534. try
  535. {
  536. o = ToLua.ToObject(L, 1);
  537. UnityEngine.RenderTexture obj = (UnityEngine.RenderTexture)o;
  538. bool ret = obj.useMipMap;
  539. LuaDLL.lua_pushboolean(L, ret);
  540. return 1;
  541. }
  542. catch(Exception e)
  543. {
  544. return LuaDLL.toluaL_exception(L, e, o, "attempt to index useMipMap on a nil value");
  545. }
  546. }
  547. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  548. static int get_sRGB(IntPtr L)
  549. {
  550. object o = null;
  551. try
  552. {
  553. o = ToLua.ToObject(L, 1);
  554. UnityEngine.RenderTexture obj = (UnityEngine.RenderTexture)o;
  555. bool ret = obj.sRGB;
  556. LuaDLL.lua_pushboolean(L, ret);
  557. return 1;
  558. }
  559. catch(Exception e)
  560. {
  561. return LuaDLL.toluaL_exception(L, e, o, "attempt to index sRGB on a nil value");
  562. }
  563. }
  564. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  565. static int get_format(IntPtr L)
  566. {
  567. object o = null;
  568. try
  569. {
  570. o = ToLua.ToObject(L, 1);
  571. UnityEngine.RenderTexture obj = (UnityEngine.RenderTexture)o;
  572. UnityEngine.RenderTextureFormat ret = obj.format;
  573. ToLua.Push(L, ret);
  574. return 1;
  575. }
  576. catch(Exception e)
  577. {
  578. return LuaDLL.toluaL_exception(L, e, o, "attempt to index format on a nil value");
  579. }
  580. }
  581. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  582. static int get_vrUsage(IntPtr L)
  583. {
  584. object o = null;
  585. try
  586. {
  587. o = ToLua.ToObject(L, 1);
  588. UnityEngine.RenderTexture obj = (UnityEngine.RenderTexture)o;
  589. UnityEngine.VRTextureUsage ret = obj.vrUsage;
  590. ToLua.Push(L, ret);
  591. return 1;
  592. }
  593. catch(Exception e)
  594. {
  595. return LuaDLL.toluaL_exception(L, e, o, "attempt to index vrUsage on a nil value");
  596. }
  597. }
  598. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  599. static int get_memorylessMode(IntPtr L)
  600. {
  601. object o = null;
  602. try
  603. {
  604. o = ToLua.ToObject(L, 1);
  605. UnityEngine.RenderTexture obj = (UnityEngine.RenderTexture)o;
  606. UnityEngine.RenderTextureMemoryless ret = obj.memorylessMode;
  607. ToLua.Push(L, ret);
  608. return 1;
  609. }
  610. catch(Exception e)
  611. {
  612. return LuaDLL.toluaL_exception(L, e, o, "attempt to index memorylessMode on a nil value");
  613. }
  614. }
  615. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  616. static int get_autoGenerateMips(IntPtr L)
  617. {
  618. object o = null;
  619. try
  620. {
  621. o = ToLua.ToObject(L, 1);
  622. UnityEngine.RenderTexture obj = (UnityEngine.RenderTexture)o;
  623. bool ret = obj.autoGenerateMips;
  624. LuaDLL.lua_pushboolean(L, ret);
  625. return 1;
  626. }
  627. catch(Exception e)
  628. {
  629. return LuaDLL.toluaL_exception(L, e, o, "attempt to index autoGenerateMips on a nil value");
  630. }
  631. }
  632. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  633. static int get_volumeDepth(IntPtr L)
  634. {
  635. object o = null;
  636. try
  637. {
  638. o = ToLua.ToObject(L, 1);
  639. UnityEngine.RenderTexture obj = (UnityEngine.RenderTexture)o;
  640. int ret = obj.volumeDepth;
  641. LuaDLL.lua_pushinteger(L, ret);
  642. return 1;
  643. }
  644. catch(Exception e)
  645. {
  646. return LuaDLL.toluaL_exception(L, e, o, "attempt to index volumeDepth on a nil value");
  647. }
  648. }
  649. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  650. static int get_antiAliasing(IntPtr L)
  651. {
  652. object o = null;
  653. try
  654. {
  655. o = ToLua.ToObject(L, 1);
  656. UnityEngine.RenderTexture obj = (UnityEngine.RenderTexture)o;
  657. int ret = obj.antiAliasing;
  658. LuaDLL.lua_pushinteger(L, ret);
  659. return 1;
  660. }
  661. catch(Exception e)
  662. {
  663. return LuaDLL.toluaL_exception(L, e, o, "attempt to index antiAliasing on a nil value");
  664. }
  665. }
  666. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  667. static int get_bindTextureMS(IntPtr L)
  668. {
  669. object o = null;
  670. try
  671. {
  672. o = ToLua.ToObject(L, 1);
  673. UnityEngine.RenderTexture obj = (UnityEngine.RenderTexture)o;
  674. bool ret = obj.bindTextureMS;
  675. LuaDLL.lua_pushboolean(L, ret);
  676. return 1;
  677. }
  678. catch(Exception e)
  679. {
  680. return LuaDLL.toluaL_exception(L, e, o, "attempt to index bindTextureMS on a nil value");
  681. }
  682. }
  683. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  684. static int get_enableRandomWrite(IntPtr L)
  685. {
  686. object o = null;
  687. try
  688. {
  689. o = ToLua.ToObject(L, 1);
  690. UnityEngine.RenderTexture obj = (UnityEngine.RenderTexture)o;
  691. bool ret = obj.enableRandomWrite;
  692. LuaDLL.lua_pushboolean(L, ret);
  693. return 1;
  694. }
  695. catch(Exception e)
  696. {
  697. return LuaDLL.toluaL_exception(L, e, o, "attempt to index enableRandomWrite on a nil value");
  698. }
  699. }
  700. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  701. static int get_useDynamicScale(IntPtr L)
  702. {
  703. object o = null;
  704. try
  705. {
  706. o = ToLua.ToObject(L, 1);
  707. UnityEngine.RenderTexture obj = (UnityEngine.RenderTexture)o;
  708. bool ret = obj.useDynamicScale;
  709. LuaDLL.lua_pushboolean(L, ret);
  710. return 1;
  711. }
  712. catch(Exception e)
  713. {
  714. return LuaDLL.toluaL_exception(L, e, o, "attempt to index useDynamicScale on a nil value");
  715. }
  716. }
  717. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  718. static int get_isPowerOfTwo(IntPtr L)
  719. {
  720. object o = null;
  721. try
  722. {
  723. o = ToLua.ToObject(L, 1);
  724. UnityEngine.RenderTexture obj = (UnityEngine.RenderTexture)o;
  725. bool ret = obj.isPowerOfTwo;
  726. LuaDLL.lua_pushboolean(L, ret);
  727. return 1;
  728. }
  729. catch(Exception e)
  730. {
  731. return LuaDLL.toluaL_exception(L, e, o, "attempt to index isPowerOfTwo on a nil value");
  732. }
  733. }
  734. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  735. static int get_active(IntPtr L)
  736. {
  737. try
  738. {
  739. ToLua.Push(L, UnityEngine.RenderTexture.active);
  740. return 1;
  741. }
  742. catch (Exception e)
  743. {
  744. return LuaDLL.toluaL_exception(L, e);
  745. }
  746. }
  747. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  748. static int get_colorBuffer(IntPtr L)
  749. {
  750. object o = null;
  751. try
  752. {
  753. o = ToLua.ToObject(L, 1);
  754. UnityEngine.RenderTexture obj = (UnityEngine.RenderTexture)o;
  755. UnityEngine.RenderBuffer ret = obj.colorBuffer;
  756. ToLua.PushValue(L, ret);
  757. return 1;
  758. }
  759. catch(Exception e)
  760. {
  761. return LuaDLL.toluaL_exception(L, e, o, "attempt to index colorBuffer on a nil value");
  762. }
  763. }
  764. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  765. static int get_depthBuffer(IntPtr L)
  766. {
  767. object o = null;
  768. try
  769. {
  770. o = ToLua.ToObject(L, 1);
  771. UnityEngine.RenderTexture obj = (UnityEngine.RenderTexture)o;
  772. UnityEngine.RenderBuffer ret = obj.depthBuffer;
  773. ToLua.PushValue(L, ret);
  774. return 1;
  775. }
  776. catch(Exception e)
  777. {
  778. return LuaDLL.toluaL_exception(L, e, o, "attempt to index depthBuffer on a nil value");
  779. }
  780. }
  781. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  782. static int get_depth(IntPtr L)
  783. {
  784. object o = null;
  785. try
  786. {
  787. o = ToLua.ToObject(L, 1);
  788. UnityEngine.RenderTexture obj = (UnityEngine.RenderTexture)o;
  789. int ret = obj.depth;
  790. LuaDLL.lua_pushinteger(L, ret);
  791. return 1;
  792. }
  793. catch(Exception e)
  794. {
  795. return LuaDLL.toluaL_exception(L, e, o, "attempt to index depth on a nil value");
  796. }
  797. }
  798. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  799. static int get_descriptor(IntPtr L)
  800. {
  801. object o = null;
  802. try
  803. {
  804. o = ToLua.ToObject(L, 1);
  805. UnityEngine.RenderTexture obj = (UnityEngine.RenderTexture)o;
  806. UnityEngine.RenderTextureDescriptor ret = obj.descriptor;
  807. ToLua.PushValue(L, ret);
  808. return 1;
  809. }
  810. catch(Exception e)
  811. {
  812. return LuaDLL.toluaL_exception(L, e, o, "attempt to index descriptor on a nil value");
  813. }
  814. }
  815. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  816. static int set_width(IntPtr L)
  817. {
  818. object o = null;
  819. try
  820. {
  821. o = ToLua.ToObject(L, 1);
  822. UnityEngine.RenderTexture obj = (UnityEngine.RenderTexture)o;
  823. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  824. obj.width = arg0;
  825. return 0;
  826. }
  827. catch(Exception e)
  828. {
  829. return LuaDLL.toluaL_exception(L, e, o, "attempt to index width on a nil value");
  830. }
  831. }
  832. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  833. static int set_height(IntPtr L)
  834. {
  835. object o = null;
  836. try
  837. {
  838. o = ToLua.ToObject(L, 1);
  839. UnityEngine.RenderTexture obj = (UnityEngine.RenderTexture)o;
  840. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  841. obj.height = arg0;
  842. return 0;
  843. }
  844. catch(Exception e)
  845. {
  846. return LuaDLL.toluaL_exception(L, e, o, "attempt to index height on a nil value");
  847. }
  848. }
  849. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  850. static int set_dimension(IntPtr L)
  851. {
  852. object o = null;
  853. try
  854. {
  855. o = ToLua.ToObject(L, 1);
  856. UnityEngine.RenderTexture obj = (UnityEngine.RenderTexture)o;
  857. UnityEngine.Rendering.TextureDimension arg0 = (UnityEngine.Rendering.TextureDimension)ToLua.CheckObject(L, 2, typeof(UnityEngine.Rendering.TextureDimension));
  858. obj.dimension = arg0;
  859. return 0;
  860. }
  861. catch(Exception e)
  862. {
  863. return LuaDLL.toluaL_exception(L, e, o, "attempt to index dimension on a nil value");
  864. }
  865. }
  866. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  867. static int set_useMipMap(IntPtr L)
  868. {
  869. object o = null;
  870. try
  871. {
  872. o = ToLua.ToObject(L, 1);
  873. UnityEngine.RenderTexture obj = (UnityEngine.RenderTexture)o;
  874. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  875. obj.useMipMap = arg0;
  876. return 0;
  877. }
  878. catch(Exception e)
  879. {
  880. return LuaDLL.toluaL_exception(L, e, o, "attempt to index useMipMap on a nil value");
  881. }
  882. }
  883. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  884. static int set_format(IntPtr L)
  885. {
  886. object o = null;
  887. try
  888. {
  889. o = ToLua.ToObject(L, 1);
  890. UnityEngine.RenderTexture obj = (UnityEngine.RenderTexture)o;
  891. UnityEngine.RenderTextureFormat arg0 = (UnityEngine.RenderTextureFormat)ToLua.CheckObject(L, 2, typeof(UnityEngine.RenderTextureFormat));
  892. obj.format = arg0;
  893. return 0;
  894. }
  895. catch(Exception e)
  896. {
  897. return LuaDLL.toluaL_exception(L, e, o, "attempt to index format on a nil value");
  898. }
  899. }
  900. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  901. static int set_vrUsage(IntPtr L)
  902. {
  903. object o = null;
  904. try
  905. {
  906. o = ToLua.ToObject(L, 1);
  907. UnityEngine.RenderTexture obj = (UnityEngine.RenderTexture)o;
  908. UnityEngine.VRTextureUsage arg0 = (UnityEngine.VRTextureUsage)ToLua.CheckObject(L, 2, typeof(UnityEngine.VRTextureUsage));
  909. obj.vrUsage = arg0;
  910. return 0;
  911. }
  912. catch(Exception e)
  913. {
  914. return LuaDLL.toluaL_exception(L, e, o, "attempt to index vrUsage on a nil value");
  915. }
  916. }
  917. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  918. static int set_memorylessMode(IntPtr L)
  919. {
  920. object o = null;
  921. try
  922. {
  923. o = ToLua.ToObject(L, 1);
  924. UnityEngine.RenderTexture obj = (UnityEngine.RenderTexture)o;
  925. UnityEngine.RenderTextureMemoryless arg0 = (UnityEngine.RenderTextureMemoryless)ToLua.CheckObject(L, 2, typeof(UnityEngine.RenderTextureMemoryless));
  926. obj.memorylessMode = arg0;
  927. return 0;
  928. }
  929. catch(Exception e)
  930. {
  931. return LuaDLL.toluaL_exception(L, e, o, "attempt to index memorylessMode on a nil value");
  932. }
  933. }
  934. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  935. static int set_autoGenerateMips(IntPtr L)
  936. {
  937. object o = null;
  938. try
  939. {
  940. o = ToLua.ToObject(L, 1);
  941. UnityEngine.RenderTexture obj = (UnityEngine.RenderTexture)o;
  942. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  943. obj.autoGenerateMips = arg0;
  944. return 0;
  945. }
  946. catch(Exception e)
  947. {
  948. return LuaDLL.toluaL_exception(L, e, o, "attempt to index autoGenerateMips on a nil value");
  949. }
  950. }
  951. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  952. static int set_volumeDepth(IntPtr L)
  953. {
  954. object o = null;
  955. try
  956. {
  957. o = ToLua.ToObject(L, 1);
  958. UnityEngine.RenderTexture obj = (UnityEngine.RenderTexture)o;
  959. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  960. obj.volumeDepth = arg0;
  961. return 0;
  962. }
  963. catch(Exception e)
  964. {
  965. return LuaDLL.toluaL_exception(L, e, o, "attempt to index volumeDepth on a nil value");
  966. }
  967. }
  968. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  969. static int set_antiAliasing(IntPtr L)
  970. {
  971. object o = null;
  972. try
  973. {
  974. o = ToLua.ToObject(L, 1);
  975. UnityEngine.RenderTexture obj = (UnityEngine.RenderTexture)o;
  976. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  977. obj.antiAliasing = arg0;
  978. return 0;
  979. }
  980. catch(Exception e)
  981. {
  982. return LuaDLL.toluaL_exception(L, e, o, "attempt to index antiAliasing on a nil value");
  983. }
  984. }
  985. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  986. static int set_bindTextureMS(IntPtr L)
  987. {
  988. object o = null;
  989. try
  990. {
  991. o = ToLua.ToObject(L, 1);
  992. UnityEngine.RenderTexture obj = (UnityEngine.RenderTexture)o;
  993. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  994. obj.bindTextureMS = arg0;
  995. return 0;
  996. }
  997. catch(Exception e)
  998. {
  999. return LuaDLL.toluaL_exception(L, e, o, "attempt to index bindTextureMS on a nil value");
  1000. }
  1001. }
  1002. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1003. static int set_enableRandomWrite(IntPtr L)
  1004. {
  1005. object o = null;
  1006. try
  1007. {
  1008. o = ToLua.ToObject(L, 1);
  1009. UnityEngine.RenderTexture obj = (UnityEngine.RenderTexture)o;
  1010. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  1011. obj.enableRandomWrite = arg0;
  1012. return 0;
  1013. }
  1014. catch(Exception e)
  1015. {
  1016. return LuaDLL.toluaL_exception(L, e, o, "attempt to index enableRandomWrite on a nil value");
  1017. }
  1018. }
  1019. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1020. static int set_useDynamicScale(IntPtr L)
  1021. {
  1022. object o = null;
  1023. try
  1024. {
  1025. o = ToLua.ToObject(L, 1);
  1026. UnityEngine.RenderTexture obj = (UnityEngine.RenderTexture)o;
  1027. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  1028. obj.useDynamicScale = arg0;
  1029. return 0;
  1030. }
  1031. catch(Exception e)
  1032. {
  1033. return LuaDLL.toluaL_exception(L, e, o, "attempt to index useDynamicScale on a nil value");
  1034. }
  1035. }
  1036. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1037. static int set_isPowerOfTwo(IntPtr L)
  1038. {
  1039. object o = null;
  1040. try
  1041. {
  1042. o = ToLua.ToObject(L, 1);
  1043. UnityEngine.RenderTexture obj = (UnityEngine.RenderTexture)o;
  1044. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  1045. obj.isPowerOfTwo = arg0;
  1046. return 0;
  1047. }
  1048. catch(Exception e)
  1049. {
  1050. return LuaDLL.toluaL_exception(L, e, o, "attempt to index isPowerOfTwo on a nil value");
  1051. }
  1052. }
  1053. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1054. static int set_active(IntPtr L)
  1055. {
  1056. try
  1057. {
  1058. UnityEngine.RenderTexture arg0 = (UnityEngine.RenderTexture)ToLua.CheckObject<UnityEngine.RenderTexture>(L, 2);
  1059. UnityEngine.RenderTexture.active = arg0;
  1060. return 0;
  1061. }
  1062. catch (Exception e)
  1063. {
  1064. return LuaDLL.toluaL_exception(L, e);
  1065. }
  1066. }
  1067. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1068. static int set_depth(IntPtr L)
  1069. {
  1070. object o = null;
  1071. try
  1072. {
  1073. o = ToLua.ToObject(L, 1);
  1074. UnityEngine.RenderTexture obj = (UnityEngine.RenderTexture)o;
  1075. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  1076. obj.depth = arg0;
  1077. return 0;
  1078. }
  1079. catch(Exception e)
  1080. {
  1081. return LuaDLL.toluaL_exception(L, e, o, "attempt to index depth on a nil value");
  1082. }
  1083. }
  1084. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1085. static int set_descriptor(IntPtr L)
  1086. {
  1087. object o = null;
  1088. try
  1089. {
  1090. o = ToLua.ToObject(L, 1);
  1091. UnityEngine.RenderTexture obj = (UnityEngine.RenderTexture)o;
  1092. UnityEngine.RenderTextureDescriptor arg0 = StackTraits<UnityEngine.RenderTextureDescriptor>.Check(L, 2);
  1093. obj.descriptor = arg0;
  1094. return 0;
  1095. }
  1096. catch(Exception e)
  1097. {
  1098. return LuaDLL.toluaL_exception(L, e, o, "attempt to index descriptor on a nil value");
  1099. }
  1100. }
  1101. }