UnityEngine_RenderTextureDescriptorWrap.cs 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686
  1. //this source code was auto-generated by tolua#, do not modify it
  2. using System;
  3. using LuaInterface;
  4. public class UnityEngine_RenderTextureDescriptorWrap
  5. {
  6. public static void Register(LuaState L)
  7. {
  8. L.BeginClass(typeof(UnityEngine.RenderTextureDescriptor), null);
  9. L.RegFunction("New", _CreateUnityEngine_RenderTextureDescriptor);
  10. L.RegFunction("__tostring", ToLua.op_ToString);
  11. L.RegVar("width", get_width, set_width);
  12. L.RegVar("height", get_height, set_height);
  13. L.RegVar("msaaSamples", get_msaaSamples, set_msaaSamples);
  14. L.RegVar("volumeDepth", get_volumeDepth, set_volumeDepth);
  15. L.RegVar("colorFormat", get_colorFormat, set_colorFormat);
  16. L.RegVar("depthBufferBits", get_depthBufferBits, set_depthBufferBits);
  17. L.RegVar("dimension", get_dimension, set_dimension);
  18. L.RegVar("shadowSamplingMode", get_shadowSamplingMode, set_shadowSamplingMode);
  19. L.RegVar("vrUsage", get_vrUsage, set_vrUsage);
  20. L.RegVar("flags", get_flags, null);
  21. L.RegVar("memoryless", get_memoryless, set_memoryless);
  22. L.RegVar("sRGB", get_sRGB, set_sRGB);
  23. L.RegVar("useMipMap", get_useMipMap, set_useMipMap);
  24. L.RegVar("autoGenerateMips", get_autoGenerateMips, set_autoGenerateMips);
  25. L.RegVar("enableRandomWrite", get_enableRandomWrite, set_enableRandomWrite);
  26. L.RegVar("bindMS", get_bindMS, set_bindMS);
  27. L.EndClass();
  28. }
  29. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  30. static int _CreateUnityEngine_RenderTextureDescriptor(IntPtr L)
  31. {
  32. try
  33. {
  34. int count = LuaDLL.lua_gettop(L);
  35. if (count == 2)
  36. {
  37. int arg0 = (int)LuaDLL.luaL_checknumber(L, 1);
  38. int arg1 = (int)LuaDLL.luaL_checknumber(L, 2);
  39. UnityEngine.RenderTextureDescriptor obj = new UnityEngine.RenderTextureDescriptor(arg0, arg1);
  40. ToLua.PushValue(L, obj);
  41. return 1;
  42. }
  43. else if (count == 3)
  44. {
  45. int arg0 = (int)LuaDLL.luaL_checknumber(L, 1);
  46. int arg1 = (int)LuaDLL.luaL_checknumber(L, 2);
  47. UnityEngine.RenderTextureFormat arg2 = (UnityEngine.RenderTextureFormat)ToLua.CheckObject(L, 3, typeof(UnityEngine.RenderTextureFormat));
  48. UnityEngine.RenderTextureDescriptor obj = new UnityEngine.RenderTextureDescriptor(arg0, arg1, arg2);
  49. ToLua.PushValue(L, obj);
  50. return 1;
  51. }
  52. else if (count == 4)
  53. {
  54. int arg0 = (int)LuaDLL.luaL_checknumber(L, 1);
  55. int arg1 = (int)LuaDLL.luaL_checknumber(L, 2);
  56. UnityEngine.RenderTextureFormat arg2 = (UnityEngine.RenderTextureFormat)ToLua.CheckObject(L, 3, typeof(UnityEngine.RenderTextureFormat));
  57. int arg3 = (int)LuaDLL.luaL_checknumber(L, 4);
  58. UnityEngine.RenderTextureDescriptor obj = new UnityEngine.RenderTextureDescriptor(arg0, arg1, arg2, arg3);
  59. ToLua.PushValue(L, obj);
  60. return 1;
  61. }
  62. else if (count == 0)
  63. {
  64. UnityEngine.RenderTextureDescriptor obj = new UnityEngine.RenderTextureDescriptor();
  65. ToLua.PushValue(L, obj);
  66. return 1;
  67. }
  68. else
  69. {
  70. return LuaDLL.luaL_throw(L, "invalid arguments to ctor method: UnityEngine.RenderTextureDescriptor.New");
  71. }
  72. }
  73. catch (Exception e)
  74. {
  75. return LuaDLL.toluaL_exception(L, e);
  76. }
  77. }
  78. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  79. static int get_width(IntPtr L)
  80. {
  81. object o = null;
  82. try
  83. {
  84. o = ToLua.ToObject(L, 1);
  85. UnityEngine.RenderTextureDescriptor obj = (UnityEngine.RenderTextureDescriptor)o;
  86. int ret = obj.width;
  87. LuaDLL.lua_pushinteger(L, ret);
  88. return 1;
  89. }
  90. catch(Exception e)
  91. {
  92. return LuaDLL.toluaL_exception(L, e, o, "attempt to index width on a nil value");
  93. }
  94. }
  95. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  96. static int get_height(IntPtr L)
  97. {
  98. object o = null;
  99. try
  100. {
  101. o = ToLua.ToObject(L, 1);
  102. UnityEngine.RenderTextureDescriptor obj = (UnityEngine.RenderTextureDescriptor)o;
  103. int ret = obj.height;
  104. LuaDLL.lua_pushinteger(L, ret);
  105. return 1;
  106. }
  107. catch(Exception e)
  108. {
  109. return LuaDLL.toluaL_exception(L, e, o, "attempt to index height on a nil value");
  110. }
  111. }
  112. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  113. static int get_msaaSamples(IntPtr L)
  114. {
  115. object o = null;
  116. try
  117. {
  118. o = ToLua.ToObject(L, 1);
  119. UnityEngine.RenderTextureDescriptor obj = (UnityEngine.RenderTextureDescriptor)o;
  120. int ret = obj.msaaSamples;
  121. LuaDLL.lua_pushinteger(L, ret);
  122. return 1;
  123. }
  124. catch(Exception e)
  125. {
  126. return LuaDLL.toluaL_exception(L, e, o, "attempt to index msaaSamples on a nil value");
  127. }
  128. }
  129. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  130. static int get_volumeDepth(IntPtr L)
  131. {
  132. object o = null;
  133. try
  134. {
  135. o = ToLua.ToObject(L, 1);
  136. UnityEngine.RenderTextureDescriptor obj = (UnityEngine.RenderTextureDescriptor)o;
  137. int ret = obj.volumeDepth;
  138. LuaDLL.lua_pushinteger(L, ret);
  139. return 1;
  140. }
  141. catch(Exception e)
  142. {
  143. return LuaDLL.toluaL_exception(L, e, o, "attempt to index volumeDepth on a nil value");
  144. }
  145. }
  146. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  147. static int get_colorFormat(IntPtr L)
  148. {
  149. object o = null;
  150. try
  151. {
  152. o = ToLua.ToObject(L, 1);
  153. UnityEngine.RenderTextureDescriptor obj = (UnityEngine.RenderTextureDescriptor)o;
  154. UnityEngine.RenderTextureFormat ret = obj.colorFormat;
  155. ToLua.Push(L, ret);
  156. return 1;
  157. }
  158. catch(Exception e)
  159. {
  160. return LuaDLL.toluaL_exception(L, e, o, "attempt to index colorFormat on a nil value");
  161. }
  162. }
  163. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  164. static int get_depthBufferBits(IntPtr L)
  165. {
  166. object o = null;
  167. try
  168. {
  169. o = ToLua.ToObject(L, 1);
  170. UnityEngine.RenderTextureDescriptor obj = (UnityEngine.RenderTextureDescriptor)o;
  171. int ret = obj.depthBufferBits;
  172. LuaDLL.lua_pushinteger(L, ret);
  173. return 1;
  174. }
  175. catch(Exception e)
  176. {
  177. return LuaDLL.toluaL_exception(L, e, o, "attempt to index depthBufferBits on a nil value");
  178. }
  179. }
  180. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  181. static int get_dimension(IntPtr L)
  182. {
  183. object o = null;
  184. try
  185. {
  186. o = ToLua.ToObject(L, 1);
  187. UnityEngine.RenderTextureDescriptor obj = (UnityEngine.RenderTextureDescriptor)o;
  188. UnityEngine.Rendering.TextureDimension ret = obj.dimension;
  189. ToLua.Push(L, ret);
  190. return 1;
  191. }
  192. catch(Exception e)
  193. {
  194. return LuaDLL.toluaL_exception(L, e, o, "attempt to index dimension on a nil value");
  195. }
  196. }
  197. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  198. static int get_shadowSamplingMode(IntPtr L)
  199. {
  200. object o = null;
  201. try
  202. {
  203. o = ToLua.ToObject(L, 1);
  204. UnityEngine.RenderTextureDescriptor obj = (UnityEngine.RenderTextureDescriptor)o;
  205. UnityEngine.Rendering.ShadowSamplingMode ret = obj.shadowSamplingMode;
  206. ToLua.Push(L, ret);
  207. return 1;
  208. }
  209. catch(Exception e)
  210. {
  211. return LuaDLL.toluaL_exception(L, e, o, "attempt to index shadowSamplingMode on a nil value");
  212. }
  213. }
  214. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  215. static int get_vrUsage(IntPtr L)
  216. {
  217. object o = null;
  218. try
  219. {
  220. o = ToLua.ToObject(L, 1);
  221. UnityEngine.RenderTextureDescriptor obj = (UnityEngine.RenderTextureDescriptor)o;
  222. UnityEngine.VRTextureUsage ret = obj.vrUsage;
  223. ToLua.Push(L, ret);
  224. return 1;
  225. }
  226. catch(Exception e)
  227. {
  228. return LuaDLL.toluaL_exception(L, e, o, "attempt to index vrUsage on a nil value");
  229. }
  230. }
  231. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  232. static int get_flags(IntPtr L)
  233. {
  234. object o = null;
  235. try
  236. {
  237. o = ToLua.ToObject(L, 1);
  238. UnityEngine.RenderTextureDescriptor obj = (UnityEngine.RenderTextureDescriptor)o;
  239. UnityEngine.RenderTextureCreationFlags ret = obj.flags;
  240. ToLua.Push(L, ret);
  241. return 1;
  242. }
  243. catch(Exception e)
  244. {
  245. return LuaDLL.toluaL_exception(L, e, o, "attempt to index flags on a nil value");
  246. }
  247. }
  248. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  249. static int get_memoryless(IntPtr L)
  250. {
  251. object o = null;
  252. try
  253. {
  254. o = ToLua.ToObject(L, 1);
  255. UnityEngine.RenderTextureDescriptor obj = (UnityEngine.RenderTextureDescriptor)o;
  256. UnityEngine.RenderTextureMemoryless ret = obj.memoryless;
  257. ToLua.Push(L, ret);
  258. return 1;
  259. }
  260. catch(Exception e)
  261. {
  262. return LuaDLL.toluaL_exception(L, e, o, "attempt to index memoryless on a nil value");
  263. }
  264. }
  265. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  266. static int get_sRGB(IntPtr L)
  267. {
  268. object o = null;
  269. try
  270. {
  271. o = ToLua.ToObject(L, 1);
  272. UnityEngine.RenderTextureDescriptor obj = (UnityEngine.RenderTextureDescriptor)o;
  273. bool ret = obj.sRGB;
  274. LuaDLL.lua_pushboolean(L, ret);
  275. return 1;
  276. }
  277. catch(Exception e)
  278. {
  279. return LuaDLL.toluaL_exception(L, e, o, "attempt to index sRGB on a nil value");
  280. }
  281. }
  282. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  283. static int get_useMipMap(IntPtr L)
  284. {
  285. object o = null;
  286. try
  287. {
  288. o = ToLua.ToObject(L, 1);
  289. UnityEngine.RenderTextureDescriptor obj = (UnityEngine.RenderTextureDescriptor)o;
  290. bool ret = obj.useMipMap;
  291. LuaDLL.lua_pushboolean(L, ret);
  292. return 1;
  293. }
  294. catch(Exception e)
  295. {
  296. return LuaDLL.toluaL_exception(L, e, o, "attempt to index useMipMap on a nil value");
  297. }
  298. }
  299. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  300. static int get_autoGenerateMips(IntPtr L)
  301. {
  302. object o = null;
  303. try
  304. {
  305. o = ToLua.ToObject(L, 1);
  306. UnityEngine.RenderTextureDescriptor obj = (UnityEngine.RenderTextureDescriptor)o;
  307. bool ret = obj.autoGenerateMips;
  308. LuaDLL.lua_pushboolean(L, ret);
  309. return 1;
  310. }
  311. catch(Exception e)
  312. {
  313. return LuaDLL.toluaL_exception(L, e, o, "attempt to index autoGenerateMips on a nil value");
  314. }
  315. }
  316. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  317. static int get_enableRandomWrite(IntPtr L)
  318. {
  319. object o = null;
  320. try
  321. {
  322. o = ToLua.ToObject(L, 1);
  323. UnityEngine.RenderTextureDescriptor obj = (UnityEngine.RenderTextureDescriptor)o;
  324. bool ret = obj.enableRandomWrite;
  325. LuaDLL.lua_pushboolean(L, ret);
  326. return 1;
  327. }
  328. catch(Exception e)
  329. {
  330. return LuaDLL.toluaL_exception(L, e, o, "attempt to index enableRandomWrite on a nil value");
  331. }
  332. }
  333. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  334. static int get_bindMS(IntPtr L)
  335. {
  336. object o = null;
  337. try
  338. {
  339. o = ToLua.ToObject(L, 1);
  340. UnityEngine.RenderTextureDescriptor obj = (UnityEngine.RenderTextureDescriptor)o;
  341. bool ret = obj.bindMS;
  342. LuaDLL.lua_pushboolean(L, ret);
  343. return 1;
  344. }
  345. catch(Exception e)
  346. {
  347. return LuaDLL.toluaL_exception(L, e, o, "attempt to index bindMS on a nil value");
  348. }
  349. }
  350. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  351. static int set_width(IntPtr L)
  352. {
  353. object o = null;
  354. try
  355. {
  356. o = ToLua.ToObject(L, 1);
  357. UnityEngine.RenderTextureDescriptor obj = (UnityEngine.RenderTextureDescriptor)o;
  358. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  359. obj.width = arg0;
  360. ToLua.SetBack(L, 1, obj);
  361. return 0;
  362. }
  363. catch(Exception e)
  364. {
  365. return LuaDLL.toluaL_exception(L, e, o, "attempt to index width on a nil value");
  366. }
  367. }
  368. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  369. static int set_height(IntPtr L)
  370. {
  371. object o = null;
  372. try
  373. {
  374. o = ToLua.ToObject(L, 1);
  375. UnityEngine.RenderTextureDescriptor obj = (UnityEngine.RenderTextureDescriptor)o;
  376. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  377. obj.height = arg0;
  378. ToLua.SetBack(L, 1, obj);
  379. return 0;
  380. }
  381. catch(Exception e)
  382. {
  383. return LuaDLL.toluaL_exception(L, e, o, "attempt to index height on a nil value");
  384. }
  385. }
  386. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  387. static int set_msaaSamples(IntPtr L)
  388. {
  389. object o = null;
  390. try
  391. {
  392. o = ToLua.ToObject(L, 1);
  393. UnityEngine.RenderTextureDescriptor obj = (UnityEngine.RenderTextureDescriptor)o;
  394. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  395. obj.msaaSamples = arg0;
  396. ToLua.SetBack(L, 1, obj);
  397. return 0;
  398. }
  399. catch(Exception e)
  400. {
  401. return LuaDLL.toluaL_exception(L, e, o, "attempt to index msaaSamples on a nil value");
  402. }
  403. }
  404. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  405. static int set_volumeDepth(IntPtr L)
  406. {
  407. object o = null;
  408. try
  409. {
  410. o = ToLua.ToObject(L, 1);
  411. UnityEngine.RenderTextureDescriptor obj = (UnityEngine.RenderTextureDescriptor)o;
  412. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  413. obj.volumeDepth = arg0;
  414. ToLua.SetBack(L, 1, obj);
  415. return 0;
  416. }
  417. catch(Exception e)
  418. {
  419. return LuaDLL.toluaL_exception(L, e, o, "attempt to index volumeDepth on a nil value");
  420. }
  421. }
  422. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  423. static int set_colorFormat(IntPtr L)
  424. {
  425. object o = null;
  426. try
  427. {
  428. o = ToLua.ToObject(L, 1);
  429. UnityEngine.RenderTextureDescriptor obj = (UnityEngine.RenderTextureDescriptor)o;
  430. UnityEngine.RenderTextureFormat arg0 = (UnityEngine.RenderTextureFormat)ToLua.CheckObject(L, 2, typeof(UnityEngine.RenderTextureFormat));
  431. obj.colorFormat = arg0;
  432. ToLua.SetBack(L, 1, obj);
  433. return 0;
  434. }
  435. catch(Exception e)
  436. {
  437. return LuaDLL.toluaL_exception(L, e, o, "attempt to index colorFormat on a nil value");
  438. }
  439. }
  440. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  441. static int set_depthBufferBits(IntPtr L)
  442. {
  443. object o = null;
  444. try
  445. {
  446. o = ToLua.ToObject(L, 1);
  447. UnityEngine.RenderTextureDescriptor obj = (UnityEngine.RenderTextureDescriptor)o;
  448. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  449. obj.depthBufferBits = arg0;
  450. ToLua.SetBack(L, 1, obj);
  451. return 0;
  452. }
  453. catch(Exception e)
  454. {
  455. return LuaDLL.toluaL_exception(L, e, o, "attempt to index depthBufferBits on a nil value");
  456. }
  457. }
  458. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  459. static int set_dimension(IntPtr L)
  460. {
  461. object o = null;
  462. try
  463. {
  464. o = ToLua.ToObject(L, 1);
  465. UnityEngine.RenderTextureDescriptor obj = (UnityEngine.RenderTextureDescriptor)o;
  466. UnityEngine.Rendering.TextureDimension arg0 = (UnityEngine.Rendering.TextureDimension)ToLua.CheckObject(L, 2, typeof(UnityEngine.Rendering.TextureDimension));
  467. obj.dimension = arg0;
  468. ToLua.SetBack(L, 1, obj);
  469. return 0;
  470. }
  471. catch(Exception e)
  472. {
  473. return LuaDLL.toluaL_exception(L, e, o, "attempt to index dimension on a nil value");
  474. }
  475. }
  476. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  477. static int set_shadowSamplingMode(IntPtr L)
  478. {
  479. object o = null;
  480. try
  481. {
  482. o = ToLua.ToObject(L, 1);
  483. UnityEngine.RenderTextureDescriptor obj = (UnityEngine.RenderTextureDescriptor)o;
  484. UnityEngine.Rendering.ShadowSamplingMode arg0 = (UnityEngine.Rendering.ShadowSamplingMode)ToLua.CheckObject(L, 2, typeof(UnityEngine.Rendering.ShadowSamplingMode));
  485. obj.shadowSamplingMode = arg0;
  486. ToLua.SetBack(L, 1, obj);
  487. return 0;
  488. }
  489. catch(Exception e)
  490. {
  491. return LuaDLL.toluaL_exception(L, e, o, "attempt to index shadowSamplingMode on a nil value");
  492. }
  493. }
  494. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  495. static int set_vrUsage(IntPtr L)
  496. {
  497. object o = null;
  498. try
  499. {
  500. o = ToLua.ToObject(L, 1);
  501. UnityEngine.RenderTextureDescriptor obj = (UnityEngine.RenderTextureDescriptor)o;
  502. UnityEngine.VRTextureUsage arg0 = (UnityEngine.VRTextureUsage)ToLua.CheckObject(L, 2, typeof(UnityEngine.VRTextureUsage));
  503. obj.vrUsage = arg0;
  504. ToLua.SetBack(L, 1, obj);
  505. return 0;
  506. }
  507. catch(Exception e)
  508. {
  509. return LuaDLL.toluaL_exception(L, e, o, "attempt to index vrUsage on a nil value");
  510. }
  511. }
  512. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  513. static int set_memoryless(IntPtr L)
  514. {
  515. object o = null;
  516. try
  517. {
  518. o = ToLua.ToObject(L, 1);
  519. UnityEngine.RenderTextureDescriptor obj = (UnityEngine.RenderTextureDescriptor)o;
  520. UnityEngine.RenderTextureMemoryless arg0 = (UnityEngine.RenderTextureMemoryless)ToLua.CheckObject(L, 2, typeof(UnityEngine.RenderTextureMemoryless));
  521. obj.memoryless = arg0;
  522. ToLua.SetBack(L, 1, obj);
  523. return 0;
  524. }
  525. catch(Exception e)
  526. {
  527. return LuaDLL.toluaL_exception(L, e, o, "attempt to index memoryless on a nil value");
  528. }
  529. }
  530. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  531. static int set_sRGB(IntPtr L)
  532. {
  533. object o = null;
  534. try
  535. {
  536. o = ToLua.ToObject(L, 1);
  537. UnityEngine.RenderTextureDescriptor obj = (UnityEngine.RenderTextureDescriptor)o;
  538. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  539. obj.sRGB = arg0;
  540. ToLua.SetBack(L, 1, obj);
  541. return 0;
  542. }
  543. catch(Exception e)
  544. {
  545. return LuaDLL.toluaL_exception(L, e, o, "attempt to index sRGB on a nil value");
  546. }
  547. }
  548. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  549. static int set_useMipMap(IntPtr L)
  550. {
  551. object o = null;
  552. try
  553. {
  554. o = ToLua.ToObject(L, 1);
  555. UnityEngine.RenderTextureDescriptor obj = (UnityEngine.RenderTextureDescriptor)o;
  556. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  557. obj.useMipMap = arg0;
  558. ToLua.SetBack(L, 1, obj);
  559. return 0;
  560. }
  561. catch(Exception e)
  562. {
  563. return LuaDLL.toluaL_exception(L, e, o, "attempt to index useMipMap on a nil value");
  564. }
  565. }
  566. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  567. static int set_autoGenerateMips(IntPtr L)
  568. {
  569. object o = null;
  570. try
  571. {
  572. o = ToLua.ToObject(L, 1);
  573. UnityEngine.RenderTextureDescriptor obj = (UnityEngine.RenderTextureDescriptor)o;
  574. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  575. obj.autoGenerateMips = arg0;
  576. ToLua.SetBack(L, 1, obj);
  577. return 0;
  578. }
  579. catch(Exception e)
  580. {
  581. return LuaDLL.toluaL_exception(L, e, o, "attempt to index autoGenerateMips on a nil value");
  582. }
  583. }
  584. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  585. static int set_enableRandomWrite(IntPtr L)
  586. {
  587. object o = null;
  588. try
  589. {
  590. o = ToLua.ToObject(L, 1);
  591. UnityEngine.RenderTextureDescriptor obj = (UnityEngine.RenderTextureDescriptor)o;
  592. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  593. obj.enableRandomWrite = arg0;
  594. ToLua.SetBack(L, 1, obj);
  595. return 0;
  596. }
  597. catch(Exception e)
  598. {
  599. return LuaDLL.toluaL_exception(L, e, o, "attempt to index enableRandomWrite on a nil value");
  600. }
  601. }
  602. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  603. static int set_bindMS(IntPtr L)
  604. {
  605. object o = null;
  606. try
  607. {
  608. o = ToLua.ToObject(L, 1);
  609. UnityEngine.RenderTextureDescriptor obj = (UnityEngine.RenderTextureDescriptor)o;
  610. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  611. obj.bindMS = arg0;
  612. ToLua.SetBack(L, 1, obj);
  613. return 0;
  614. }
  615. catch(Exception e)
  616. {
  617. return LuaDLL.toluaL_exception(L, e, o, "attempt to index bindMS on a nil value");
  618. }
  619. }
  620. }