Closed SiebenCorgie closed 1 year ago
Yeah, I came across this while trying to use/implement resizable BAR. Checking for all those flags is needed to identify if you need to flush and whether the memory is DeviceLocal.
Is anything missing for it to be merged? I force-pushed a small update for the PR to not conflict with main
.
This pull request exposes the
vk::MemoryPropertyFlags
of anAllocation
via thememory_properties
function.The reason for the request is, that I was not able to obtain the flags on the current release. If it is possible and i just did not find it, please close the request.
I need the flags when checking what the properties of an allocation using the
MemoryLocation::CpuToGpu
requirement are. Specifically, it is interesting if it contains theDEVICE_LOCAL
bit or not. Depending on this code the outcome can be different.If there is anything you'd like me to add, please let me know!