//this source code was auto-generated by tolua#, do not modify it
|
|
using System;
|
|
using LuaInterface;
|
|
|
|
public class UnityEngine_SystemInfoWrap
|
|
{
|
|
public static void Register(LuaState L)
|
|
{
|
|
L.BeginClass(typeof(UnityEngine.SystemInfo), typeof(System.Object));
|
|
L.RegFunction("SupportsRenderTextureFormat", SupportsRenderTextureFormat);
|
|
L.RegFunction("SupportsBlendingOnRenderTextureFormat", SupportsBlendingOnRenderTextureFormat);
|
|
L.RegFunction("SupportsTextureFormat", SupportsTextureFormat);
|
|
L.RegFunction("IsFormatSupported", IsFormatSupported);
|
|
L.RegFunction("New", _CreateUnityEngine_SystemInfo);
|
|
L.RegFunction("__tostring", ToLua.op_ToString);
|
|
L.RegVar("unsupportedIdentifier", get_unsupportedIdentifier, null);
|
|
L.RegVar("batteryLevel", get_batteryLevel, null);
|
|
L.RegVar("batteryStatus", get_batteryStatus, null);
|
|
L.RegVar("operatingSystem", get_operatingSystem, null);
|
|
L.RegVar("operatingSystemFamily", get_operatingSystemFamily, null);
|
|
L.RegVar("processorType", get_processorType, null);
|
|
L.RegVar("processorFrequency", get_processorFrequency, null);
|
|
L.RegVar("processorCount", get_processorCount, null);
|
|
L.RegVar("systemMemorySize", get_systemMemorySize, null);
|
|
L.RegVar("deviceUniqueIdentifier", get_deviceUniqueIdentifier, null);
|
|
L.RegVar("deviceName", get_deviceName, null);
|
|
L.RegVar("deviceModel", get_deviceModel, null);
|
|
L.RegVar("supportsAccelerometer", get_supportsAccelerometer, null);
|
|
L.RegVar("supportsGyroscope", get_supportsGyroscope, null);
|
|
L.RegVar("supportsLocationService", get_supportsLocationService, null);
|
|
L.RegVar("supportsVibration", get_supportsVibration, null);
|
|
L.RegVar("supportsAudio", get_supportsAudio, null);
|
|
L.RegVar("deviceType", get_deviceType, null);
|
|
L.RegVar("graphicsMemorySize", get_graphicsMemorySize, null);
|
|
L.RegVar("graphicsDeviceName", get_graphicsDeviceName, null);
|
|
L.RegVar("graphicsDeviceVendor", get_graphicsDeviceVendor, null);
|
|
L.RegVar("graphicsDeviceID", get_graphicsDeviceID, null);
|
|
L.RegVar("graphicsDeviceVendorID", get_graphicsDeviceVendorID, null);
|
|
L.RegVar("graphicsDeviceType", get_graphicsDeviceType, null);
|
|
L.RegVar("graphicsUVStartsAtTop", get_graphicsUVStartsAtTop, null);
|
|
L.RegVar("graphicsDeviceVersion", get_graphicsDeviceVersion, null);
|
|
L.RegVar("graphicsShaderLevel", get_graphicsShaderLevel, null);
|
|
L.RegVar("graphicsMultiThreaded", get_graphicsMultiThreaded, null);
|
|
L.RegVar("hasHiddenSurfaceRemovalOnGPU", get_hasHiddenSurfaceRemovalOnGPU, null);
|
|
L.RegVar("hasDynamicUniformArrayIndexingInFragmentShaders", get_hasDynamicUniformArrayIndexingInFragmentShaders, null);
|
|
L.RegVar("supportsShadows", get_supportsShadows, null);
|
|
L.RegVar("supportsRawShadowDepthSampling", get_supportsRawShadowDepthSampling, null);
|
|
L.RegVar("supportsMotionVectors", get_supportsMotionVectors, null);
|
|
L.RegVar("supportsRenderToCubemap", get_supportsRenderToCubemap, null);
|
|
L.RegVar("supportsImageEffects", get_supportsImageEffects, null);
|
|
L.RegVar("supports3DTextures", get_supports3DTextures, null);
|
|
L.RegVar("supports2DArrayTextures", get_supports2DArrayTextures, null);
|
|
L.RegVar("supports3DRenderTextures", get_supports3DRenderTextures, null);
|
|
L.RegVar("supportsCubemapArrayTextures", get_supportsCubemapArrayTextures, null);
|
|
L.RegVar("copyTextureSupport", get_copyTextureSupport, null);
|
|
L.RegVar("supportsComputeShaders", get_supportsComputeShaders, null);
|
|
L.RegVar("supportsInstancing", get_supportsInstancing, null);
|
|
L.RegVar("supportsHardwareQuadTopology", get_supportsHardwareQuadTopology, null);
|
|
L.RegVar("supports32bitsIndexBuffer", get_supports32bitsIndexBuffer, null);
|
|
L.RegVar("supportsSparseTextures", get_supportsSparseTextures, null);
|
|
L.RegVar("supportedRenderTargetCount", get_supportedRenderTargetCount, null);
|
|
L.RegVar("supportsSeparatedRenderTargetsBlend", get_supportsSeparatedRenderTargetsBlend, null);
|
|
L.RegVar("supportsMultisampledTextures", get_supportsMultisampledTextures, null);
|
|
L.RegVar("supportsMultisampleAutoResolve", get_supportsMultisampleAutoResolve, null);
|
|
L.RegVar("supportsTextureWrapMirrorOnce", get_supportsTextureWrapMirrorOnce, null);
|
|
L.RegVar("usesReversedZBuffer", get_usesReversedZBuffer, null);
|
|
L.RegVar("npotSupport", get_npotSupport, null);
|
|
L.RegVar("maxTextureSize", get_maxTextureSize, null);
|
|
L.RegVar("maxCubemapSize", get_maxCubemapSize, null);
|
|
L.RegVar("supportsAsyncCompute", get_supportsAsyncCompute, null);
|
|
L.RegVar("supportsGPUFence", get_supportsGPUFence, null);
|
|
L.RegVar("supportsAsyncGPUReadback", get_supportsAsyncGPUReadback, null);
|
|
L.RegVar("supportsMipStreaming", get_supportsMipStreaming, null);
|
|
L.EndClass();
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _CreateUnityEngine_SystemInfo(IntPtr L)
|
|
{
|
|
try
|
|
{
|
|
int count = LuaDLL.lua_gettop(L);
|
|
|
|
if (count == 0)
|
|
{
|
|
UnityEngine.SystemInfo obj = new UnityEngine.SystemInfo();
|
|
ToLua.PushObject(L, obj);
|
|
return 1;
|
|
}
|
|
else
|
|
{
|
|
return LuaDLL.luaL_throw(L, "invalid arguments to ctor method: UnityEngine.SystemInfo.New");
|
|
}
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int SupportsRenderTextureFormat(IntPtr L)
|
|
{
|
|
try
|
|
{
|
|
ToLua.CheckArgsCount(L, 1);
|
|
UnityEngine.RenderTextureFormat arg0 = (UnityEngine.RenderTextureFormat)ToLua.CheckObject(L, 1, typeof(UnityEngine.RenderTextureFormat));
|
|
bool o = UnityEngine.SystemInfo.SupportsRenderTextureFormat(arg0);
|
|
LuaDLL.lua_pushboolean(L, o);
|
|
return 1;
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int SupportsBlendingOnRenderTextureFormat(IntPtr L)
|
|
{
|
|
try
|
|
{
|
|
ToLua.CheckArgsCount(L, 1);
|
|
UnityEngine.RenderTextureFormat arg0 = (UnityEngine.RenderTextureFormat)ToLua.CheckObject(L, 1, typeof(UnityEngine.RenderTextureFormat));
|
|
bool o = UnityEngine.SystemInfo.SupportsBlendingOnRenderTextureFormat(arg0);
|
|
LuaDLL.lua_pushboolean(L, o);
|
|
return 1;
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int SupportsTextureFormat(IntPtr L)
|
|
{
|
|
try
|
|
{
|
|
ToLua.CheckArgsCount(L, 1);
|
|
UnityEngine.TextureFormat arg0 = (UnityEngine.TextureFormat)ToLua.CheckObject(L, 1, typeof(UnityEngine.TextureFormat));
|
|
bool o = UnityEngine.SystemInfo.SupportsTextureFormat(arg0);
|
|
LuaDLL.lua_pushboolean(L, o);
|
|
return 1;
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int IsFormatSupported(IntPtr L)
|
|
{
|
|
try
|
|
{
|
|
ToLua.CheckArgsCount(L, 2);
|
|
UnityEngine.Experimental.Rendering.GraphicsFormat arg0 = (UnityEngine.Experimental.Rendering.GraphicsFormat)ToLua.CheckObject(L, 1, typeof(UnityEngine.Experimental.Rendering.GraphicsFormat));
|
|
UnityEngine.Experimental.Rendering.FormatUsage arg1 = (UnityEngine.Experimental.Rendering.FormatUsage)ToLua.CheckObject(L, 2, typeof(UnityEngine.Experimental.Rendering.FormatUsage));
|
|
bool o = UnityEngine.SystemInfo.IsFormatSupported(arg0, arg1);
|
|
LuaDLL.lua_pushboolean(L, o);
|
|
return 1;
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int get_unsupportedIdentifier(IntPtr L)
|
|
{
|
|
try
|
|
{
|
|
LuaDLL.lua_pushstring(L, UnityEngine.SystemInfo.unsupportedIdentifier);
|
|
return 1;
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int get_batteryLevel(IntPtr L)
|
|
{
|
|
try
|
|
{
|
|
LuaDLL.lua_pushnumber(L, UnityEngine.SystemInfo.batteryLevel);
|
|
return 1;
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int get_batteryStatus(IntPtr L)
|
|
{
|
|
try
|
|
{
|
|
ToLua.Push(L, UnityEngine.SystemInfo.batteryStatus);
|
|
return 1;
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int get_operatingSystem(IntPtr L)
|
|
{
|
|
try
|
|
{
|
|
LuaDLL.lua_pushstring(L, UnityEngine.SystemInfo.operatingSystem);
|
|
return 1;
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int get_operatingSystemFamily(IntPtr L)
|
|
{
|
|
try
|
|
{
|
|
ToLua.Push(L, UnityEngine.SystemInfo.operatingSystemFamily);
|
|
return 1;
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int get_processorType(IntPtr L)
|
|
{
|
|
try
|
|
{
|
|
LuaDLL.lua_pushstring(L, UnityEngine.SystemInfo.processorType);
|
|
return 1;
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int get_processorFrequency(IntPtr L)
|
|
{
|
|
try
|
|
{
|
|
LuaDLL.lua_pushinteger(L, UnityEngine.SystemInfo.processorFrequency);
|
|
return 1;
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int get_processorCount(IntPtr L)
|
|
{
|
|
try
|
|
{
|
|
LuaDLL.lua_pushinteger(L, UnityEngine.SystemInfo.processorCount);
|
|
return 1;
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int get_systemMemorySize(IntPtr L)
|
|
{
|
|
try
|
|
{
|
|
LuaDLL.lua_pushinteger(L, UnityEngine.SystemInfo.systemMemorySize);
|
|
return 1;
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int get_deviceUniqueIdentifier(IntPtr L)
|
|
{
|
|
try
|
|
{
|
|
LuaDLL.lua_pushstring(L, UnityEngine.SystemInfo.deviceUniqueIdentifier);
|
|
return 1;
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int get_deviceName(IntPtr L)
|
|
{
|
|
try
|
|
{
|
|
LuaDLL.lua_pushstring(L, UnityEngine.SystemInfo.deviceName);
|
|
return 1;
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int get_deviceModel(IntPtr L)
|
|
{
|
|
try
|
|
{
|
|
LuaDLL.lua_pushstring(L, UnityEngine.SystemInfo.deviceModel);
|
|
return 1;
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int get_supportsAccelerometer(IntPtr L)
|
|
{
|
|
try
|
|
{
|
|
LuaDLL.lua_pushboolean(L, UnityEngine.SystemInfo.supportsAccelerometer);
|
|
return 1;
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int get_supportsGyroscope(IntPtr L)
|
|
{
|
|
try
|
|
{
|
|
LuaDLL.lua_pushboolean(L, UnityEngine.SystemInfo.supportsGyroscope);
|
|
return 1;
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int get_supportsLocationService(IntPtr L)
|
|
{
|
|
try
|
|
{
|
|
LuaDLL.lua_pushboolean(L, UnityEngine.SystemInfo.supportsLocationService);
|
|
return 1;
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int get_supportsVibration(IntPtr L)
|
|
{
|
|
try
|
|
{
|
|
LuaDLL.lua_pushboolean(L, UnityEngine.SystemInfo.supportsVibration);
|
|
return 1;
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int get_supportsAudio(IntPtr L)
|
|
{
|
|
try
|
|
{
|
|
LuaDLL.lua_pushboolean(L, UnityEngine.SystemInfo.supportsAudio);
|
|
return 1;
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int get_deviceType(IntPtr L)
|
|
{
|
|
try
|
|
{
|
|
ToLua.Push(L, UnityEngine.SystemInfo.deviceType);
|
|
return 1;
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int get_graphicsMemorySize(IntPtr L)
|
|
{
|
|
try
|
|
{
|
|
LuaDLL.lua_pushinteger(L, UnityEngine.SystemInfo.graphicsMemorySize);
|
|
return 1;
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int get_graphicsDeviceName(IntPtr L)
|
|
{
|
|
try
|
|
{
|
|
LuaDLL.lua_pushstring(L, UnityEngine.SystemInfo.graphicsDeviceName);
|
|
return 1;
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int get_graphicsDeviceVendor(IntPtr L)
|
|
{
|
|
try
|
|
{
|
|
LuaDLL.lua_pushstring(L, UnityEngine.SystemInfo.graphicsDeviceVendor);
|
|
return 1;
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int get_graphicsDeviceID(IntPtr L)
|
|
{
|
|
try
|
|
{
|
|
LuaDLL.lua_pushinteger(L, UnityEngine.SystemInfo.graphicsDeviceID);
|
|
return 1;
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int get_graphicsDeviceVendorID(IntPtr L)
|
|
{
|
|
try
|
|
{
|
|
LuaDLL.lua_pushinteger(L, UnityEngine.SystemInfo.graphicsDeviceVendorID);
|
|
return 1;
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int get_graphicsDeviceType(IntPtr L)
|
|
{
|
|
try
|
|
{
|
|
ToLua.Push(L, UnityEngine.SystemInfo.graphicsDeviceType);
|
|
return 1;
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int get_graphicsUVStartsAtTop(IntPtr L)
|
|
{
|
|
try
|
|
{
|
|
LuaDLL.lua_pushboolean(L, UnityEngine.SystemInfo.graphicsUVStartsAtTop);
|
|
return 1;
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int get_graphicsDeviceVersion(IntPtr L)
|
|
{
|
|
try
|
|
{
|
|
LuaDLL.lua_pushstring(L, UnityEngine.SystemInfo.graphicsDeviceVersion);
|
|
return 1;
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int get_graphicsShaderLevel(IntPtr L)
|
|
{
|
|
try
|
|
{
|
|
LuaDLL.lua_pushinteger(L, UnityEngine.SystemInfo.graphicsShaderLevel);
|
|
return 1;
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int get_graphicsMultiThreaded(IntPtr L)
|
|
{
|
|
try
|
|
{
|
|
LuaDLL.lua_pushboolean(L, UnityEngine.SystemInfo.graphicsMultiThreaded);
|
|
return 1;
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int get_hasHiddenSurfaceRemovalOnGPU(IntPtr L)
|
|
{
|
|
try
|
|
{
|
|
LuaDLL.lua_pushboolean(L, UnityEngine.SystemInfo.hasHiddenSurfaceRemovalOnGPU);
|
|
return 1;
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int get_hasDynamicUniformArrayIndexingInFragmentShaders(IntPtr L)
|
|
{
|
|
try
|
|
{
|
|
LuaDLL.lua_pushboolean(L, UnityEngine.SystemInfo.hasDynamicUniformArrayIndexingInFragmentShaders);
|
|
return 1;
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int get_supportsShadows(IntPtr L)
|
|
{
|
|
try
|
|
{
|
|
LuaDLL.lua_pushboolean(L, UnityEngine.SystemInfo.supportsShadows);
|
|
return 1;
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int get_supportsRawShadowDepthSampling(IntPtr L)
|
|
{
|
|
try
|
|
{
|
|
LuaDLL.lua_pushboolean(L, UnityEngine.SystemInfo.supportsRawShadowDepthSampling);
|
|
return 1;
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int get_supportsMotionVectors(IntPtr L)
|
|
{
|
|
try
|
|
{
|
|
LuaDLL.lua_pushboolean(L, UnityEngine.SystemInfo.supportsMotionVectors);
|
|
return 1;
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int get_supportsRenderToCubemap(IntPtr L)
|
|
{
|
|
try
|
|
{
|
|
LuaDLL.lua_pushboolean(L, UnityEngine.SystemInfo.supportsRenderToCubemap);
|
|
return 1;
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int get_supportsImageEffects(IntPtr L)
|
|
{
|
|
try
|
|
{
|
|
LuaDLL.lua_pushboolean(L, UnityEngine.SystemInfo.supportsImageEffects);
|
|
return 1;
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int get_supports3DTextures(IntPtr L)
|
|
{
|
|
try
|
|
{
|
|
LuaDLL.lua_pushboolean(L, UnityEngine.SystemInfo.supports3DTextures);
|
|
return 1;
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int get_supports2DArrayTextures(IntPtr L)
|
|
{
|
|
try
|
|
{
|
|
LuaDLL.lua_pushboolean(L, UnityEngine.SystemInfo.supports2DArrayTextures);
|
|
return 1;
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int get_supports3DRenderTextures(IntPtr L)
|
|
{
|
|
try
|
|
{
|
|
LuaDLL.lua_pushboolean(L, UnityEngine.SystemInfo.supports3DRenderTextures);
|
|
return 1;
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int get_supportsCubemapArrayTextures(IntPtr L)
|
|
{
|
|
try
|
|
{
|
|
LuaDLL.lua_pushboolean(L, UnityEngine.SystemInfo.supportsCubemapArrayTextures);
|
|
return 1;
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int get_copyTextureSupport(IntPtr L)
|
|
{
|
|
try
|
|
{
|
|
ToLua.Push(L, UnityEngine.SystemInfo.copyTextureSupport);
|
|
return 1;
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int get_supportsComputeShaders(IntPtr L)
|
|
{
|
|
try
|
|
{
|
|
LuaDLL.lua_pushboolean(L, UnityEngine.SystemInfo.supportsComputeShaders);
|
|
return 1;
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int get_supportsInstancing(IntPtr L)
|
|
{
|
|
try
|
|
{
|
|
LuaDLL.lua_pushboolean(L, UnityEngine.SystemInfo.supportsInstancing);
|
|
return 1;
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int get_supportsHardwareQuadTopology(IntPtr L)
|
|
{
|
|
try
|
|
{
|
|
LuaDLL.lua_pushboolean(L, UnityEngine.SystemInfo.supportsHardwareQuadTopology);
|
|
return 1;
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int get_supports32bitsIndexBuffer(IntPtr L)
|
|
{
|
|
try
|
|
{
|
|
LuaDLL.lua_pushboolean(L, UnityEngine.SystemInfo.supports32bitsIndexBuffer);
|
|
return 1;
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int get_supportsSparseTextures(IntPtr L)
|
|
{
|
|
try
|
|
{
|
|
LuaDLL.lua_pushboolean(L, UnityEngine.SystemInfo.supportsSparseTextures);
|
|
return 1;
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int get_supportedRenderTargetCount(IntPtr L)
|
|
{
|
|
try
|
|
{
|
|
LuaDLL.lua_pushinteger(L, UnityEngine.SystemInfo.supportedRenderTargetCount);
|
|
return 1;
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int get_supportsSeparatedRenderTargetsBlend(IntPtr L)
|
|
{
|
|
try
|
|
{
|
|
LuaDLL.lua_pushboolean(L, UnityEngine.SystemInfo.supportsSeparatedRenderTargetsBlend);
|
|
return 1;
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int get_supportsMultisampledTextures(IntPtr L)
|
|
{
|
|
try
|
|
{
|
|
LuaDLL.lua_pushinteger(L, UnityEngine.SystemInfo.supportsMultisampledTextures);
|
|
return 1;
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int get_supportsMultisampleAutoResolve(IntPtr L)
|
|
{
|
|
try
|
|
{
|
|
LuaDLL.lua_pushboolean(L, UnityEngine.SystemInfo.supportsMultisampleAutoResolve);
|
|
return 1;
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int get_supportsTextureWrapMirrorOnce(IntPtr L)
|
|
{
|
|
try
|
|
{
|
|
LuaDLL.lua_pushinteger(L, UnityEngine.SystemInfo.supportsTextureWrapMirrorOnce);
|
|
return 1;
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int get_usesReversedZBuffer(IntPtr L)
|
|
{
|
|
try
|
|
{
|
|
LuaDLL.lua_pushboolean(L, UnityEngine.SystemInfo.usesReversedZBuffer);
|
|
return 1;
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int get_npotSupport(IntPtr L)
|
|
{
|
|
try
|
|
{
|
|
ToLua.Push(L, UnityEngine.SystemInfo.npotSupport);
|
|
return 1;
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int get_maxTextureSize(IntPtr L)
|
|
{
|
|
try
|
|
{
|
|
LuaDLL.lua_pushinteger(L, UnityEngine.SystemInfo.maxTextureSize);
|
|
return 1;
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int get_maxCubemapSize(IntPtr L)
|
|
{
|
|
try
|
|
{
|
|
LuaDLL.lua_pushinteger(L, UnityEngine.SystemInfo.maxCubemapSize);
|
|
return 1;
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int get_supportsAsyncCompute(IntPtr L)
|
|
{
|
|
try
|
|
{
|
|
LuaDLL.lua_pushboolean(L, UnityEngine.SystemInfo.supportsAsyncCompute);
|
|
return 1;
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int get_supportsGPUFence(IntPtr L)
|
|
{
|
|
try
|
|
{
|
|
LuaDLL.lua_pushboolean(L, UnityEngine.SystemInfo.supportsGPUFence);
|
|
return 1;
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int get_supportsAsyncGPUReadback(IntPtr L)
|
|
{
|
|
try
|
|
{
|
|
LuaDLL.lua_pushboolean(L, UnityEngine.SystemInfo.supportsAsyncGPUReadback);
|
|
return 1;
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int get_supportsMipStreaming(IntPtr L)
|
|
{
|
|
try
|
|
{
|
|
LuaDLL.lua_pushboolean(L, UnityEngine.SystemInfo.supportsMipStreaming);
|
|
return 1;
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
}
|
|
}
|
|
}
|
|
|