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

Avoid unnecessary zeroing out in na-mainloop #12

Open
JohnScience opened this issue Sep 10, 2023 · 0 comments
Open

Avoid unnecessary zeroing out in na-mainloop #12

JohnScience opened this issue Sep 10, 2023 · 0 comments

Comments

@JohnScience
Copy link

JohnScience commented Sep 10, 2023

As I was assessing the maturity of Rust for mobile development, I tried different things.

I used na-mainloop example as a template for https://github.com/JohnScience/rust_android_native_activity.

While I was working on it, I noticed a few bad practices:

My take on it is here.

My code is worse because it assumes R8G8B8A8_UNORM but "It works on my machine" TM and I've noticed there's a pull request with some code that ensures R8G8B8A8_UNORM buffer format, and I'm likely to use it soon.

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

1 participant