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();