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

Enable Vulkan support in the Skia library #3

Closed
code-kungfu opened this issue Sep 4, 2021 · 3 comments
Closed

Enable Vulkan support in the Skia library #3

code-kungfu opened this issue Sep 4, 2021 · 3 comments
Assignees

Comments

@code-kungfu
Copy link

I noticed that Vulkan has been disabled in the build files.

Are there any particular reason why it has been disabled?

If not, I would encourage to ship the library with Vulkan support enabled by default 😃

@paulocesarbot
Copy link
Collaborator

Delphi uses OpenGLES for Android and iOS and optionally Metal for iOS and Mac. It doesn't support Vulkan yet. The idea is to adapt, for the library to draw directly on the render target.
There is no advantage to drawing on Vulkan, and having to download the image to cpu and upload it again to use another framework.

@code-kungfu
Copy link
Author

code-kungfu commented Sep 5, 2021

Delphi uses OpenGLES for Android and iOS and optionally Metal for iOS and Mac. It doesn't support Vulkan yet. The idea is to adapt, for the library to draw directly on the render target.

Yes, I am aware 😃
I started working on a Vulkan context for FMX some time ago but the project have stalled for various reasons.

There is no advantage to drawing on Vulkan, and having to download the image to cpu and upload it again to use another framework.

I respectfully disagree.
While the majority of user would be fine with the raster context and transfer the bitmap data to a FMX canvas, there are some who have the skill and wishes to take over the drawing by themselves completely including managing the context.
Having the ability to flip on a Vulkan render target in Skia and take advantage of it's high performance drawing primitives offers a major benefit for power users 😃

@viniciusfbb
Copy link
Member

I agree, unfortunately we are only two developers, as you can see, the code has 10,000 lines in Pascal, and 10,000 lines in C++.

So we prioritized at this initial moment to expose the main features and benefits of Skia, as well as the integration directly with the FMX content.

We can work together in the context of Vulkan, I believe Embarcadero is interested. Vulkan's problem is it doesn't work on iOS yet. But we can work on this idea of ​​using Vulkan on all platforms and Metal on iOS/Mac.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants