mirror of
https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator.git
synced 2024-11-26 16:34:35 +00:00
Merge pull request #1 from dylanede/patch-1
Correct wording of comment about required flags
This commit is contained in:
commit
7600059ae7
@ -3626,7 +3626,7 @@ VkResult vmaFindMemoryTypeIndex(
|
|||||||
uint32_t preferredFlags = pMemoryRequirements->preferredFlags;
|
uint32_t preferredFlags = pMemoryRequirements->preferredFlags;
|
||||||
if(preferredFlags == 0)
|
if(preferredFlags == 0)
|
||||||
preferredFlags = requiredFlags;
|
preferredFlags = requiredFlags;
|
||||||
// preferredFlags, if not 0, must be subset of requiredFlags.
|
// preferredFlags, if not 0, must be a superset of requiredFlags.
|
||||||
VMA_ASSERT((requiredFlags & ~preferredFlags) == 0);
|
VMA_ASSERT((requiredFlags & ~preferredFlags) == 0);
|
||||||
|
|
||||||
// Convert usage to requiredFlags and preferredFlags.
|
// Convert usage to requiredFlags and preferredFlags.
|
||||||
|
Loading…
Reference in New Issue
Block a user