-
Notifications
You must be signed in to change notification settings - Fork 379
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
How to query if an allocation is dedicated? #383
Comments
I am sorry, but this information is not available and I don't want to add it to If you need explicit control over when
Or you can allocate these special resources that need OpenGL interop directly in Vulkan, without VMA. |
The thing is, I do not want control about dedicated allocations, block sizes or pools. I understand your point wrt simplicity but as it stands, it does not really apply to interop right? |
How about we add a separate function |
Yes that would work perfectly! For interop, we need the following information (some of it is obviously already provided):
ideally also as part of the various |
I've added the function and structure as proposed above. Please let me know if it works for you. |
I tested this inside our codebase and it works flawless! |
Thank you for the confirmation. |
Is there a way to know if an allocation is flagged as dedicated?
I need to know this in order to properly setup interop flags (
GL_DEDICATED_MEMORY_OBJECT_EXT
for example).Currently vma can decide to make an allocation dedicated (for valid reasons) but as far as I can tell there is no way to know that?
I modified our local fork (with changes discussed in #340 ) to return this knowledge inside VmaAllocationInfo.
Is this the only way (and our our fork is diverging even more) or was there already a way to know this?
The text was updated successfully, but these errors were encountered: