Esempio n. 1
0
        public void Initialize()
        {
            commonRenderPipeline.context = context;
            GUIRender.context            = context;
            context.LoadDefaultResource();
            commonRenderPipeline.Initialize();



            GPUUpload uploadTest = new GPUUpload();

            uploadTest.mesh = context.GetMesh("quad");
            uploadTest.Quad();
            context.uploadQueue.Enqueue(uploadTest);

            GUIRender.Init();
            context.imguiInputHandler      = new ImGuiInputHandler();
            context.imguiInputHandler.hwnd = Win32Window.Handle;

            context.graphicsContext.Initialize(context.device);
            context.device.SetupSwapChain((IntPtr)Win32Window.Handle);
        }