summaryrefslogtreecommitdiff
path: root/Runtime/GfxDevice/GfxDeviceSetup.h
diff options
context:
space:
mode:
Diffstat (limited to 'Runtime/GfxDevice/GfxDeviceSetup.h')
-rw-r--r--Runtime/GfxDevice/GfxDeviceSetup.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/Runtime/GfxDevice/GfxDeviceSetup.h b/Runtime/GfxDevice/GfxDeviceSetup.h
new file mode 100644
index 0000000..53efa2f
--- /dev/null
+++ b/Runtime/GfxDevice/GfxDeviceSetup.h
@@ -0,0 +1,30 @@
+#pragma once
+
+#include "GfxDeviceTypes.h"
+class GfxDevice;
+
+bool InitializeGfxDevice();
+
+bool InitializeGfxDeviceWorkerProcess(size_t size, void *buffer);
+
+#if !ENABLE_GFXDEVICE_REMOTE_PROCESS_CLIENT
+GfxDevice* CreateRealGfxDevice (GfxDeviceRenderer renderer, bool forceRef);
+#endif
+bool IsThreadableGfxDevice (GfxDeviceRenderer renderer);
+void ParseGfxDeviceArgs ();
+
+#define ENABLE_FORCE_GFX_RENDERER ((UNITY_WIN && !UNITY_WP8) || UNITY_LINUX || UNITY_ANDROID)
+
+#if ENABLE_FORCE_GFX_RENDERER
+extern GfxDeviceRenderer g_ForcedGfxRenderer;
+#if GFX_SUPPORTS_D3D9
+extern bool g_ForceD3D9RefDevice;
+#endif
+#endif
+
+extern GfxThreadingMode g_ForcedGfxThreadingMode;
+
+
+#if GFX_SUPPORTS_OPENGLES20 || GFX_SUPPORTS_OPENGLES30
+extern int gDefaultFBO;
+#endif