private void TestRender() { var device = dcRenderView.GetDevice(); dcRenderView.ClearRenderTarget(); canvasview.Render(); dcRenderView.Present(); }
private void Grid_Loaded(object sender, RoutedEventArgs e) { dcRenderView = new DCRenderView(); dcRenderView.SetSwapChainPanel(swapChainPanel); dcRenderView.SetLogicSize(swapChainPanel.RenderSize); dcRenderView.ClearRenderTarget(); dcRenderView.Present(); swapChainPanel.SizeChanged += SwapChainPanel_SizeChanged; RenderTexture tex1 = new RenderTexture(dcRenderView.GetDevice(), 64, 128, true); tex1.Clear(); }