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

Add a way to cleanup Allocator without dropping it. #12

Merged
merged 1 commit into from
Jun 26, 2019

Conversation

hrydgard
Copy link
Contributor

Perhaps not very Rusty, but what VK use is?

I need to destroy the allocator contents before I destroy the device, and it just gets really awkward to put the allocator in an Option<> and set it to None before destroy_device. This works around that.

I would also be open to other ideas, of course, if this isn't palatable.

Perhaps not very Rusty, but what VK use is?

I need to destroy the allocator contents before I destroy the device,
and it just gets really awkward to put the allocator in an Option<>
and set it to None before destroy_device. This works around that.
@hrydgard
Copy link
Contributor Author

@gwihlidal fixed the build error, care to have a look? :)

@gwihlidal gwihlidal merged commit ea01e81 into gwihlidal:master Jun 26, 2019
@gwihlidal
Copy link
Owner

Looks good! Thanks. I'll push a new version asap

@aloucks
Copy link
Contributor

aloucks commented Jun 27, 2019

Would it make sense to rename this to destroy to match the vma function?

@hrydgard hrydgard deleted the cleanup-without-drop branch June 27, 2019 08:02
@hrydgard
Copy link
Contributor Author

Much appreciated!

I don't really care what it's named, up to Graham :)

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

Successfully merging this pull request may close these issues.

3 participants