Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Move the allocation_type field to Suballocation, since AllocationType is unique to suballocations #2327

Merged
merged 1 commit into from
Sep 12, 2023

Conversation

marc0246
Copy link
Contributor

The original intention was, when using a suballocator with a hard-coded AllocationType (e.g. suballocating a buffer), that the user wouldn't need to worry about the allocation type when deallocating (as per the safety contract of deallocate). However, as is documented, the allocation_type field will be exactly equal to the requested allocation type, so the user can hard-code it both on allocation and deallocation. This makes things more consistent and logical.

@Rua Rua merged commit 7d63f8e into vulkano-rs:master Sep 12, 2023
@marc0246 marc0246 deleted the allocation-type branch September 12, 2023 20:42
hakolao pushed a commit to hakolao/vulkano that referenced this pull request Feb 20, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants