Replies: 1 comment 2 replies
-
I don't know the answer to your question, but it is likely specific to each platform. I don't know about SkiaSharp, but in older OpenGL frameworks, the solution was typically for you (the app coder) to create the platform-specific object to be used, and pass that to the renderer. But you'd have to be careful how and when you access that object directly. Consider an alternative approach:
Also consider having TWO offscreen bitmaps. A "Live" one that you are manipulating, and a "Last" (or "Snapshot") that is ready to be copied to the onscreen Canvas, in its next PaintSurface. An example of this is C# Data Visualization / Animating Graphics without Blocking the GUI Thread. |
Beta Was this translation helpful? Give feedback.
-
Assuming I am using the CPU renderer (NOT GPU), i.e the back buffer is in RAM, not GPU memory
Is it possible to get a reference to the buffer Skia is writing to so I can do my own rendering to it?
I'm not looking to get a copy, I want to draw directly to the memory itself? is this possible?
So basically, I want to do something like :
Beta Was this translation helpful? Give feedback.
All reactions