diff options
author | chai <chaifix@163.com> | 2019-08-14 22:50:43 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2019-08-14 22:50:43 +0800 |
commit | 15740faf9fe9fe4be08965098bbf2947e096aeeb (patch) | |
tree | a730ec236656cc8cab5b13f088adfaed6bb218fb /Runtime/Misc/GraphicsDevicesDB.h |
Diffstat (limited to 'Runtime/Misc/GraphicsDevicesDB.h')
-rw-r--r-- | Runtime/Misc/GraphicsDevicesDB.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/Runtime/Misc/GraphicsDevicesDB.h b/Runtime/Misc/GraphicsDevicesDB.h new file mode 100644 index 0000000..e702aaa --- /dev/null +++ b/Runtime/Misc/GraphicsDevicesDB.h @@ -0,0 +1,18 @@ +#pragma once + +#define GRAPHICS_DEVICES_DB_AVAILABLE (UNITY_WIN || UNITY_OSX || UNITY_LINUX) + +#if GRAPHICS_DEVICES_DB_AVAILABLE +int GetGraphicsPixelFillrate (int vendorID, int deviceID); +#else +inline int GetGraphicsPixelFillrate (int vendorID, int deviceID) +{ + #if (UNITY_XENON || UNITY_PS3) + return 4000; + #elif (UNITY_WII) + return 972; + #else + return -1; + #endif +} +#endif |