Skip to content

Avoid unnecessary zeroing out in na-mainloop #12

Open
@JohnScience

Description

@JohnScience

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions