amerkoleci / Vortice.Windows

.NET bindings for Direct3D12, Direct3D11, WIC, Direct2D1, XInput, XAudio, X3DAudio, DXC, Direct3D9 and DirectInput.
MIT License
1.02k stars 73 forks source link

Vortice.Wpf does not show anything #446

Closed MariusMichelPrimes closed 4 months ago

MariusMichelPrimes commented 4 months ago

I am searching for a good replacement for an old SharpDX Wpf control and tried the Vortice.Wpf lib. But it does not show anything. I think you forgot to create the ColorTextureView. If I add ColorTextureView = _device.CreateRenderTargetView(ColorTexture); in the CreateAndBindTargets function of the DrawingSurface, everthing seems to be fine.

amerkoleci commented 4 months ago

Thanks for spotting this, fixed by https://github.com/amerkoleci/Vortice.Windows/commit/799cd122b07acab8bced505fd49517426a41fdbc

version 3.5.5-beta is coming