Skip to content

vulkan: add getter for Allocation::memory_type_index#300

Open
janis-bhm wants to merge 1 commit intoTraverse-Research:mainfrom
janis-bhm:main
Open

vulkan: add getter for Allocation::memory_type_index#300
janis-bhm wants to merge 1 commit intoTraverse-Research:mainfrom
janis-bhm:main

Conversation

@janis-bhm
Copy link
Copy Markdown

When reusing allocations for aliasing or rebinding it's useful to know that the memory type of the allocation is actually compatible with the memory requirements of the resource-to-bind, and since the allocation internally carries this information I think it makes sense to expose it.

I haven't looked at whether or not this is something that should be done for dx12 and metal as well since I'm not very familiar with those APIs.

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.

1 participant