Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[QUESTION] WPF native rendering over D3DImage (without WindowsFormsHost and WritableBitmap) #819

Closed
Mikolaytis opened this issue Mar 28, 2019 · 4 comments

Comments

@Mikolaytis
Copy link
Contributor

Hi, I'm using SkiaSharp in my WPF app with WGL rendering as described here.
#745 (GPU-accelerated WPF without WindowsFormsHost)

Fps of this approach is low(all performance is thrown into copy bytes to WritableBitmap), so I'm in search for another solution and found an perfect example, how to render in WPF D3DImage over OpenGL via SharpDX, Angle.
https://github.com/l3m/wpf-gles

Performance is on another level, but I'm failing to connect this example to SkiaSharp.
Is this possible at all?
Did you ever considered this type of approach for WPF apps?
If this approach will connect to skia - it will be awesome!

@Mikolaytis
Copy link
Contributor Author

Here we go! Done: https://github.com/Mikolaytis/WpfSkiaAngleSharpDxOpenTK

@Mikolaytis
Copy link
Contributor Author

Turns out text/line/etc. draw do not render anything, only images are rendering.

@ghost
Copy link

ghost commented Nov 20, 2019

@Mikolaytis did you ever get text / lines rendering for this?

@mattleibow
Copy link
Contributor

@Mikolaytis Thanks for all this work. @john-cullen I am closing to close this issue and merge it with #745 so we have one place to discuss this - and to talk solutions.

@john-cullen I think this may be because the stencil buffers aren't set up right. But let's talk in #745

@ghost ghost locked as resolved and limited conversation to collaborators Aug 19, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants