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

Lack of support for vmaCopyMemoryToAllocation #72

Open
tuxerr opened this issue Oct 7, 2024 · 1 comment
Open

Lack of support for vmaCopyMemoryToAllocation #72

tuxerr opened this issue Oct 7, 2024 · 1 comment

Comments

@tuxerr
Copy link

tuxerr commented Oct 7, 2024

Hey!
I see vmaCopyMemoryToAllocation in ffi.rs:

    pub fn vmaCopyMemoryToAllocation(

but not used at all in lib.rs and I can't find a way to use it in my program. This might be me being new at Rust, but if not is there a reason for the lack of support, and if not would you accept a PR to have it as a method on vk_mem::Allocator?

Thanks for the excellent lib. :)

@Neo-Zhixing
Copy link
Collaborator

Most likely it was just never added to the library.

Meanwhile, vmaCopyMemoryToAllocation isn't super useful - you can already map memory, memcpy, then flush memory ranges. This API just does these three steps together for you.

But sure, if this bothers you, feel free to open a PR to add it back in.

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