源战役客户端
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

982 行
23 KiB

  1. //this source code was auto-generated by tolua#, do not modify it
  2. using System;
  3. using LuaInterface;
  4. public class UnityEngine_SystemInfoWrap
  5. {
  6. public static void Register(LuaState L)
  7. {
  8. L.BeginClass(typeof(UnityEngine.SystemInfo), typeof(System.Object));
  9. L.RegFunction("SupportsRenderTextureFormat", SupportsRenderTextureFormat);
  10. L.RegFunction("SupportsBlendingOnRenderTextureFormat", SupportsBlendingOnRenderTextureFormat);
  11. L.RegFunction("SupportsTextureFormat", SupportsTextureFormat);
  12. L.RegFunction("IsFormatSupported", IsFormatSupported);
  13. L.RegFunction("New", _CreateUnityEngine_SystemInfo);
  14. L.RegFunction("__tostring", ToLua.op_ToString);
  15. L.RegVar("unsupportedIdentifier", get_unsupportedIdentifier, null);
  16. L.RegVar("batteryLevel", get_batteryLevel, null);
  17. L.RegVar("batteryStatus", get_batteryStatus, null);
  18. L.RegVar("operatingSystem", get_operatingSystem, null);
  19. L.RegVar("operatingSystemFamily", get_operatingSystemFamily, null);
  20. L.RegVar("processorType", get_processorType, null);
  21. L.RegVar("processorFrequency", get_processorFrequency, null);
  22. L.RegVar("processorCount", get_processorCount, null);
  23. L.RegVar("systemMemorySize", get_systemMemorySize, null);
  24. L.RegVar("deviceUniqueIdentifier", get_deviceUniqueIdentifier, null);
  25. L.RegVar("deviceName", get_deviceName, null);
  26. L.RegVar("deviceModel", get_deviceModel, null);
  27. L.RegVar("supportsAccelerometer", get_supportsAccelerometer, null);
  28. L.RegVar("supportsGyroscope", get_supportsGyroscope, null);
  29. L.RegVar("supportsLocationService", get_supportsLocationService, null);
  30. L.RegVar("supportsVibration", get_supportsVibration, null);
  31. L.RegVar("supportsAudio", get_supportsAudio, null);
  32. L.RegVar("deviceType", get_deviceType, null);
  33. L.RegVar("graphicsMemorySize", get_graphicsMemorySize, null);
  34. L.RegVar("graphicsDeviceName", get_graphicsDeviceName, null);
  35. L.RegVar("graphicsDeviceVendor", get_graphicsDeviceVendor, null);
  36. L.RegVar("graphicsDeviceID", get_graphicsDeviceID, null);
  37. L.RegVar("graphicsDeviceVendorID", get_graphicsDeviceVendorID, null);
  38. L.RegVar("graphicsDeviceType", get_graphicsDeviceType, null);
  39. L.RegVar("graphicsUVStartsAtTop", get_graphicsUVStartsAtTop, null);
  40. L.RegVar("graphicsDeviceVersion", get_graphicsDeviceVersion, null);
  41. L.RegVar("graphicsShaderLevel", get_graphicsShaderLevel, null);
  42. L.RegVar("graphicsMultiThreaded", get_graphicsMultiThreaded, null);
  43. L.RegVar("hasHiddenSurfaceRemovalOnGPU", get_hasHiddenSurfaceRemovalOnGPU, null);
  44. L.RegVar("hasDynamicUniformArrayIndexingInFragmentShaders", get_hasDynamicUniformArrayIndexingInFragmentShaders, null);
  45. L.RegVar("supportsShadows", get_supportsShadows, null);
  46. L.RegVar("supportsRawShadowDepthSampling", get_supportsRawShadowDepthSampling, null);
  47. L.RegVar("supportsMotionVectors", get_supportsMotionVectors, null);
  48. L.RegVar("supportsRenderToCubemap", get_supportsRenderToCubemap, null);
  49. L.RegVar("supportsImageEffects", get_supportsImageEffects, null);
  50. L.RegVar("supports3DTextures", get_supports3DTextures, null);
  51. L.RegVar("supports2DArrayTextures", get_supports2DArrayTextures, null);
  52. L.RegVar("supports3DRenderTextures", get_supports3DRenderTextures, null);
  53. L.RegVar("supportsCubemapArrayTextures", get_supportsCubemapArrayTextures, null);
  54. L.RegVar("copyTextureSupport", get_copyTextureSupport, null);
  55. L.RegVar("supportsComputeShaders", get_supportsComputeShaders, null);
  56. L.RegVar("supportsInstancing", get_supportsInstancing, null);
  57. L.RegVar("supportsHardwareQuadTopology", get_supportsHardwareQuadTopology, null);
  58. L.RegVar("supports32bitsIndexBuffer", get_supports32bitsIndexBuffer, null);
  59. L.RegVar("supportsSparseTextures", get_supportsSparseTextures, null);
  60. L.RegVar("supportedRenderTargetCount", get_supportedRenderTargetCount, null);
  61. L.RegVar("supportsSeparatedRenderTargetsBlend", get_supportsSeparatedRenderTargetsBlend, null);
  62. L.RegVar("supportsMultisampledTextures", get_supportsMultisampledTextures, null);
  63. L.RegVar("supportsMultisampleAutoResolve", get_supportsMultisampleAutoResolve, null);
  64. L.RegVar("supportsTextureWrapMirrorOnce", get_supportsTextureWrapMirrorOnce, null);
  65. L.RegVar("usesReversedZBuffer", get_usesReversedZBuffer, null);
  66. L.RegVar("npotSupport", get_npotSupport, null);
  67. L.RegVar("maxTextureSize", get_maxTextureSize, null);
  68. L.RegVar("maxCubemapSize", get_maxCubemapSize, null);
  69. L.RegVar("supportsAsyncCompute", get_supportsAsyncCompute, null);
  70. L.RegVar("supportsGPUFence", get_supportsGPUFence, null);
  71. L.RegVar("supportsAsyncGPUReadback", get_supportsAsyncGPUReadback, null);
  72. L.RegVar("supportsMipStreaming", get_supportsMipStreaming, null);
  73. L.EndClass();
  74. }
  75. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  76. static int _CreateUnityEngine_SystemInfo(IntPtr L)
  77. {
  78. try
  79. {
  80. int count = LuaDLL.lua_gettop(L);
  81. if (count == 0)
  82. {
  83. UnityEngine.SystemInfo obj = new UnityEngine.SystemInfo();
  84. ToLua.PushObject(L, obj);
  85. return 1;
  86. }
  87. else
  88. {
  89. return LuaDLL.luaL_throw(L, "invalid arguments to ctor method: UnityEngine.SystemInfo.New");
  90. }
  91. }
  92. catch(Exception e)
  93. {
  94. return LuaDLL.toluaL_exception(L, e);
  95. }
  96. }
  97. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  98. static int SupportsRenderTextureFormat(IntPtr L)
  99. {
  100. try
  101. {
  102. ToLua.CheckArgsCount(L, 1);
  103. UnityEngine.RenderTextureFormat arg0 = (UnityEngine.RenderTextureFormat)ToLua.CheckObject(L, 1, typeof(UnityEngine.RenderTextureFormat));
  104. bool o = UnityEngine.SystemInfo.SupportsRenderTextureFormat(arg0);
  105. LuaDLL.lua_pushboolean(L, o);
  106. return 1;
  107. }
  108. catch(Exception e)
  109. {
  110. return LuaDLL.toluaL_exception(L, e);
  111. }
  112. }
  113. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  114. static int SupportsBlendingOnRenderTextureFormat(IntPtr L)
  115. {
  116. try
  117. {
  118. ToLua.CheckArgsCount(L, 1);
  119. UnityEngine.RenderTextureFormat arg0 = (UnityEngine.RenderTextureFormat)ToLua.CheckObject(L, 1, typeof(UnityEngine.RenderTextureFormat));
  120. bool o = UnityEngine.SystemInfo.SupportsBlendingOnRenderTextureFormat(arg0);
  121. LuaDLL.lua_pushboolean(L, o);
  122. return 1;
  123. }
  124. catch(Exception e)
  125. {
  126. return LuaDLL.toluaL_exception(L, e);
  127. }
  128. }
  129. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  130. static int SupportsTextureFormat(IntPtr L)
  131. {
  132. try
  133. {
  134. ToLua.CheckArgsCount(L, 1);
  135. UnityEngine.TextureFormat arg0 = (UnityEngine.TextureFormat)ToLua.CheckObject(L, 1, typeof(UnityEngine.TextureFormat));
  136. bool o = UnityEngine.SystemInfo.SupportsTextureFormat(arg0);
  137. LuaDLL.lua_pushboolean(L, o);
  138. return 1;
  139. }
  140. catch(Exception e)
  141. {
  142. return LuaDLL.toluaL_exception(L, e);
  143. }
  144. }
  145. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  146. static int IsFormatSupported(IntPtr L)
  147. {
  148. try
  149. {
  150. ToLua.CheckArgsCount(L, 2);
  151. UnityEngine.Experimental.Rendering.GraphicsFormat arg0 = (UnityEngine.Experimental.Rendering.GraphicsFormat)ToLua.CheckObject(L, 1, typeof(UnityEngine.Experimental.Rendering.GraphicsFormat));
  152. UnityEngine.Experimental.Rendering.FormatUsage arg1 = (UnityEngine.Experimental.Rendering.FormatUsage)ToLua.CheckObject(L, 2, typeof(UnityEngine.Experimental.Rendering.FormatUsage));
  153. bool o = UnityEngine.SystemInfo.IsFormatSupported(arg0, arg1);
  154. LuaDLL.lua_pushboolean(L, o);
  155. return 1;
  156. }
  157. catch(Exception e)
  158. {
  159. return LuaDLL.toluaL_exception(L, e);
  160. }
  161. }
  162. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  163. static int get_unsupportedIdentifier(IntPtr L)
  164. {
  165. try
  166. {
  167. LuaDLL.lua_pushstring(L, UnityEngine.SystemInfo.unsupportedIdentifier);
  168. return 1;
  169. }
  170. catch(Exception e)
  171. {
  172. return LuaDLL.toluaL_exception(L, e);
  173. }
  174. }
  175. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  176. static int get_batteryLevel(IntPtr L)
  177. {
  178. try
  179. {
  180. LuaDLL.lua_pushnumber(L, UnityEngine.SystemInfo.batteryLevel);
  181. return 1;
  182. }
  183. catch(Exception e)
  184. {
  185. return LuaDLL.toluaL_exception(L, e);
  186. }
  187. }
  188. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  189. static int get_batteryStatus(IntPtr L)
  190. {
  191. try
  192. {
  193. ToLua.Push(L, UnityEngine.SystemInfo.batteryStatus);
  194. return 1;
  195. }
  196. catch(Exception e)
  197. {
  198. return LuaDLL.toluaL_exception(L, e);
  199. }
  200. }
  201. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  202. static int get_operatingSystem(IntPtr L)
  203. {
  204. try
  205. {
  206. LuaDLL.lua_pushstring(L, UnityEngine.SystemInfo.operatingSystem);
  207. return 1;
  208. }
  209. catch(Exception e)
  210. {
  211. return LuaDLL.toluaL_exception(L, e);
  212. }
  213. }
  214. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  215. static int get_operatingSystemFamily(IntPtr L)
  216. {
  217. try
  218. {
  219. ToLua.Push(L, UnityEngine.SystemInfo.operatingSystemFamily);
  220. return 1;
  221. }
  222. catch(Exception e)
  223. {
  224. return LuaDLL.toluaL_exception(L, e);
  225. }
  226. }
  227. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  228. static int get_processorType(IntPtr L)
  229. {
  230. try
  231. {
  232. LuaDLL.lua_pushstring(L, UnityEngine.SystemInfo.processorType);
  233. return 1;
  234. }
  235. catch(Exception e)
  236. {
  237. return LuaDLL.toluaL_exception(L, e);
  238. }
  239. }
  240. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  241. static int get_processorFrequency(IntPtr L)
  242. {
  243. try
  244. {
  245. LuaDLL.lua_pushinteger(L, UnityEngine.SystemInfo.processorFrequency);
  246. return 1;
  247. }
  248. catch(Exception e)
  249. {
  250. return LuaDLL.toluaL_exception(L, e);
  251. }
  252. }
  253. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  254. static int get_processorCount(IntPtr L)
  255. {
  256. try
  257. {
  258. LuaDLL.lua_pushinteger(L, UnityEngine.SystemInfo.processorCount);
  259. return 1;
  260. }
  261. catch(Exception e)
  262. {
  263. return LuaDLL.toluaL_exception(L, e);
  264. }
  265. }
  266. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  267. static int get_systemMemorySize(IntPtr L)
  268. {
  269. try
  270. {
  271. LuaDLL.lua_pushinteger(L, UnityEngine.SystemInfo.systemMemorySize);
  272. return 1;
  273. }
  274. catch(Exception e)
  275. {
  276. return LuaDLL.toluaL_exception(L, e);
  277. }
  278. }
  279. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  280. static int get_deviceUniqueIdentifier(IntPtr L)
  281. {
  282. try
  283. {
  284. LuaDLL.lua_pushstring(L, UnityEngine.SystemInfo.deviceUniqueIdentifier);
  285. return 1;
  286. }
  287. catch(Exception e)
  288. {
  289. return LuaDLL.toluaL_exception(L, e);
  290. }
  291. }
  292. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  293. static int get_deviceName(IntPtr L)
  294. {
  295. try
  296. {
  297. LuaDLL.lua_pushstring(L, UnityEngine.SystemInfo.deviceName);
  298. return 1;
  299. }
  300. catch(Exception e)
  301. {
  302. return LuaDLL.toluaL_exception(L, e);
  303. }
  304. }
  305. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  306. static int get_deviceModel(IntPtr L)
  307. {
  308. try
  309. {
  310. LuaDLL.lua_pushstring(L, UnityEngine.SystemInfo.deviceModel);
  311. return 1;
  312. }
  313. catch(Exception e)
  314. {
  315. return LuaDLL.toluaL_exception(L, e);
  316. }
  317. }
  318. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  319. static int get_supportsAccelerometer(IntPtr L)
  320. {
  321. try
  322. {
  323. LuaDLL.lua_pushboolean(L, UnityEngine.SystemInfo.supportsAccelerometer);
  324. return 1;
  325. }
  326. catch(Exception e)
  327. {
  328. return LuaDLL.toluaL_exception(L, e);
  329. }
  330. }
  331. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  332. static int get_supportsGyroscope(IntPtr L)
  333. {
  334. try
  335. {
  336. LuaDLL.lua_pushboolean(L, UnityEngine.SystemInfo.supportsGyroscope);
  337. return 1;
  338. }
  339. catch(Exception e)
  340. {
  341. return LuaDLL.toluaL_exception(L, e);
  342. }
  343. }
  344. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  345. static int get_supportsLocationService(IntPtr L)
  346. {
  347. try
  348. {
  349. LuaDLL.lua_pushboolean(L, UnityEngine.SystemInfo.supportsLocationService);
  350. return 1;
  351. }
  352. catch(Exception e)
  353. {
  354. return LuaDLL.toluaL_exception(L, e);
  355. }
  356. }
  357. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  358. static int get_supportsVibration(IntPtr L)
  359. {
  360. try
  361. {
  362. LuaDLL.lua_pushboolean(L, UnityEngine.SystemInfo.supportsVibration);
  363. return 1;
  364. }
  365. catch(Exception e)
  366. {
  367. return LuaDLL.toluaL_exception(L, e);
  368. }
  369. }
  370. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  371. static int get_supportsAudio(IntPtr L)
  372. {
  373. try
  374. {
  375. LuaDLL.lua_pushboolean(L, UnityEngine.SystemInfo.supportsAudio);
  376. return 1;
  377. }
  378. catch(Exception e)
  379. {
  380. return LuaDLL.toluaL_exception(L, e);
  381. }
  382. }
  383. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  384. static int get_deviceType(IntPtr L)
  385. {
  386. try
  387. {
  388. ToLua.Push(L, UnityEngine.SystemInfo.deviceType);
  389. return 1;
  390. }
  391. catch(Exception e)
  392. {
  393. return LuaDLL.toluaL_exception(L, e);
  394. }
  395. }
  396. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  397. static int get_graphicsMemorySize(IntPtr L)
  398. {
  399. try
  400. {
  401. LuaDLL.lua_pushinteger(L, UnityEngine.SystemInfo.graphicsMemorySize);
  402. return 1;
  403. }
  404. catch(Exception e)
  405. {
  406. return LuaDLL.toluaL_exception(L, e);
  407. }
  408. }
  409. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  410. static int get_graphicsDeviceName(IntPtr L)
  411. {
  412. try
  413. {
  414. LuaDLL.lua_pushstring(L, UnityEngine.SystemInfo.graphicsDeviceName);
  415. return 1;
  416. }
  417. catch(Exception e)
  418. {
  419. return LuaDLL.toluaL_exception(L, e);
  420. }
  421. }
  422. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  423. static int get_graphicsDeviceVendor(IntPtr L)
  424. {
  425. try
  426. {
  427. LuaDLL.lua_pushstring(L, UnityEngine.SystemInfo.graphicsDeviceVendor);
  428. return 1;
  429. }
  430. catch(Exception e)
  431. {
  432. return LuaDLL.toluaL_exception(L, e);
  433. }
  434. }
  435. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  436. static int get_graphicsDeviceID(IntPtr L)
  437. {
  438. try
  439. {
  440. LuaDLL.lua_pushinteger(L, UnityEngine.SystemInfo.graphicsDeviceID);
  441. return 1;
  442. }
  443. catch(Exception e)
  444. {
  445. return LuaDLL.toluaL_exception(L, e);
  446. }
  447. }
  448. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  449. static int get_graphicsDeviceVendorID(IntPtr L)
  450. {
  451. try
  452. {
  453. LuaDLL.lua_pushinteger(L, UnityEngine.SystemInfo.graphicsDeviceVendorID);
  454. return 1;
  455. }
  456. catch(Exception e)
  457. {
  458. return LuaDLL.toluaL_exception(L, e);
  459. }
  460. }
  461. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  462. static int get_graphicsDeviceType(IntPtr L)
  463. {
  464. try
  465. {
  466. ToLua.Push(L, UnityEngine.SystemInfo.graphicsDeviceType);
  467. return 1;
  468. }
  469. catch(Exception e)
  470. {
  471. return LuaDLL.toluaL_exception(L, e);
  472. }
  473. }
  474. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  475. static int get_graphicsUVStartsAtTop(IntPtr L)
  476. {
  477. try
  478. {
  479. LuaDLL.lua_pushboolean(L, UnityEngine.SystemInfo.graphicsUVStartsAtTop);
  480. return 1;
  481. }
  482. catch(Exception e)
  483. {
  484. return LuaDLL.toluaL_exception(L, e);
  485. }
  486. }
  487. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  488. static int get_graphicsDeviceVersion(IntPtr L)
  489. {
  490. try
  491. {
  492. LuaDLL.lua_pushstring(L, UnityEngine.SystemInfo.graphicsDeviceVersion);
  493. return 1;
  494. }
  495. catch(Exception e)
  496. {
  497. return LuaDLL.toluaL_exception(L, e);
  498. }
  499. }
  500. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  501. static int get_graphicsShaderLevel(IntPtr L)
  502. {
  503. try
  504. {
  505. LuaDLL.lua_pushinteger(L, UnityEngine.SystemInfo.graphicsShaderLevel);
  506. return 1;
  507. }
  508. catch(Exception e)
  509. {
  510. return LuaDLL.toluaL_exception(L, e);
  511. }
  512. }
  513. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  514. static int get_graphicsMultiThreaded(IntPtr L)
  515. {
  516. try
  517. {
  518. LuaDLL.lua_pushboolean(L, UnityEngine.SystemInfo.graphicsMultiThreaded);
  519. return 1;
  520. }
  521. catch(Exception e)
  522. {
  523. return LuaDLL.toluaL_exception(L, e);
  524. }
  525. }
  526. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  527. static int get_hasHiddenSurfaceRemovalOnGPU(IntPtr L)
  528. {
  529. try
  530. {
  531. LuaDLL.lua_pushboolean(L, UnityEngine.SystemInfo.hasHiddenSurfaceRemovalOnGPU);
  532. return 1;
  533. }
  534. catch(Exception e)
  535. {
  536. return LuaDLL.toluaL_exception(L, e);
  537. }
  538. }
  539. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  540. static int get_hasDynamicUniformArrayIndexingInFragmentShaders(IntPtr L)
  541. {
  542. try
  543. {
  544. LuaDLL.lua_pushboolean(L, UnityEngine.SystemInfo.hasDynamicUniformArrayIndexingInFragmentShaders);
  545. return 1;
  546. }
  547. catch(Exception e)
  548. {
  549. return LuaDLL.toluaL_exception(L, e);
  550. }
  551. }
  552. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  553. static int get_supportsShadows(IntPtr L)
  554. {
  555. try
  556. {
  557. LuaDLL.lua_pushboolean(L, UnityEngine.SystemInfo.supportsShadows);
  558. return 1;
  559. }
  560. catch(Exception e)
  561. {
  562. return LuaDLL.toluaL_exception(L, e);
  563. }
  564. }
  565. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  566. static int get_supportsRawShadowDepthSampling(IntPtr L)
  567. {
  568. try
  569. {
  570. LuaDLL.lua_pushboolean(L, UnityEngine.SystemInfo.supportsRawShadowDepthSampling);
  571. return 1;
  572. }
  573. catch(Exception e)
  574. {
  575. return LuaDLL.toluaL_exception(L, e);
  576. }
  577. }
  578. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  579. static int get_supportsMotionVectors(IntPtr L)
  580. {
  581. try
  582. {
  583. LuaDLL.lua_pushboolean(L, UnityEngine.SystemInfo.supportsMotionVectors);
  584. return 1;
  585. }
  586. catch(Exception e)
  587. {
  588. return LuaDLL.toluaL_exception(L, e);
  589. }
  590. }
  591. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  592. static int get_supportsRenderToCubemap(IntPtr L)
  593. {
  594. try
  595. {
  596. LuaDLL.lua_pushboolean(L, UnityEngine.SystemInfo.supportsRenderToCubemap);
  597. return 1;
  598. }
  599. catch(Exception e)
  600. {
  601. return LuaDLL.toluaL_exception(L, e);
  602. }
  603. }
  604. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  605. static int get_supportsImageEffects(IntPtr L)
  606. {
  607. try
  608. {
  609. LuaDLL.lua_pushboolean(L, UnityEngine.SystemInfo.supportsImageEffects);
  610. return 1;
  611. }
  612. catch(Exception e)
  613. {
  614. return LuaDLL.toluaL_exception(L, e);
  615. }
  616. }
  617. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  618. static int get_supports3DTextures(IntPtr L)
  619. {
  620. try
  621. {
  622. LuaDLL.lua_pushboolean(L, UnityEngine.SystemInfo.supports3DTextures);
  623. return 1;
  624. }
  625. catch(Exception e)
  626. {
  627. return LuaDLL.toluaL_exception(L, e);
  628. }
  629. }
  630. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  631. static int get_supports2DArrayTextures(IntPtr L)
  632. {
  633. try
  634. {
  635. LuaDLL.lua_pushboolean(L, UnityEngine.SystemInfo.supports2DArrayTextures);
  636. return 1;
  637. }
  638. catch(Exception e)
  639. {
  640. return LuaDLL.toluaL_exception(L, e);
  641. }
  642. }
  643. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  644. static int get_supports3DRenderTextures(IntPtr L)
  645. {
  646. try
  647. {
  648. LuaDLL.lua_pushboolean(L, UnityEngine.SystemInfo.supports3DRenderTextures);
  649. return 1;
  650. }
  651. catch(Exception e)
  652. {
  653. return LuaDLL.toluaL_exception(L, e);
  654. }
  655. }
  656. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  657. static int get_supportsCubemapArrayTextures(IntPtr L)
  658. {
  659. try
  660. {
  661. LuaDLL.lua_pushboolean(L, UnityEngine.SystemInfo.supportsCubemapArrayTextures);
  662. return 1;
  663. }
  664. catch(Exception e)
  665. {
  666. return LuaDLL.toluaL_exception(L, e);
  667. }
  668. }
  669. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  670. static int get_copyTextureSupport(IntPtr L)
  671. {
  672. try
  673. {
  674. ToLua.Push(L, UnityEngine.SystemInfo.copyTextureSupport);
  675. return 1;
  676. }
  677. catch(Exception e)
  678. {
  679. return LuaDLL.toluaL_exception(L, e);
  680. }
  681. }
  682. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  683. static int get_supportsComputeShaders(IntPtr L)
  684. {
  685. try
  686. {
  687. LuaDLL.lua_pushboolean(L, UnityEngine.SystemInfo.supportsComputeShaders);
  688. return 1;
  689. }
  690. catch(Exception e)
  691. {
  692. return LuaDLL.toluaL_exception(L, e);
  693. }
  694. }
  695. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  696. static int get_supportsInstancing(IntPtr L)
  697. {
  698. try
  699. {
  700. LuaDLL.lua_pushboolean(L, UnityEngine.SystemInfo.supportsInstancing);
  701. return 1;
  702. }
  703. catch(Exception e)
  704. {
  705. return LuaDLL.toluaL_exception(L, e);
  706. }
  707. }
  708. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  709. static int get_supportsHardwareQuadTopology(IntPtr L)
  710. {
  711. try
  712. {
  713. LuaDLL.lua_pushboolean(L, UnityEngine.SystemInfo.supportsHardwareQuadTopology);
  714. return 1;
  715. }
  716. catch(Exception e)
  717. {
  718. return LuaDLL.toluaL_exception(L, e);
  719. }
  720. }
  721. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  722. static int get_supports32bitsIndexBuffer(IntPtr L)
  723. {
  724. try
  725. {
  726. LuaDLL.lua_pushboolean(L, UnityEngine.SystemInfo.supports32bitsIndexBuffer);
  727. return 1;
  728. }
  729. catch(Exception e)
  730. {
  731. return LuaDLL.toluaL_exception(L, e);
  732. }
  733. }
  734. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  735. static int get_supportsSparseTextures(IntPtr L)
  736. {
  737. try
  738. {
  739. LuaDLL.lua_pushboolean(L, UnityEngine.SystemInfo.supportsSparseTextures);
  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_supportedRenderTargetCount(IntPtr L)
  749. {
  750. try
  751. {
  752. LuaDLL.lua_pushinteger(L, UnityEngine.SystemInfo.supportedRenderTargetCount);
  753. return 1;
  754. }
  755. catch(Exception e)
  756. {
  757. return LuaDLL.toluaL_exception(L, e);
  758. }
  759. }
  760. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  761. static int get_supportsSeparatedRenderTargetsBlend(IntPtr L)
  762. {
  763. try
  764. {
  765. LuaDLL.lua_pushboolean(L, UnityEngine.SystemInfo.supportsSeparatedRenderTargetsBlend);
  766. return 1;
  767. }
  768. catch(Exception e)
  769. {
  770. return LuaDLL.toluaL_exception(L, e);
  771. }
  772. }
  773. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  774. static int get_supportsMultisampledTextures(IntPtr L)
  775. {
  776. try
  777. {
  778. LuaDLL.lua_pushinteger(L, UnityEngine.SystemInfo.supportsMultisampledTextures);
  779. return 1;
  780. }
  781. catch(Exception e)
  782. {
  783. return LuaDLL.toluaL_exception(L, e);
  784. }
  785. }
  786. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  787. static int get_supportsMultisampleAutoResolve(IntPtr L)
  788. {
  789. try
  790. {
  791. LuaDLL.lua_pushboolean(L, UnityEngine.SystemInfo.supportsMultisampleAutoResolve);
  792. return 1;
  793. }
  794. catch(Exception e)
  795. {
  796. return LuaDLL.toluaL_exception(L, e);
  797. }
  798. }
  799. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  800. static int get_supportsTextureWrapMirrorOnce(IntPtr L)
  801. {
  802. try
  803. {
  804. LuaDLL.lua_pushinteger(L, UnityEngine.SystemInfo.supportsTextureWrapMirrorOnce);
  805. return 1;
  806. }
  807. catch(Exception e)
  808. {
  809. return LuaDLL.toluaL_exception(L, e);
  810. }
  811. }
  812. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  813. static int get_usesReversedZBuffer(IntPtr L)
  814. {
  815. try
  816. {
  817. LuaDLL.lua_pushboolean(L, UnityEngine.SystemInfo.usesReversedZBuffer);
  818. return 1;
  819. }
  820. catch(Exception e)
  821. {
  822. return LuaDLL.toluaL_exception(L, e);
  823. }
  824. }
  825. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  826. static int get_npotSupport(IntPtr L)
  827. {
  828. try
  829. {
  830. ToLua.Push(L, UnityEngine.SystemInfo.npotSupport);
  831. return 1;
  832. }
  833. catch(Exception e)
  834. {
  835. return LuaDLL.toluaL_exception(L, e);
  836. }
  837. }
  838. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  839. static int get_maxTextureSize(IntPtr L)
  840. {
  841. try
  842. {
  843. LuaDLL.lua_pushinteger(L, UnityEngine.SystemInfo.maxTextureSize);
  844. return 1;
  845. }
  846. catch(Exception e)
  847. {
  848. return LuaDLL.toluaL_exception(L, e);
  849. }
  850. }
  851. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  852. static int get_maxCubemapSize(IntPtr L)
  853. {
  854. try
  855. {
  856. LuaDLL.lua_pushinteger(L, UnityEngine.SystemInfo.maxCubemapSize);
  857. return 1;
  858. }
  859. catch(Exception e)
  860. {
  861. return LuaDLL.toluaL_exception(L, e);
  862. }
  863. }
  864. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  865. static int get_supportsAsyncCompute(IntPtr L)
  866. {
  867. try
  868. {
  869. LuaDLL.lua_pushboolean(L, UnityEngine.SystemInfo.supportsAsyncCompute);
  870. return 1;
  871. }
  872. catch(Exception e)
  873. {
  874. return LuaDLL.toluaL_exception(L, e);
  875. }
  876. }
  877. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  878. static int get_supportsGPUFence(IntPtr L)
  879. {
  880. try
  881. {
  882. LuaDLL.lua_pushboolean(L, UnityEngine.SystemInfo.supportsGPUFence);
  883. return 1;
  884. }
  885. catch(Exception e)
  886. {
  887. return LuaDLL.toluaL_exception(L, e);
  888. }
  889. }
  890. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  891. static int get_supportsAsyncGPUReadback(IntPtr L)
  892. {
  893. try
  894. {
  895. LuaDLL.lua_pushboolean(L, UnityEngine.SystemInfo.supportsAsyncGPUReadback);
  896. return 1;
  897. }
  898. catch(Exception e)
  899. {
  900. return LuaDLL.toluaL_exception(L, e);
  901. }
  902. }
  903. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  904. static int get_supportsMipStreaming(IntPtr L)
  905. {
  906. try
  907. {
  908. LuaDLL.lua_pushboolean(L, UnityEngine.SystemInfo.supportsMipStreaming);
  909. return 1;
  910. }
  911. catch(Exception e)
  912. {
  913. return LuaDLL.toluaL_exception(L, e);
  914. }
  915. }
  916. }