[NUI][Non-ACR][Update TCT for NUI] 25/187325/1
authorhuiyu.eun <huiyu.eun@samsung.com>
Wed, 22 Aug 2018 05:08:26 +0000 (14:08 +0900)
committerhuiyu.eun <huiyu.eun@samsung.com>
Wed, 22 Aug 2018 05:10:14 +0000 (14:10 +0900)
Add constructor for backend

Change-Id: I478b043528bba03bf7f9154d511041a06afef8f9
Signed-off-by: huiyu.eun <huiyu.eun@samsung.com>
tct-suite-vs/Tizen.NUI.Tests/Program.cs

index 21089e5..e718595 100755 (executable)
@@ -31,6 +31,33 @@ namespace Tizen.NUI.Test
         static readonly string Title = "NUI Auto TCT \n\n";
         static readonly float TextSize = 30.0f;
 
+        private static Graphics.BackendType GraphicsBackend()
+        {
+            String DALI_VULKAN_BACKEND = "0";
+            DALI_VULKAN_BACKEND = Environment.GetEnvironmentVariable("DALI_VULKAN_BACKEND");
+            int numVal = 0;
+
+            if(DALI_VULKAN_BACKEND == "0" || DALI_VULKAN_BACKEND == "1")
+                numVal = Int32.Parse(DALI_VULKAN_BACKEND);
+
+            Log.Fatal("NUI", "DALI_VULKAN_BACKEND : " + numVal);
+
+            if ((Graphics.BackendType)numVal == Graphics.BackendType.Gles)
+            {
+                Log.Fatal("NUI", "NUI Vulkan disabled~!");
+                return Graphics.BackendType.Gles;
+            }
+
+            Log.Fatal("NUI", "NUI Vulkan enabled~!");
+            return Graphics.BackendType.Vulkan;
+        }
+
+        public App() : base(GraphicsBackend(), WindowMode.Opaque, null, null, "")
+        {
+            // : base(GraphicsBackend(), WindowMode.Opaque, null, null, "")
+            Log.Fatal("NUI", "Call App()");
+        }
+
         protected override void OnCreate()
         {
             base.OnCreate();