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

Include renderscript-samples in Vulkan samples repo? #15

Open
marty-johnson59 opened this issue Apr 22, 2021 · 2 comments
Open

Include renderscript-samples in Vulkan samples repo? #15

marty-johnson59 opened this issue Apr 22, 2021 · 2 comments

Comments

@marty-johnson59
Copy link

I'm working with the Khronos Vulkan samples team and there was a request for samples to show how to use external memory for cooperating with other APIs. It was suggested that we explore repurposing this sample as it is very relevant to the Vulkan audience. LMK if this is something we can consider pursuing. Would involve porting to the Vulkan Samples framework, but we could potentially find resources for that if needed. Thanks.

@Kottsone
Copy link
Contributor

Thanks for your interest in the samples.

The RenderScriptMigrationSample demonstrates how to import an Android AHardwareBuffer as a Vulkan image, but please note the following limitations:

  • The imported image is only used a transfer destination -- neither as a sampled texture, nor as a framebuffer output. A sample that directly take or render into an external memory may be better.
  • The sample does not demonstrate some advanced usages involving external format and YCbCr conversion. This may be needed when importing an Android AHardwareBuffer from, e.g., camera.

If you think this sample is a good candidate for inclusion to Vulkan Samples, please feel free to do so and make necessary modifications. There shouldn't be any issue as long as the usage complies with the Apache License.

@marty-johnson59
Copy link
Author

Great, thanks Kottsone. Yes, Apache License is what we prefer as well, so that won't be a problem. Our samples team is finalizing plans now - we'll likely take you up on this offer - stay tuned.

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

No branches or pull requests

2 participants